user_namestringwymagane
Source Screen Name
https://api.sandbase.ai/v1/api/twitter/web/check-followCheck follow on Twitter. Returns the platform data as structured JSON.
Twój wynik pojawi się tutaj
Uzupełnij dane wejściowe, a następnie kliknij Uruchom.
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.
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.
| Name | Type | Required | Description |
|---|---|---|---|
follows | string | Yes | Target Screen Name |
user_name | string | Yes | Source Screen Name |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"is_follow": false,
"username": "elonmusk"
}
| Field | Meaning |
|---|---|
is_follow | Boolean. true if the user_name account follows the follows account, false if it does not. The sample call for elonmusk and NASA returned false. |
username | The source screen name the check was run for. It matches the user_name you sent. |
@ sign, for example elonmusk and NASA.user_name and follows.$0.001 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.
Zacznij tworzyć
Punkt końcowy API platformy z jednolitym uwierzytelnianiem i śledzeniem użycia.
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 '{
"follows": "NASA",
"user_name": "elonmusk"
}'Ustaw klucz API SandBase w środowisku serwera. Żądania używają uwierzytelniania Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Przechowuj klucz na serwerze. Nie ujawniaj go w kodzie przeglądarkowym.
user_namestringwymaganeSource Screen Name
followsstringwymaganeTarget Screen Name
Zapisany przykładowy response dla tego API; podczas wyświetlania nie jest wykonywane żadne żądanie na żywo.
Nie opublikowano zapisanego response. Uruchom API w Playground, aby sprawdzić jego odpowiedź.
Odkryj więcej
| API | Cena | Odpowiedź |
|---|---|---|
Twitter Check followTo API X (Twitter) | $0.001 za wywołanie | JSON |
Twitter | $0.001 za wywołanie | JSON |
Twitter | $0.001 za wywołanie | JSON |
Twitter | $0.001 za wywołanie | JSON |
Twitter | $0.001 za wywołanie | JSON |
Twitter | $0.001 za wywołanie | JSON |
Przewodniki:X API alternative: pay per call, not per postBest Twitter API in 2026: X API Pricing Compared
Pytania
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.
$0.001 za wywołanie, rozliczane z salda SandBase. Płacisz tylko za wykonane wywołania; nie ma subskrypcji.
Wymagane: user_name (string) i follows (string). Tabela Parameters oraz Playground na tej stronie zawierają wszystkie pola.
Odpowiedź JSON zwrócona w tym samym żądaniu HTTP (synchronicznie). README na tej stronie zawiera przykładową odpowiedź.
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).