curl -X GET "https://scrape.st/x/follow-relationship?source=jack&target=elonmusk" \
-H "x-api-key: YOUR_API_KEY"
{
"source": { "screen_name": "jack", "id": "12" },
"target": { "screen_name": "elonmusk", "id": "44196397" },
"following": true,
"followed_by": true
}
X Queries
Follow Relationship
Check whether one X account follows another
GET
/
x
/
follow-relationship
curl -X GET "https://scrape.st/x/follow-relationship?source=jack&target=elonmusk" \
-H "x-api-key: YOUR_API_KEY"
{
"source": { "screen_name": "jack", "id": "12" },
"target": { "screen_name": "elonmusk", "id": "44196397" },
"following": true,
"followed_by": true
}
Check the follow relationship between two X accounts. Returns whether the
source follows the target and whether the target follows the
source back.
Either account may be given as a username (with or without
@) or a numeric
user id.
Notification settings (whether the source has post notifications enabled for
the target) are not returned — that value is private to the account owner
and cannot be read for arbitrary accounts.
Query Parameters
string
required
The account whose following is being checked —
@handle, handle, or numeric
user id.string
required
The account being checked against —
@handle, handle, or numeric user id.Response
object
The resolved source account (
screen_name, id).object
The resolved target account (
screen_name, id).boolean
Whether source follows target.
boolean
Whether target follows source.
curl -X GET "https://scrape.st/x/follow-relationship?source=jack&target=elonmusk" \
-H "x-api-key: YOUR_API_KEY"
{
"source": { "screen_name": "jack", "id": "12" },
"target": { "screen_name": "elonmusk", "id": "44196397" },
"following": true,
"followed_by": true
}