X (Twitter) Tweets by IDs

Docs ↗
https://api.sandbase.ai/v1/api/twitter/tweets-by-ids

Look up several tweets at once by a comma-separated list of tweet IDs, with text, author and engagement counts.

Price
$0.0075USD / call
Method
POST
Response
JSON
Parameters
1 required · 0 optional

Playground

Input
Comma-separated list of tweet IDs.
OutputReady

Your output will appear here

Complete the inputs, then click Run.

API README

X (Twitter) Tweets by IDs API

Look up several tweets at once by a comma-separated list of tweet IDs, with text, author and engagement counts.

The result is returned in outputs[0].data as the official X (Twitter) API response, unchanged.

Request

curl -X POST "https://api.sandbase.ai/v1/api/twitter/tweets-by-ids" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"tweet_ids": "1585341984679469056,1846987139428634858"}'

Parameters

NameTypeRequiredDescription
tweet_idsstringNoComma-separated list of tweet IDs.

Pricing

Billed at the actual cost of each call, about $0.0075 for a typical request; the cost grows with the number of rows returned. Searches with no results are billed at their actual cost. Failed calls are not charged.

Explore more

Related APIs

All APIs
APIPriceResponse
X (Twitter)From $0.0075 per callJSON
X (Twitter)From $0.0005 per callJSON
X (Twitter)From $0.0001 per callJSON
X (Twitter)From $0.0036 per callJSON
X (Twitter)From $0.003 per callJSON
X (Twitter)From $0.0004 per callJSON

Questions

FAQ

How do I use the X (Twitter) Tweets by IDs API?

Send a POST request to https://api.sandbase.ai/v1/api/twitter/tweets-by-ids with your SandBase API key in the Authorization header (Bearer) and the parameters as a JSON body. You can also try it in the Playground on this page without writing code.

How much does the X (Twitter) Tweets by IDs API cost?

From $0.0075 per call, billed from your SandBase balance. You are only charged for calls you make; there is no subscription.

What parameters does the X (Twitter) Tweets by IDs API accept?

Required: tweet_ids (string). The Parameters table and the Playground on this page list every field.

What does the X (Twitter) Tweets by IDs API return?

A JSON response returned in the same HTTP request (synchronous).

Do I need a X (Twitter) developer account or API key?

No. X (Twitter) Tweets by IDs runs through SandBase, so one SandBase API key covers this endpoint and every other API and model in the catalog. You do not need to apply for X (Twitter) API access separately.