SEO API

SEO Competitors domain API

Get AnyAPI SEO competitor domains for a target domain with shared keyword counts and organic metrics as normalized JSON.

$0.18864/1k results, pay per request, no subscription.

What the API returnedcompetitors[0]
{
"domain": "gitlab.com",
"avgPosition": 14.2,
"sumPosition": 61200,
"intersections": 41208,
"organicKeywords": 218044,
"organicEtv": 912400
}
Uptime
100.00%
30d · 36 calls
Requests
36
30d · weekly, last 12 wks
Response
1.4s
median · 30d

Call it

Get SEO competitors domain in one request

import os, requests

res = requests.post(
    "https://api.getanyapi.com/v1/run/seo.competitors_domain",
    headers={"Authorization": f"Bearer {os.environ['ANYAPI_KEY']}"},
    json={
        "target": ""
    },
)
print(res.json())
Open in
Get a free key
Sample response

This sample shows 9 of 10 fields. See every field

{
  "found": true,
  "data": {
    "competitors": [
      {
        "domain": "gitlab.com",
        "avgPosition": 14.2,
        "sumPosition": 61200,
        "intersections": 41208,
        "organicKeywords": 218044,
        "organicEtv": 912400
      },
      {
        "domain": "bitbucket.org",
        "avgPosition": 21.6,
        "sumPosition": 38400,
        "intersections": 28914,
        "organicKeywords": 121088,
        "organicEtv": 401200
      },
      {
        "domain": "sourceforge.net",
        "avgPosition": 26.4,
        "sumPosition": 29800,
        "intersections": 19204,
        "organicKeywords": 88044,
        "organicEtv": 218400
      }
    ]
  }
}

Full parameter and response reference - every field, type, and example for this endpoint.

Reference

One request, one response shape.

Every field you send and every field you get back, each with a real example.

Last verified 2026-10-31 · uptime and latency measured over 30d

Request body

JSON, posted to this endpoint.

  • targetstring

    github.com

    Domain to analyze, without a protocol or leading www.

  • languagestring

    en

    Language code for SEO competitor metrics.

  • limitinteger

    10

    Maximum number of competitor domains to return. You are billed per returned result, so a lower limit costs less.

  • locationinteger

    2840

    Location code for SEO competitor metrics. The default is the United States.

  • orderByenum

    intersections_desc

    Sort order for the returned competitors: by shared keyword count (intersections), organic keyword count, organic traffic value (etv), or average position. Omit for the default order.

You send. A small JSON body. The values shown are examples to replace with your own.

Response

JSON, one example value per field.

each competitordata.competitors[]

SEO competitor domain records. Populated whenever the provider has data for the entity.

  • avgPositionnumber

    14.2

    Average ranking position across shared keywords. Populated whenever the provider has data for the entity.

  • domainstring

    gitlab.com

    Competing domain. Populated whenever the provider has data for the entity.

  • intersectionsinteger

    41208

    Number of keywords shared with the target domain. Populated whenever the provider has data for the entity.

  • organicEtvnumber

    912400

    Estimated monthly organic search traffic for the competitor domain.

  • organicKeywordsinteger

    218044

    Number of organic search results where the competitor domain appears.

  • sumPositioninteger

    61200

    Sum of ranking positions across shared keywords. Populated whenever the provider has data for the entity.

top level
  • foundboolean

    true

  • reason"not_found"

    Present only when `found` is false, and says why there is no result. `not_found`: the source states the target does not exist, or returned nothing for it. A `found: false` answer is a successful call, not an error, and `costUsd` is what it actually cost.

You get back. Named, typed fields in the same shape whichever source answers.

FAQ

About the SEO Competitors domain API

The AnyAPI SEO Competitors domain API returns SEO competitors domain data as normalized JSON from one POST call to /v1/run/seo.competitors_domain. Get AnyAPI SEO competitor domains for a target domain with shared keyword counts and organic metrics as normalized JSON. AnyAPI returns one normalized schema whichever source serves it. It costs $0.19 per 1,000 results, and never more than $0.18864 for a single request, in US dollars with no subscription and no monthly minimum. Over the last 30 days, 100.0% of SEO competitors domain calls through AnyAPI succeeded, with a median response time of 1.4 seconds across 36 measured calls.

It costs $0.19 per 1,000 results, and never more than $0.18864 for a single request, in US dollars with no subscription and no monthly minimum. You fund one USD wallet and each call draws it down. Some failed wallet-funded requests incur processing charges that we pass through at cost, with no markup; the error response shows the amount charged.

Get AnyAPI SEO competitor domains for a target domain with shared keyword counts and organic metrics as normalized JSON. The response is normalized JSON with the same envelope every AnyAPI endpoint returns, so parsing a second endpoint is a change of URL and nothing else.

Over the last 30 days, 100.0% of SEO competitors domain calls through AnyAPI succeeded, with a median response time of 1.4 seconds across 36 measured calls. These are AnyAPI's own measurements of traffic through the gateway, recomputed continuously, not a published service-level target.

Yes. A new AnyAPI account starts with $0.10 of free balance and no card required.

Send a POST request to https://api.getanyapi.com/v1/run/seo.competitors_domain with your AnyAPI key in an "Authorization: Bearer" header and the input as a JSON body. The same key and the same wallet work on every AnyAPI endpoint.

No. You add US dollars to one prepaid AnyAPI balance and each request draws it down. There is no monthly plan and no minimum, and the same balance pays for every AnyAPI endpoint.

Yes. Install @getanyapi/sdk from npm for TypeScript or getanyapi from pip for Python. Both call every AnyAPI endpoint with the same key, and any HTTP client works too.

Yes. An agent can connect to the AnyAPI MCP server at https://api.getanyapi.com/mcp, or create its own free-trial key with one unauthenticated POST to https://api.getanyapi.com/agent/signup and call this endpoint over HTTP.