Sand AISand AI MAGI-2MAGI-2 jest teraz na SandBase: wideo 1080p z natywnym dźwiękiemWypróbuj teraz

Twitter Check follow

Dokumentacja API
https://api.sandbase.ai/v1/api/twitter/web/check-follow

Check follow on Twitter. Returns the platform data as structured JSON.

Cena
$0.001USD / wywołanie
Metoda
POST
Odpowiedź
JSON
Parametry
2 wymaganych · 0 opcjonalnych

Playground

Wejście
Source Screen Name
Target Screen Name
WyjścieGotowe

Twój wynik pojawi się tutaj

Uzupełnij dane wejściowe, a następnie kliknij Uruchom.

README API

Twitter Check follow API

Checks whether one Twitter account follows another. It needs two screen names: user_name (the source account) and follows (the target account). It returns a boolean and the source username.

Use cases

  • Verify that a customer or partner account follows your brand account before granting a reward.
  • Check follow status between two accounts when you audit a giveaway or campaign.
  • Confirm a relationship between two known accounts without paging through a full follower list.

Request

curl -X POST "https://api.sandbase.ai/v1/api/twitter/web/check-follow" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"user_name": "elonmusk", "follows": "NASA"}'

The result is returned in outputs[0].data.

Parameters

NameTypeRequiredDescription
followsstringYesTarget Screen Name
user_namestringYesSource Screen Name

Example response

Real response for the request above, trimmed: lists keep their first item and long strings are cut.

{
  "is_follow": false,
  "username": "elonmusk"
}

Response fields

FieldMeaning
is_followBoolean. true if the user_name account follows the follows account, false if it does not. The sample call for elonmusk and NASA returned false.
usernameThe source screen name the check was run for. It matches the user_name you sent.

Notes

Pricing

$0.001 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.

Odkryj więcej

Powiązane APIs

Wszystkie APIs
APICenaOdpowiedź
X (Twitter)$0.001 za wywołanieJSON
Twitter$0.001 za wywołanieJSON
Twitter$0.001 za wywołanieJSON
Twitter$0.001 za wywołanieJSON
Twitter$0.001 za wywołanieJSON
Twitter$0.001 za wywołanieJSON

Przewodniki:X API alternative: pay per call, not per postBest Twitter API in 2026: X API Pricing Compared

Pytania

FAQ

Jak używać API Twitter Check follow?

Wyślij żądanie POST do https://api.sandbase.ai/v1/api/twitter/web/check-follow z kluczem API SandBase w nagłówku Authorization (Bearer) oraz parametrami w treści JSON. Możesz też wypróbować je w Playground na tej stronie bez pisania kodu.

Ile kosztuje API Twitter Check follow?

$0.001 za wywołanie, rozliczane z salda SandBase. Płacisz tylko za wykonane wywołania; nie ma subskrypcji.

Jakie parametry przyjmuje API Twitter Check follow?

Wymagane: user_name (string) i follows (string). Tabela Parameters oraz Playground na tej stronie zawierają wszystkie pola.

Co zwraca API Twitter Check follow?

Odpowiedź JSON zwrócona w tym samym żądaniu HTTP (synchronicznie). README na tej stronie zawiera przykładową odpowiedź.

Czy potrzebuję konta deweloperskiego X (Twitter) lub klucza API?

Nie. Twitter Check follow działa przez SandBase, więc jeden klucz API SandBase obejmuje ten endpoint i każde inne API oraz model w katalogu. Nie musisz osobno ubiegać się o dostęp do API X (Twitter).