Read stored or fresh SERP ranks
/sites/{site_id}/keywords/{keyword_id}/serpkeywords:readsource=stored returns the latest saved snapshot. source=live additionally requires rankings:live and performs one uncached SerpAPI Google first-page search using the tracked locale/country/device/location. It consumes a paid provider request, requires configured provider credentials, and shares company budgets (default 5/minute and 100/day). It does not scan the full top 100 or write tracking history. A null live rank means not found in the returned first search page. Inspect results_checked and search_pages_checked. Stored snapshots exclude raw provider payloads and may have different result coverage. Each new live request requires Idempotency-Key and deducts 1 company credit by default before provider dispatch; successful empty searches are billable. A completed same-key retry replays the saved DTO and original billing receipt without another provider call or debit. Insufficient credit returns 402 before dispatch. Reusing a key with another resource or tracking settings returns 409. Pending/unknown outcomes never redispatch and return 409. Definite unbilled failures reverse the debit within original allocation expiry/period rules; ambiguous timeouts retain the charge for reconciliation. Stored reads are free. data.persisted refers to tracking history; paid response DTOs are saved separately for retries.
| Request | GET https://satelliteai.io/api/v1/sites/{site_id}/keywords/{keyword_id}/serp |
| Permission | keywords:read; also rankings:live when source=live |
| Response | A single object: data is SearchSerpRank. |
| Operation ID | getKeywordSerpRank |
More context and worked examples are in the developer guide.
Example request
curl --fail-with-body \
'https://satelliteai.io/api/v1/sites/123/keywords/789/serp' \
-H "Authorization: Bearer $SATELLITE_API_KEY"Replace the example IDs with values returned by the discovery endpoints. Example values are placeholders, not real records.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
site_idrequired | path | integer | ID from GET /sites. min 1 |
keyword_idrequired | path | integer | Tracked keyword ID returned by GET /sites/{site_id}/keywords; distinct from the global keyword_id field. min 1 |
source | query | string | one of: stored, live · default stored |
Idempotency-Key | header | string | Required only for source=live. Use a new UUID for each intended refresh and the same value when retrying it. Scoped to the integration across credential rotation. Visible ASCII without spaces or other whitespace. Never silently generate a new key after a timeout. min length 16 · max length 128 |
Unknown or repeated query parameters return 400.
Data dictionary
Results retrieved; consult availability, source, and timestamps.
[] marks an array element. nullable means the value can be null; treat it as unknown, not zero. always present means the key is always included in the object.
| Field | Type | Description |
|---|---|---|
data.id | integernullable | Satellite identifier for this record. |
data.site_id | integernullable | Satellite site ID (from GET /sites). |
data.tracked_keyword_id | integernullable | |
data.checked_at | string (date-time)nullable | |
data.provider | stringnullable | |
data.check_type | stringnullable | |
data.our_best_rank | numbernullable | |
data.our_best_url | stringnullable | |
data.pages_ranking_count | numbernullable | |
data.rank_change | numbernullable | |
data.previous_rank | numbernullable | |
data.previous_url | stringnullable | |
data.url_changed | booleannullable | |
data.ai_overview_present | booleannullable | |
data.ai_overview_cites_us | booleannullable | |
data.featured_snippet_present | booleannullable | |
data.we_own_featured_snippet | booleannullable | |
data.ddg_best_rank | numbernullable | |
data.ddg_best_url | stringnullable | |
data.source | string | one of: stored, live |
data.available | boolean | |
data.our_pages_in_serp | array of SearchOrganicResult | max items 100 |
data.our_pages_in_serp[].position | integernullable | |
data.our_pages_in_serp[].domain | stringnullable | |
data.our_pages_in_serp[].url | stringnullable | Absolute URL as stored by Satellite. |
data.our_pages_in_serp[].title | stringnullable | |
data.our_pages_in_serp[].snippet | stringnullable | |
data.our_pages_in_serp[].is_us | boolean | |
data.top_organic_results | array of SearchOrganicResult | max items 100 |
data.top_organic_results[].position | integernullable | |
data.top_organic_results[].domain | stringnullable | |
data.top_organic_results[].url | stringnullable | Absolute URL as stored by Satellite. |
data.top_organic_results[].title | stringnullable | |
data.top_organic_results[].snippet | stringnullable | |
data.top_organic_results[].is_us | boolean | |
data.rank_meaning | string | one of: organic_position_at_check_time |
data.search_engine | string | |
data.locale | string | |
data.country_code | string | |
data.device | string | |
data.location_name | stringnullable | |
data.results_checked | integer | |
data.search_pages_checked | integer | one of: 1 |
data.effective_location | string | Explicit provider location, from the saved location or Satellite's supported country default. |
data.google_domain | string | Google domain selected for the tracked country. |
data.persisted | boolean | one of: False |
data.not_found_meaning | string | one of: not_found_in_returned_first_search_page |
data.arrays_limited_to | integer | one of: 100 |
data.omitted_fields | array of string | Stored JSON fields omitted because they exceed 256 KiB; their empty arrays do not mean no results. |
Response metadata
| Field | Type | Description |
|---|---|---|
meta.request_id | stringalways present | Request identifier; also returned in X-Request-ID. Include it in support requests. |
meta.api_version | stringalways present | API version that produced the response. one of: v1 |
meta.limit | integer | Maximum records per page applied to this request. min 1 · max 100 |
meta.has_more | boolean | True when another page is available. |
meta.next_cursor | stringnullable | Opaque cursor for the next page; send as cursor. Null on the last page. |
meta.availability | string | available when stored data exists; not_available when it does not. one of: available, not_available |
meta.billing | object | Present for paid live SERP requests; replayed receipts describe the original debit, not an additional charge. |
meta.billing.operation | stringalways present | one of: client_api_serp_refresh |
meta.billing.credits_charged | integeralways present | min 0 |
meta.billing.transaction_id | integeralways present | |
meta.billing.replayed | booleanalways present |
Error responses
Errors return {"error": {"code", "message", "request_id"}}. See error handling for retry guidance.
| HTTP | When |
|---|---|
400 | Invalid query or missing/invalid Idempotency-Key for a live request. |
401 | Missing, expired, invalid, or revoked client key. |
403 | Required scope or API entitlement is unavailable. |
404 | Missing resource or resource outside the granted site/company. |
409 | Unsupported live tracking, idempotency conflict, request in progress, or unresolved provider outcome. The same idempotency key cannot cause a second provider call. |
413 | The stored payload or response exceeds the retrieval bound. |
429 | Satellite or provider quota exceeded; honor Retry-After. |
502 | Provider request failed or returned an invalid/oversized response. |
503 | A required storage, provider configuration, or quota dependency is unavailable. |
504 | Provider request timed out. |
402 | insufficient_credits: company balance cannot fund this request; no provider call or debit. |