targetstringwymagane
The target of the report: a domain ('example.com') or a URL ('https://example.com/page').
https://api.sandbase.ai/v1/api/ahrefs/site-explorer-total-search-volume-historyTrack total search volume of keywords a target ranks for over time.
Twój wynik pojawi się tutaj
Uzupełnij dane wejściowe, a następnie kliknij Uruchom.
Track total search volume of keywords a target ranks for over time.
Zacznij tworzyć
Punkt końcowy API platformy z jednolitym uwierzytelnianiem i śledzeniem użycia.
curl -X POST "https://api.sandbase.ai/v1/api/ahrefs/site-explorer-total-search-volume-history" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"scope": "domain",
"target": "ahrefs.com",
"country": "us",
"protocol": "both",
"date_from": "2026-08-01",
"history_grouping": "monthly"
}'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.
targetstringwymaganeThe target of the report: a domain ('example.com') or a URL ('https://example.com/page').
date_fromstringwymaganeStart date of the historical period in YYYY-MM-DD format.
scopestringScope of the target: exact (this URL only), prefix (URLs starting with the target), domain (the domain without subdomains), or subdomains (default — the domain and all its subdomains).
Domyślnie: "subdomains"
Możliwe wartości: exact, prefix, domain, subdomains
countrystringTwo-letter country code (ISO 3166-1 alpha-2), e.g. 'us'.
date_tostringEnd date of the historical period in YYYY-MM-DD format. Defaults to today.
protocolstringProtocol of the target: both (default), http, or https.
Domyślnie: "both"
Możliwe wartości: both, http, https
history_groupingstringTime bucket size for history rows: daily, weekly, or monthly (default). Each bucket is one charged row.
Domyślnie: "monthly"
Możliwe wartości: daily, weekly, monthly
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ź |
|---|---|---|
Ahrefs | Od $0.007095 za wywołanie | Asynchroniczny JSON |
Ahrefs | Od $0.013545 za wywołanie | Asynchroniczny JSON |
Ahrefs | $0.08 za wywołanie | JSON |
Ahrefs | Od $0.01419 za wywołanie | Asynchroniczny JSON |
Ahrefs | Od $0.02709 za wywołanie | Asynchroniczny JSON |
Ahrefs | Od $0.01419 za wywołanie | Asynchroniczny JSON |
Pytania
Wyślij żądanie POST do https://api.sandbase.ai/v1/api/ahrefs/site-explorer-total-search-volume-history 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.007095 za wywołanie, rozliczane z salda SandBase. Płacisz tylko za wykonane wywołania; nie ma subskrypcji.
Wymagane: target (string) i date_from (string). Opcjonalne: scope (jedna z opcji: exact, prefix, domain, subdomains), country (string), date_to (string), protocol (jedna z opcji: both, http, https) i history_grouping (jedna z opcji: daily, weekly, monthly). Tabela Parameters oraz Playground na tej stronie zawierają wszystkie pola.
Wynik JSON. Ten endpoint działa asynchronicznie, więc odpowiedź informuje, jak pobrać gotowy wynik.
Nie. Ahrefs Site Explorer Total Search Volume History 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 Ahrefs.