Search X (Twitter) accounts by keyword (the People tab) and get profile records with follower, following and post counts.
2 credits/ call
Never more than 5 credits a call.
You only pay when data comes back.
curl -X POST "https://api.primaryapi.com/v1/run/twitter.search_users" \
-H "Authorization: Bearer $PRIMARYAPI_API_KEY" \
-H "Content-Type: application/json" \
-d '{"query":"nasa"}'{
"output": {
"found": true,
"data": {
"nextCursor": "<string | null>",
"users": [
{
"username": "<string | null>",
"name": "<string | null>",
"followers": "<integer | null>",
"verified": "<boolean | null>", …
}
]
}
},
"credits": 2
}Input and output
2 fields
nasa.15 fields
cursor for the next page; null at the endGood to know
No matches → found: false, not billed. A miss is an answer, not an error, and it costs nothing.
One page per call. Send nextCursor back as cursor to read the next page.
The same key and credits work for every API.