One public X (Twitter) post by URL: full text, author, media and engagement counts (likes, reposts, replies, quotes, bookmarks, views).
1 credit/ call
Never more than 2 credits a call.
You only pay when data comes back.
curl -X POST "https://api.primaryapi.com/v1/run/twitter.tweet" \
-H "Authorization: Bearer $PRIMARYAPI_API_KEY" \
-H "Content-Type: application/json" \
-d '{"url":"https://x.com/elonmusk/status/1519480761749016577"}'{
"output": {
"found": true,
"data": {
"likes": "<integer | null>",
"retweets": "<integer | null>",
"replies": "<integer | null>",
"isReply": "<boolean | null>", …
}
},
"credits": 1
}Input and output
1 field
https://x.com/elonmusk/status/151948076….20 fields
Good to know
Unknown URL? It comes back as not found, not as an error.
The same key and credits work for every API.