Public X (Twitter) profile for one handle: bio, follower and post counts, verification, links and pinned posts.
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.profile" \
-H "Authorization: Bearer $PRIMARYAPI_API_KEY" \
-H "Content-Type: application/json" \
-d '{"handle":"nasa"}'{
"output": {
"found": true,
"data": {
"handle": "<string>",
"displayName": "<string | null>",
"followers": "<integer | null>",
"verified": "<boolean | null>", …
}
},
"credits": 1
}Input and output
1 field
nasa.16 fields
Good to know
Suspended or missing accounts return found: false. A miss is an answer, not an error.
Private accounts are still found. Protected accounts are found with private: true.
The same key and credits work for every API.