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

ESPN Search

Dokumentacja API
https://api.sandbase.ai/v1/api/espn/search

Search for athletes and teams across all sports. Returns matching results with IDs for use in other endpoints. When type filter is specified, only results of that type are returned.

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

Playground

Wejście
Search query (player name, team name, etc.)
Filter results by type. Accepted values: 'player', 'team'. When omitted, searches both players and teams.
Maximum results to return.
WyjścieGotowe

Twój wynik pojawi się tutaj

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

README API

ESPN Search API

Search for athletes and teams across all sports. Returns matching results with IDs for use in other endpoints. When type filter is specified, only results of that type are returned.

Request

curl -X POST "https://api.sandbase.ai/v1/run" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model": "espn/search", "type": "player", "limit": 5, "query": "LeBron"}'

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

Parameters

NameTypeRequiredDescription
querystringYesSearch query (player name, team name, etc.)
limitintegerNoMaximum results to return.
typestringNoFilter results by type. Accepted values: 'player', 'team'. When omitted, searches both players and teams.

Pricing

Flat $0.06 per call. Failed calls are not charged.

Odkryj więcej

Powiązane APIs

Wszystkie APIs
APICenaOdpowiedź
ESPN$0.06 za wywołanieJSON
ESPN$0.06 za wywołanieJSON
ESPN$0.03 za wywołanieJSON
ESPN$0.03 za wywołanieJSON
ESPN$0.03 za wywołanieJSON
ESPN$0.03 za wywołanieJSON

Pytania

FAQ

Jak używać API ESPN Search?

Wyślij żądanie POST do https://api.sandbase.ai/v1/api/espn/search 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 ESPN Search?

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

Jakie parametry przyjmuje API ESPN Search?

Wymagane: query (string). Opcjonalne: type (string) i limit (integer). Tabela Parameters oraz Playground na tej stronie zawierają wszystkie pola.

Co zwraca API ESPN Search?

Odpowiedź JSON zwrócona w tym samym żądaniu HTTP (synchronicznie).

Czy potrzebuję konta deweloperskiego ESPN lub klucza API?

Nie. ESPN Search 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 ESPN.