seo/
related-keywords

The Related Keywords API discovers queries connected to one seed through related-search paths, returning keyword metrics, monthly demand, intent, and relationship depth in normalized records.

Related Keywords API

Related-search graph
Depth control
Keyword measurements
0.1 credits / result
Ready
README

Related Keywords

Related keywords are queries linked through the searches-related-to graph, with depth, demand, CPC, competition, difficulty, and intent signals. These relationships and measurements support adjacent-topic discovery, topic-map expansion, and candidate comparison.

Related Keywords API Features

  • Related-search graph expansionThe Related Keywords API follows direct or recursive query relationships from one seed with depth values from 0 through 4 rather than requiring phrase containment.
  • Keyword measurement objectsReturn available search volume, CPC, paid competition, monthly history, difficulty, and intent information for each connected query.
  • Preserved relationship contextKeep source depth, related-keyword paths, complete keyword_data, and other variable fields in extra for detailed graph interpretation.

Related Keywords API Parameters

ParametersRequiredDescription
queryRequiredRequired non-empty seed keyword or phrase. One task accepts one query.
location_codeOptionalOptional positive numeric search-market code.
location_nameOptionalOptional search-market name alternative to location_code. When filled, it takes precedence over location_code.
language_codeOptionalOptional search-language code from 2 through 10 characters.
languageOptionalOptional search-language name alternative to language_code. When filled, it takes precedence over language_code.
depthOptionalRelationship depth from 0 through 4. The default 1 returns directly connected queries.
results_limitOptionalRequested maximum from 1 through 1,000 related keywords. Fewer rows may be returned.
offsetOptionalZero-based number of source rows to skip before collecting the requested result window.

How to Use the Related Keywords API

Submit one seed query to the Related Keywords API with a relationship depth, market controls, and a bounded result window, then read related records from the completed asynchronous task.

  1. Choose one non-empty query, a location_code, a language_code, a depth from 0 through 4, a results_limit from 1 through 1,000, and an offset of 0 or greater.
  2. POST the payload to /v1/seo/related-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/related-keywords" \
  -H "Authorization: Bearer $SOCQ_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"query":"keyword research","depth":1,"results_limit":100}'

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

Related Keywords API Use Cases

  • Adjacent-topic discovery: Use the returned query text and relationship context to find connected topics that do not need to contain the seed phrase.
  • Topic-map expansion: Compare depth and related-keyword paths in Related Keywords API results to extend one seed from direct neighbors into a broader query graph.
  • Keyword candidate assessment: Combine related terms with available demand, cost, competition, difficulty, monthly history, and intent to prepare a reviewable candidate set.

Related Keywords API Pro Tips

  • Start the Related Keywords API at depth 1 for direct relationships; raise depth only when a broader graph is worth the larger and potentially less direct candidate pool.
  • Use Keyword Suggestions instead when every returned term should retain the seed words, because related queries can use different phrasing.
  • Keep query, location_code, language_code, and depth fixed when comparing result windows so relationship and market context remain comparable.
  • Treat offset as a row count rather than a page number, and increase it by the number of source rows you intend to skip.
  • Read keyword, metrics, monthly_searches, and search_intent from normalized fields first, then inspect extra for source depth and relationship paths.
  • Do not infer identical intent from graph proximity, and allow optional measurements and variable extra fields to be absent.

Beyond the Related 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.
  • Keyword Suggestions API — Expand one seed query into matching long-tail terms with available demand measurements, monthly history, intent context, and complete source rows.
  • Search Intent API — Classify primary and secondary search intent for a submitted keyword batch while preserving source probabilities and complete records.

Explore other platforms

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

Related Keywords API — FAQ

Related Keywords API is a programmatic interface for finding queries connected to one seed through a selected search market's related-search graph. It returns keyword text, available measurements, monthly history, intent information, relationship depth, and complete source rows.

depth accepts 0 through 4: 0 represents the submitted seed, 1 covers direct relationships, and higher values expand recursively. Larger depths can produce a broader and less directly related candidate pool.

No. Related-search connections can return different wording, so use Keyword Suggestions when phrase-containing long-tail variants are the requirement.

Normalized records can include keyword text, search volume, CPC, paid competition, keyword difficulty, monthly searches, and intent information. Source relationship depth, related paths, and the complete keyword_data object remain in extra.

results_limit is a ceiling from 1 through 1,000, while offset is the number of earlier source rows to skip. offset is not a page number, and the source can return fewer rows than requested.

Each returned related 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