seo/
ranked-keywords

The Ranked Keywords API finds keywords for which one domain, subdomain, or page ranks in a search market, returning URLs, positions, search metrics, intent, and estimated traffic context.

Ranked Keywords API

Domain or page target
Ranking URL mapping
Position context
0.1 credits / result
Ready
Ready

Enter parameters and send a request. The task status and normalized results will appear here.

README

Ranked Keywords

Ranked keywords are search queries linked to a domain, subdomain, or page through a matching result URL, with group, absolute, and result-page positions plus available demand, difficulty, intent, and traffic signals. These query-to-page relationships support visibility inventories, landing-page mapping, opportunity review, and comparison of target snapshots.

Ranked Keywords API Features

  • Domain, subdomain, or page scopeResolve one correctly formatted web target at the breadth needed for a whole domain, a subdomain, or one complete page URL.
  • Keyword-to-URL relationshipsThe Ranked Keywords API pairs every returned keyword with the matching destination URL exposed by its ranked search-result element.
  • Position and keyword measurementsReturn available group, absolute, and result-page positions together with search volume, CPC, competition, difficulty, monthly history, and intent.
  • Complete matching elementPreserve keyword_data and ranked_serp_element in extra so result type, modeled traffic, and non-promoted source details remain available.

Ranked Keywords API Parameters

ParametersRequiredDescription
targetRequiredRequired domain, subdomain, or page target. Omit https:// and www. for a domain, omit the protocol for a subdomain, or use a complete URL for one page.
location_codeOptionalPositive numeric search-market code. The Playground defaults to 2840.
location_nameOptionalOptional search-market name alternative to location_code. When filled, it takes precedence over location_code.
language_codeOptionalSearch language code from 2 through 10 characters. The Playground defaults to en.
languageOptionalOptional search-language name alternative to language_code. When filled, it takes precedence over language_code.
results_limitOptionalRequested maximum from 1 through 1,000 ranked keyword rows. Fewer rows may be returned.
offsetOptionalZero-based number of source rows to skip before collecting the requested result window.

How to Use the Ranked Keywords API

Submit one correctly scoped target to the Ranked Keywords API with market controls and a bounded result window, then read each ranked keyword from the completed asynchronous task.

  1. Choose one target, a location_code, a language_code, a results_limit from 1 through 1,000, and an offset of 0 or greater.
  2. POST the payload to /v1/seo/ranked-keywords and save the returned task_id.
  3. Poll /v1/tasks/{task_id} until the task succeeds or returns a failure.
  4. Read data.results.items, then request the returned next_cursor while has_more remains true.
curl -X POST "https://api.socq.ai/v1/seo/ranked-keywords" \
  -H "Authorization: Bearer $SOCQ_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"target":"microsoft.com","location_code":2840,"language_code":"en","results_limit":5}'

# Poll GET /v1/tasks/{task_id}
# Read data.results.items and follow next_cursor while has_more is true

Ranked Keywords API Use Cases

  • Organic visibility inventory: Use the keyword text and matching URLs returned by the Ranked Keywords API to catalog where a domain or subdomain appears in the selected search market.
  • Landing-page ranking map: Combine each keyword, destination URL, and rank object to identify which page is associated with each returned position.
  • Keyword opportunity review: Compare position with available volume, CPC, competition, difficulty, and intent fields to assemble a review queue.
  • Visibility snapshot comparison: Store matched target inputs, collected_at, keywords, URLs, and ranks from repeated tasks to compare separately collected snapshots.

Ranked Keywords API Pro Tips

  • Remove https:// and www. from a domain target, and remove the protocol from a subdomain target so the intended scope is interpreted correctly.
  • Use a complete page URL when you need page-level results; a page path without a protocol can be interpreted as a domain-wide target.
  • Increase offset by the number of source rows you intend to skip, and keep the target, market, language, and limit fixed when retrieving consecutive windows.
  • Treat rank.page as the search-results-page number; use offset for source windows and next_cursor separately for stored SocQ result pages.
  • Read normalized positions and keyword metrics first, then inspect extra.ranked_serp_element for modeled etv and other source fields that are not promoted.
  • Build historical comparisons from repeated Ranked Keywords API tasks, and deduplicate windows by keyword, matching URL, market, and language because source order can change.

Beyond the Ranked Keywords API, use these APIs when you need a different type of public SEO data.

  • Google Organic SERP API — Retrieve one live Google result page by query and market with normalized destinations, ranks, element types, and full result details.
  • Keyword Difficulty API — Compare organic ranking difficulty for a submitted keyword batch, returning each available keyword with its normalized score.
  • Keyword Overview API — Enrich a submitted keyword batch with available demand, paid competition, difficulty, monthly-search, and intent context.
  • Keyword Search Volume API — Measure known keywords with available search volume, CPC, paid competition, and monthly search history.
  • Keywords for Site API — Generate keywords relevant to one website with available demand measurements, monthly history, market context, and complete source rows.
  • Relevant Pages API — Inventory indexed pages for one domain with organic and paid ranking distributions, modeled traffic, and estimated cost context.

Explore other platforms

Combine SEO data with public data from other supported social platforms.

Ranked Keywords API — FAQ

Ranked Keywords API is a programmatic interface for finding search terms associated with one domain, subdomain, or page in a selected market and language. It returns matching URLs, positions, keyword measurements, monthly history, intent, and complete source elements.

Use a bare domain without https:// or www., a subdomain without the protocol, or a complete URL for one page. Supplying a page path without a protocol can broaden the scope to the entire domain.

No. The positions describe the selected search index and market rather than an identical live result for every user, so use collected_at when comparing repeated snapshots.

rank.page is the search-results-page number, offset skips source keyword rows, and next_cursor pages through results already stored for the SocQ task. These values are not interchangeable.

No. etv is a modeled value retained in extra.ranked_serp_element, not private traffic or conversion analytics for the target.

Each returned ranked keyword costs 0.1 SocQ credits. An empty result set has no result charge, and results_limit supplies the pre-request estimate rather than a guaranteed final count.

By SocQ · Updated