Tap into what’s happening to build what’s next

It’s a new era for innovators with the new Twitter API v2, seconds to ‘hello world’, and more free access

Tweet from the API in just a few clicks.

Use cases

Build for businesses

Use Twitter’s powerful APIs to help your business listen, act, and discover.

Build for the public

Build for people on Twitter to integrate or improve their experience on the platform.

Do research

Use the Twitter API to get historical and real-time data points for your next research project.

Teach & learn

Teach or learn valuable skills with the Twitter API.

Build for fun

Experiment, explore, create, and have fun.

Build for good

Make the world, and Twitter, a better place.

Real-time access to the global conversation

Use the Twitter API to listen to and analyze the public conversation, engage with people on Twitter, and innovate. Here you can see how the recent search endpoint was used to find Tweets with specific keywords.

      curl --request GET --location 'https://api.twitter.com/2/tweets/search/recent?tweet.fields=context_annotations&max_results=100&query=camping(nature%20OR%20%22outdoor%20actvities%22)' \
--header 'Authorization: Bearer $BEARER_TOKEN'
    
      {
   "data": {
       "context_annotations": [
           {
               "domain": {
                   "id": "65",
                   "name": "Interests and Hobbies Vertical",
                   "description": "Top level interests and hobbies groupings, like Food or Travel"
               },
               "entity": {
                   "id": "839159814991167489",
                   "name": "Travel",
                   "description": "Travel"
               }
           },
           {
               "domain": {
                   "id": "66",
                   "name": "Interests and Hobbies Category",
                   "description": "A grouping of interests and hobbies entities, like Novelty Food or Destinations"
               },
               "entity": {
                   "id": "839160129752686593",
                   "name": "General Travel",
                   "description": "General Travel"
               }
           },
           {
               "domain": {
                   "id": "66",
                   "name": "Interests and Hobbies Category",
                   "description": "A grouping of interests and hobbies entities, like Novelty Food or Destinations"
               },
               "entity": {
                   "id": "1046575724830720001",
                   "name": "Outdoor Activities",
                   "description": "Outdoor Activities"
               }
           },
           {
               "domain": {
                   "id": "67",
                   "name": "Interests and Hobbies",
                   "description": "Interests, opinions, and behaviors of individuals, groups, or cultures; like Speciality Cooking or Theme Parks"
               },
               "entity": {
                   "id": "849076092111536128",
                   "name": "Adventure travel",
                   "description": "Adventure travel"
               }
           },
           {
               "domain": {
                   "id": "67",
                   "name": "Interests and Hobbies",
                   "description": "Interests, opinions, and behaviors of individuals, groups, or cultures; like Speciality Cooking or Theme Parks"
               },
               "entity": {
                   "id": "849076476272009216",
                   "name": "Camping",
                   "description": "Camping"
               }
           },
           {
               "domain": {
                   "id": "67",
                   "name": "Interests and Hobbies",
                   "description": "Interests, opinions, and behaviors of individuals, groups, or cultures; like Speciality Cooking or Theme Parks"
               },
               "entity": {
                   "id": "1103294729079349250",
                   "name": "Nature",
                   "description": "Nature"
               }
           },
           {
               "domain": {
                   "id": "65",
                   "name": "Interests and Hobbies Vertical",
                   "description": "Top level interests and hobbies groupings, like Food or Travel"
               },
               "entity": {
                   "id": "839159814991167489",
                   "name": "Travel",
                   "description": "Travel"
               }
           },
           {
               "domain": {
                   "id": "66",
                   "name": "Interests and Hobbies Category",
                   "description": "A grouping of interests and hobbies entities, like Novelty Food or Destinations"
               },
               "entity": {
                   "id": "839160129752686593",
                   "name": "General Travel",
                   "description": "General Travel"
               }
           },
           {
               "domain": {
                   "id": "67",
                   "name": "Interests and Hobbies",
                   "description": "Interests, opinions, and behaviors of individuals, groups, or cultures; like Speciality Cooking or Theme Parks"
               },
               "entity": {
                   "id": "839161975712067584",
                   "name": "Travel Actions",
                   "description": "This entity includes all conversations about travel and vacation."
               }
           }
       ],
       "id": "1392142832274612224",
       "text": "Can't wait to take my family camping at all the amazing nature areas in my state that I loved growing up!"
   }
}
    

See how others are innovating with the Twitter Developer Platform

Businesses, researchers, and developers all over the world have used the Twitter Developer Platform to creatively innovate, gain valuable insights, and shape the future. Explore how they did it and get inspired to use the APIs in your own way.

Join the global conversation

Stay up-to-date on the latest developer events and product updates.

true

Ready to build what's next?

Send your first request in no time with Essential access to the Twitter API.