X API
X posts, X profiles. 5 documented operations.
API capabilities
2 tasks covered in the catalog.
Documented operations
Provider routes and credentials are separate from All Them APIs.
X postsGET /2/users/{id}/tweets
- Inputs
- id; max_results, pagination_token, start_time, end_time, since_id, until_id, exclude, post.fields, expansions, user.fields, media.fields, poll.fields, place.fields
- Authentication
- Confirm the key, permissions and plan in the provider documentation.
- Listed response fields
post IDtextcreated atlanguageauthor IDauthor usernameconversation IDin reply to user IDin reply to post IDquoted post IDreposted post IDquoted postreposted postreplied-to postposted fromview countlike countrepost countreply countquote countbookmark counthashtagscashtagsuser mentions
Get Users by IDX profilesGET /2/users/{id}
- Inputs
- id; user.fields, expansions, post.fields
- Authentication
- Confirm the key, permissions and plan in the provider documentation.
- Listed response fields
user IDnameusernamebiobio linksbio entitieslocationwebsiteprofile picturebanner imagefollowersfollowingposts countlikes countmedia countlisted countverifiedverified typeverified followers countidentity verifiedaccount createdaffiliationprotectedparody
Get Users by IDsX profilesGET /2/users
- Inputs
- ids; user.fields, expansions, post.fields
- Authentication
- Confirm the key, permissions and plan in the provider documentation.
- Listed response fields
user IDnameusernamebiobio linksbio entitieslocationwebsiteprofile picturebanner imagefollowersfollowingposts countlikes countmedia countlisted countverifiedverified typeverified followers countidentity verifiedaccount createdaffiliationprotectedparody
Get Users by UsernameX profilesGET /2/users/by/username/{username}
- Inputs
- username; user.fields, expansions, post.fields
- Authentication
- Confirm the key, permissions and plan in the provider documentation.
- Listed response fields
user IDnameusernamebiobio linksbio entitieslocationwebsiteprofile picturebanner imagefollowersfollowingposts countlikes countmedia countlisted countverifiedverified typeverified followers countidentity verifiedaccount createdaffiliationprotectedparody
Get Users by UsernamesX profilesGET /2/users/by
- Inputs
- usernames; user.fields, expansions, post.fields
- Authentication
- Confirm the key, permissions and plan in the provider documentation.
- Listed response fields
user IDnameusernamebiobio linksbio entitieslocationwebsiteprofile picturebanner imagefollowersfollowingposts countlikes countmedia countlisted countverifiedverified typeverified followers countidentity verifiedaccount createdaffiliationprotectedparody
Plans & pricing references
Listed fees retain the source billing period and currency. Check the provider for allowances, overages and current terms.
| Plan | Billing | Listed fee | Coverage |
|---|---|---|---|
| Enterprise | contact | See pricing | X posts, X profiles |
| Pay-per-use | one-time | $5.00 | X profiles, X posts |
Matching plan fees are grouped across operations. Included credits, metered rates and allowances can differ by operation; consult the official pricing reference.
Coding agent prompt
Prepare the adapter with the provider's documentation and your own account.
Build a server-side integration for X API.
Read the official provider documentation before choosing authentication, request fields or a plan:
https://docs.x.com/x-api/users/get-posts
https://docs.x.com/x-api/users/get-user-by-id
https://docs.x.com/x-api/users/get-user-by-username
Catalog operations to verify against the current documentation:
- X posts: GET /2/users/{id}/tweets; inputs: id; max_results, pagination_token, start_time, end_time, since_id, until_id, exclude, post.fields, expansions, user.fields, media.fields, poll.fields, place.fields
- Get Users by ID: GET /2/users/{id}; inputs: id; user.fields, expansions, post.fields
- Get Users by IDs: GET /2/users; inputs: ids; user.fields, expansions, post.fields
- Get Users by Username: GET /2/users/by/username/{username}; inputs: username; user.fields, expansions, post.fields
Read credentials from a server-only environment variable such as PROVIDER_X_API_API_KEY; confirm the actual authentication scheme in the provider docs. Never expose credentials in browser code, URLs or logs.
Add bounded timeouts, explicit 401/403/429 handling, input validation and fixture-based tests. Preserve missing values and provider identifiers. Do not run paid or personal-data queries without approval. This is the provider's interface, not an All Them APIs execution endpoint.
If an endpoint, field, account permission or rate limit cannot be confirmed, list the missing requirement instead of inventing a working request. Return the adapter, tests and exact verification steps.Sources & integration checks
- Public source check
- Official source fetched · Nov 25, 2026
- Catalog source date
- Oct 29, 2026
- Authentication reference
- See each operation and confirm the provider's current access requirements.
- Before using in production
- Verify coverage, accepted-result billing, rate limits, data freshness and permitted use for your workload.
Catalog data: Datacircle, CC BY 4.0. Provider sources and check dates are recorded separately. Catalog prices and operations are references, not an Agent Bench result.