Skip to content

Commit b3409bd

Browse files
Documentation edits made through Mintlify web editor
1 parent 14ea9b1 commit b3409bd

File tree

1 file changed

+67
-77
lines changed

1 file changed

+67
-77
lines changed

x-api/getting-started/about-x-api.mdx

Lines changed: 67 additions & 77 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: About the X API
2+
title: "About the X API"
33
---
44

55
The X API can be used to programmatically retrieve and analyze X data, as well as build for the conversation on X.
@@ -11,110 +11,100 @@ Recently, we released the X API v2. The X API v2 includes a modern foundation, n
1111
The following three tabs explain the different versions and access levels of the X API, what’s new with v2, and which X resources you can retrieve, create, destroy, and adjust using the API.
1212

1313
<Tabs>
14+
<Tab title="Access levels and versions">
15+
## X API access levels and versions
1416

15-
<Tab title="Access levels and versions">
17+
While the X API v2 is the primary X API, the platform currently supports previous versions (v1.1, Gnip 2.0) as well. We recommend that all users start with v2 as this is where all future innovation will happen.
1618

17-
## X API access levels and versions
19+
The X API v2 includes a few access levels:
1820

19-
While the X API v2 is the primary X API, the platform currently supports previous versions (v1.1, Gnip 2.0) as well. We recommend that all users start with v2 as this is where all future innovation will happen.
21+
| | Free | Basic | Pro | Enterprise |
22+
| :---------------------------- | :------------------------------------------------------------- | :-------------------------------------------------------------- | :------------------------------------------------------------ | :----------------------------------------------------------------------------------------------------- |
23+
| Getting access | [Get Started](https://developer.x.com/en/portal/products/free) | [Get Started](https://developer.x.com/en/portal/products/basic) | [Get Started](https://developer.x.com/en/portal/products/pro) | [Get Started](https://developer.x.com/en/products/twitter-api/enterprise/enterprise-api-interest-form) |
24+
| Price | Free | $100/month | $5000/month | - |
25+
| Access to X API v2 | ✔️ (Only Post creation) | ✔️ | ✔️ | ✔️ |
26+
| Access to standard v1.1 | ✔️(Limited) | ✔️(Limited) | ✔️(Limited) | ✔️ |
27+
| Project limits | 1 Project | 1 Project | 1 Project | - |
28+
| App limits | 1 App per Project | 2 Apps per Project | 3 Apps per Project | - |
29+
| Post caps - Post | 1,500 | 3,000 | 300,000 | - |
30+
| Post caps - Pull || 10,000 | 1,000,000 | - |
31+
| Filtered stream API ||| ✔️ | ✔️ |
32+
| Access to full-archive search ||| ✔️ | ✔️ |
33+
| Access to Ads API | ✔️ | ✔️ | ✔️ | ✔️ |
34+
</Tab>
35+
<Tab title="What's new with v2">
36+
## What's new with v2
2037

21-
The X API v2 includes a few access levels:
38+
The X API v2 represents the largest upgrade of the X API since 2012. With it comes a host of new and advanced features, as well as fast and free access to the API.
2239

23-
| | Free | Basic | Pro | Enterprise |
24-
|:---|:---|:---|:---|:---|
25-
| Getting access | [Get Started](https://developer.x.com/en/portal/products/free) | [Get Started](https://developer.x.com/en/portal/products/basic) | [Get Started](https://developer.x.com/en/portal/products/pro) | [Get Started](https://developer.x.com/en/products/twitter-api/enterprise/enterprise-api-interest-form) |
26-
| Price | Free | $100/month | $5000/month | - |
27-
| Access to X API v2 | ✔️ (Only Post creation) | ✔️ | ✔️ | ✔️ |
28-
| Access to standard v1.1 | ✔️(Limited) | ✔️(Limited) | ✔️(Limited) | ✔️ |
29-
| Project limits | 1 Project | 1 Project | 1 Project | - |
30-
| App limits | 1 App per Project | 2 Apps per Project | 3 Apps per Project | - |
31-
| Post caps - Post | 1,500 | 3,000 | 300,000 | - |
32-
| Post caps - Pull || 10,000 | 1,000,000 | - |
33-
| Filtered stream API ||| ✔️ | ✔️ |
34-
| Access to full-archive search ||| ✔️ | ✔️ |
35-
| Access to Ads API | ✔️ | ✔️ | ✔️ | ✔️ |
40+
Some of the features that are available with v2 include the following:
3641

37-
</Tab>
42+
### New endpoints
3843

39-
<Tab title="What's new with v2">
44+
We have released a set of net-new endpoints to X API v2. You can see a full list of v2 endpoints, including those that are new, on our X API endpoint map guide.
4045

41-
## What's new with v2
46+
[Visit the X API endpoint map \>](/x-api/migrate/x-api-endpoint-map)
4247

43-
The X API v2 represents the largest upgrade of the X API since 2012. With it comes a host of new and advanced features, as well as fast and free access to the API.
48+
### New and more detailed data objects
4449

45-
Some of the features that are available with v2 include the following:
50+
We've modernized our data objects with a variety off new improvements that will enable you to more easily navigate and parse data.
4651

47-
### New endpoints
52+
[Visit the data dictionary \>](/x-api/fundamentals/data-dictionary)
4853

49-
We have released a set of net-new endpoints to X API v2. You can see a full list of v2 endpoints, including those that are new, on our X API endpoint map guide.
54+
### New parameters to help you retrieve just those objects and fields that you want
5055

51-
[Visit the X API endpoint map >](/x-api/migrate/x-api-endpoint-map)
56+
We've added fields and expansions parameters to our data endpoints that allow you to request related objects and fields beyond those fields that return by default.
5257

53-
### New and more detailed data objects
58+
[Learn how to use fields and expansions \>](/x-api/fundamentals/data-dictionary#how-to-use-fields-and-expansions)
5459

55-
We've modernized our data objects with a variety off new improvements that will enable you to more easily navigate and parse data.
60+
### Advanced metrics
5661

57-
[Visit the data dictionary >](/x-api/fundamentals/data-dictionary)
62+
More easily understand the performance of Posts, users, media, and polls from directly within your payload by requesting both public and private metrics including impressions, video views, user profile, and URL clicks, some of which are separated into an organic and promoted context.
5863

59-
### New parameters to help you retrieve just those objects and fields that you want
64+
[Learn more about metrics \>](/x-api/fundamentals/metrics)
6065

61-
We've added fields and expansions parameters to our data endpoints that allow you to request related objects and fields beyond those fields that return by default.
66+
### Filter on and identify which Posts contain different topics
6267

63-
[Learn how to use fields and expansions >](/x-api/fundamentals/data-dictionary#how-to-use-fields-and-expansions)
68+
When using search Posts or filtered stream, you can now filter by topic using our entity and context operators. We've also provided these topics within the Post payload to help with analysis.
6469

65-
### Advanced metrics
70+
[Learn more about Post annotations \>](/x-api/fundamentals/post-annotations)
6671

67-
More easily understand the performance of Posts, users, media, and polls from directly within your payload by requesting both public and private metrics including impressions, video views, user profile, and URL clicks, some of which are separated into an organic and promoted context.
72+
### Filter on and identify which Posts belong to a reply thread
6873

69-
[Learn more about metrics >](/x-api/fundamentals/metrics)
74+
Make it easier to identify a Post as part of a conversation thread when using search Posts, filtered stream, and Post lookup. We've also added the ability to determine whether conversation reply settings have been set for a Post with the Post field `reply_settings`.
7075

71-
### Filter on and identify which Posts contain different topics
76+
[Learn more about conversation tracking \>](/x-api/fundamentals/conversation-id)
7277

73-
When using search Posts or filtered stream, you can now filter by topic using our entity and context operators. We've also provided these topics within the Post payload to help with analysis.
78+
### And so much more...
7479

75-
[Learn more about Post annotations >](/x-api/fundamentals/post-annotations)
80+
- High confidence spam filtering
81+
- Shortened URLs are fully unwound for easier URL analysis
82+
- Simplified JSON response objects by removing deprecated fields and modernizing labels
83+
- Recovery and redundancy functionality for our streaming endpoints
84+
- Return of 100% of matching public and available Posts in search queries
85+
- Streaming "rules" so you can make changes without dropping connections
86+
- More expressive query language for filtered stream and search
87+
- OpenAPI spec to build new libraries & more transparently track changes
88+
- API support for new features and endpoints more quickly as our platform evolves to meet the needs of developers, researchers, businesses, and people using X
89+
</Tab>
90+
<Tab title="X API resources">
91+
## X API platform resources
7692

77-
### Filter on and identify which Posts belong to a reply thread
93+
In the API design space, a resource is an entity with associated data, relationships to other resources, and a set of methods that operate on it. For example, a Post is a resource that you can create, delete, or retrieve using a variety of different tools, such as historically searching for them, or retrieving them in real-time.
7894

79-
Make it easier to identify a Post as part of a conversation thread when using search Posts, filtered stream, and Post lookup. We've also added the ability to determine whether conversation reply settings have been set for a Post with the Post field `reply_settings`.
80-
81-
[Learn more about conversation tracking >](/x-api/fundamentals/conversation-id)
82-
83-
### And so much more...
84-
85-
- High confidence spam filtering
86-
- Shortened URLs are fully unwound for easier URL analysis
87-
- Simplified JSON response objects by removing deprecated fields and modernizing labels
88-
- Recovery and redundancy functionality for our streaming endpoints
89-
- Return of 100% of matching public and available Posts in search queries
90-
- Streaming "rules" so you can make changes without dropping connections
91-
- More expressive query language for filtered stream and search
92-
- OpenAPI spec to build new libraries & more transparently track changes
93-
- API support for new features and endpoints more quickly as our platform evolves to meet the needs of developers, researchers, businesses, and people using X
94-
95-
</Tab>
96-
97-
<Tab title="X API resources">
98-
99-
## X API platform resources
100-
101-
In the API design space, a resource is an entity with associated data, relationships to other resources, and a set of methods that operate on it. For example, a Post is a resource that you can create, delete, or retrieve using a variety of different tools, such as historically searching for them, or retrieving them in real-time.
102-
103-
The X API provides access to create, delete, receive, or adjust a variety of different resources on the platform including the following:
104-
105-
| Resource | Description |
106-
|:----------|:-------------|
107-
| **Posts** | Tap into millions of Posts to understand the public conversation, or create your own to engage with the conversation.<br/><br/>Current availability:<br/>- X API v2<br/>- Enterprise<br/>- Standard v1.1 |
108-
| **Users** | Manage or look up X users to analyze networks, understand your audience, or foster positive online relationships.<br/><br/>Current availability:<br/>- X API v2<br/>- Enterprise<br/>- Standard v1.1 |
109-
| **Spaces** | Look up and search X Spaces and their attendees to help people find interesting and relevant audio conversations.<br/><br/>Current availability:<br/>- X API v2 |
110-
| **Direct Messages** | Send and receive Direct Messages to triage customer issues, send welcome messages, or create positive human interaction.<br/><br/>Current availability:<br/>- Standard v1.1 |
111-
| **Lists** | Curate and manage lists of accounts to keep a pulse on industry experts, powerful voices, or organize who you follow.<br/><br/>Current availability:<br/>- X API v2<br/>- Standard v1.1 |
112-
| **Trends** | Identify geographic trends first to pinpoint industry movement, discover hot topics, or stay ahead of the latest fad.<br/><br/>Current availability:<br/>- Standard v1.1 |
113-
| **Media** | Upload media objects to share your creative energy, create interactive experiences, or build accessibility tools.<br/><br/>Current availability:<br/>- Standard v1.1 |
114-
| **Places** | Search for places to understand what's happening in your neighborhood and around the world.<br/><br/>Current availability:<br/>- Standard v1.1 |
115-
116-
</Tab>
95+
The X API provides access to create, delete, receive, or adjust a variety of different resources on the platform including the following:
11796

97+
| Resource | Description |
98+
| :------------------ | :-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
99+
| **Posts** | Tap into millions of Posts to understand the public conversation, or create your own to engage with the conversation. Current availability: - X API v2 - Enterprise - Standard v1.1 |
100+
| **Users** | Manage or look up X users to analyze networks, understand your audience, or foster positive online relationships. Current availability: - X API v2 - Enterprise - Standard v1.1 |
101+
| **Spaces** | Look up and search X Spaces and their attendees to help people find interesting and relevant audio conversations. Current availability: - X API v2 |
102+
| **Direct Messages** | Send and receive Direct Messages to triage customer issues, send welcome messages, or create positive human interaction. Current availability: - Standard v1.1 |
103+
| **Lists** | Curate and manage lists of accounts to keep a pulse on industry experts, powerful voices, or organize who you follow. Current availability: - X API v2 - Standard v1.1 |
104+
| **Trends** | Identify geographic trends first to pinpoint industry movement, discover hot topics, or stay ahead of the latest fad. Current availability: - Standard v1.1 |
105+
| **Media** | Upload media objects to share your creative energy, create interactive experiences, or build accessibility tools. Current availability: - Standard v1.1 |
106+
| **Places** | Search for places to understand what's happening in your neighborhood and around the world. Current availability: - Standard v1.1 |
107+
</Tab>
118108
</Tabs>
119109

120110
### Other X API offerings

0 commit comments

Comments
 (0)