keywordsarray
List of keywords (up to 100 per call).
https://api.sandbase.ai/v1/api/dataforseo/v3/dataforseo_labs/google/serp_competitors/liveReturns competitor domains ranking for target keywords in Google search results. Analyzes search visibility metrics and domain overlap across organic search rankings.
[
{
"cost": 0,
"status_code": 20000,
"status_message": "Ok.",
"tasks": [
{
"cost": 0,
"data": {
"api": "dataforseo_labs",
"function": "serp_competitors",
"se_type": "google"
},
"id": "08200930-2190-0383-0000-7b4f76988ffc",
"path": [
"v3",
"dataforseo_labs",
"google",
"… 2 more items in the full response"
],
"result": null,
"result_count": 0,
"status_code": 40503,
"status_message": "POST Data Is Invalid.",
"time": "0 sec."
}
],
"tasks_count": 1,
"tasks_error": 1,
"time": "0.0085 sec.",
"version": "0.1.20260806"
}
]Wybierz przykład, aby wczytać jego dane wejściowe i wynik do playgroundu.
Look up competitor domains and ranking metrics on Google SERPs using DataForSEO Labs data.
curl -X POST "https://api.sandbase.ai/v1/api/dataforseo/v3/dataforseo_labs/google/serp_competitors/live" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"keywords": ["running shoes", "trail running shoes"], "limit": 5, "location_code": 2840, "language_code": "en"}'
The JSON body is forwarded to the upstream endpoint (one task per call). Fields used above:
| Name | Description |
|---|---|
keywords | List of keywords (up to 100 per call). |
limit | Maximum number of results (up to 100). |
location_code | Location code, e.g. 2840 for the United States. |
language_code | Language code, e.g. "en". |
Billed at the actual cost of each call, about $0.012 for the request above. The cost grows with the number of rows, targets or pages a call returns. Failed calls are not charged. Searches with no results are billed at their actual cost.
Zacznij tworzyć
Punkt końcowy API platformy z jednolitym uwierzytelnianiem i śledzeniem użycia.
curl -X POST "https://api.sandbase.ai/v1/api/dataforseo/v3/dataforseo_labs/google/serp_competitors/live" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"limit": 5,
"keywords": [
"running shoes",
"trail running shoes"
],
"language_code": "en",
"location_code": 2840
}'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.
keywordsarrayList of keywords (up to 100 per call).
limitintegerMaximum number of results (up to 100).
location_codeintegerLocation code, e.g. 2840 for the United States.
language_codestringLanguage code, e.g. "en".
Zapisany przykładowy response dla tego API; podczas wyświetlania nie jest wykonywane żadne żądanie na żywo.
[
{
"cost": 0,
"status_code": 20000,
"status_message": "Ok.",
"tasks": [
{
"cost": 0,
"data": {
"api": "dataforseo_labs",
"function": "serp_competitors",
"se_type": "google"
},
"id": "08200930-2190-0383-0000-7b4f76988ffc",
"path": [
"v3",
"dataforseo_labs",
"google",
"… 2 more items in the full response"
],
"result": null,
"result_count": 0,
"status_code": 40503,
"status_message": "POST Data Is Invalid.",
"time": "0 sec."
}
],
"tasks_count": 1,
"tasks_error": 1,
"time": "0.0085 sec.",
"version": "0.1.20260806"
}
]Odkryj więcej
| API | Cena | Odpowiedź |
|---|---|---|
DataForSEO | Od $0.012 za wywołanie | JSON |
DataForSEO | Od $0.0102 za wywołanie | JSON |
DataForSEO | Od $0.000724 za wywołanie | JSON |
DataForSEO | $0.004 za wywołanie | JSON |
DataForSEO | Od $0.00162 za wywołanie | JSON |
DataForSEO | Od $0.001105 za wywołanie | JSON |
Pytania
Wyślij żądanie POST do https://api.sandbase.ai/v1/api/dataforseo/v3/dataforseo_labs/google/serp_competitors/live 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.
Od $0.012 za wywołanie, rozliczane z salda SandBase. Płacisz tylko za wykonane wywołania; nie ma subskrypcji.
Nie są wymagane żadne parametry. Opcjonalne: keywords (array), limit (integer), location_code (integer) i language_code (string). Tabela Parameters oraz Playground na tej stronie zawierają wszystkie pola.
Odpowiedź JSON zwrócona w tym samym żądaniu HTTP (synchronicznie).
Nie. DataForSEO Google SERP Competitors 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 DataForSEO.