Paste a public post URL from X, Reddit, Hacker News, Weibo, RedNote or Zhihu and get that post through the matching platform API.
1 credit/ call
Never more than 13 credits a call.
You only pay when data comes back.
curl -X POST "https://api.primaryapi.com/v1/run/social.post_lookup" \
-H "Authorization: Bearer $PRIMARYAPI_API_KEY" \
-H "Content-Type: application/json" \
-d '{"url":"https://x.com/elonmusk/status/1519480761749016577"}'{
"output": {
"found": true,
"data": {
"likes": 4300000,
"text": "Next I’m buying Coca-Cola to put th…",
"createdUtc": 1651107418,
"authorHandle": "elonmusk", …
}
},
"credits": 1
}Input and output
1 field
https://x.com/elonmusk/status/151948076….0 fields
Its output is published when this API launches.
Good to know
Unsupported hosts / non-post URLs answer 422, uncharged.
xhslink.com short links and Reddit /s/ share links need a redirect hop. Are not supported yet.
More from Social. Same key, same credits.
The same key and credits work for every API.