curl -G https://xquik.com/api/v1/x/followers/check \
-d "source=xquikcom" \
-d "target=elonmusk" \
-H "x-api-key: xq_a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4e5f6a1b2" | jq
Query parameters
Source username. The user whose follow action is being checked.
Target username. The user who may be followed by the source.
Your API key. Session cookie authentication is also supported.
Response
The source username from the request.
The target username from the request.
true if the source user follows the target user.
true if the target user follows the source user.
{
"sourceUsername": "xquikcom",
"targetUsername": "elonmusk",
"isFollowing": true,
"isFollowedBy": false
}
{ "error": "missing_params", "required": ["source", "target"] }
One or both query parameters are missing. Provide both source and target.{ "error": "unauthenticated" }
Missing or invalid API key. Check the x-api-key header value.{ "error": "no_subscription" }
No active subscription or usage cap reached. Possible error values: no_subscription, subscription_inactive, usage_limit_reached.{ "error": "x_api_unavailable" }
The upstream X API returned an error. Retry after a short delay.
Next steps: Get User to look up full profile details for either user, or Get Account to check remaining usage quota.