SEO ROWS API REFERENCE · v1 ← Rates

SeoRows API

Base URL https://api.seorows.com. Every endpoint takes an API key, returns the same envelope, and bills by the row it returns.

Authentication

Send your key in the X-API-Key header. Keys are hashed at rest and can be revoked without notice to other keys.

curl https://api.seorows.com/v1/domain/overview?domain=semrush.com \
  -H "X-API-Key: sk_live_…"

During beta, keys are issued by hand. Request one.

Credits & billing

You buy prepaid credits. 1 credit = $0.0001. A call reserves an estimate, then settles to the real charge once the rows are known, so a slow or partial response is never overbilled.

  • Charged on success only. Upstream failures refund the reservation in full.
  • Cached responses bill at 20% of the listed price.
  • Each response carries x-credits-charged; the ledger is reconstructable from your own logs.
GET /v1/account
GET /v1/usage?limit=50
GET /v1/pricing

Cache & idempotency

Responses are cached by endpoint and parameters. TTLs: SERP 1 day, keyword volume 14 days, difficulty 30 days, domain and app data 3–7 days. A cache hit costs 20% and spends nothing upstream.

Send an Idempotency-Key header on retries: the stored body comes back with idempotent-replayed: true and no second charge.

Errors

StatusTypeMeaning
401unauthorizedMissing or bad key.
402insufficient_creditsMessage states needed versus balance.
403daily_cap_reachedPer-key daily cap. Resets 00:00 UTC.
422invalid_requestBad parameters, e.g. more than 20 keywords.
429rate_limitedPer-minute limit for this key.
502upstream_errorUpstream failed. Never charged.

Endpoints

All responses share one envelope:

{
  "request_id": "b04a3642b67546fc",
  "data": { … },
  "meta": { "credits_charged": 300, "cached": false, "provider": "semrushapi", "rows": 1 }
}

GET /v1/serp

Organic results for one query.

qQuery string. Required.
depth10–100 results. Default 20.
locationLocation code, default 2840 (US).
languageTwo-letter code, default en.
providerOptional upstream override.
curl "https://api.seorows.com/v1/serp?q=running+shoes&depth=20" \
  -H "X-API-Key: sk_live_…"
{"data": {"keyword": "running shoes", "items": [
  {"rank": 1, "url": "https://www.nike.com/…", "domain": "www.nike.com", "title": "…"}
]}}

GET /v1/keywords/volume

Search volume, CPC and competition for up to 20 comma-separated terms, in one upstream round trip.

curl "https://api.seorows.com/v1/keywords/volume?keywords=running+shoes,trail+running" \
  -H "X-API-Key: sk_live_…"
{"data": {"keywords": [
  {"keyword": "running shoes", "volume": 246000, "cpc": 0.76, "competition": "HIGH"}
]}}

GET /v1/keywords/difficulty

0–100 difficulty per term, same batching rules.

GET /v1/domain/overview

Authority, backlinks and organic footprint for one domain.

{"data": {"domain": "semrush.com", "rank": 1340, "organic_keywords": 479166,
  "organic_traffic": 1747309, "backlinks": 112621948, "referring_domains": 470673}}

GET /v1/domain/competitors

Domains sharing keywords with the target. limit 1–100, default 20.

GET /v1/apps/search

App store search. store is apple or google; limit 1–50.

GET /v1/apps/{id}

Listing detail. Runs upstream in standard mode: 5–45s.

GET /v1/apps/{id}/reviews

Newest reviews with ratings. limit 1–100.

GET /v1/apps/{id}/estimates

Modelled download and revenue bands with a confidence level. These are estimates from public signals, not audited figures — present them as bands, never as exact revenue.

{"data": {"app_id": "544007664", "confidence": "medium",
  "downloads": {"low": 2379, "mid": 62408, "high": 349256, "period": "30d"},
  "revenue":   {"low": 4288, "mid": 20999, "high": 76034, "period": "30d"}}}

POST /v1/batch

Up to 20 operations in one request. Each op is billed independently; one failing op does not fail the batch.

curl -X POST https://api.seorows.com/v1/batch \
  -H "X-API-Key: sk_live_…" -H "content-type: application/json" \
  -d '{"ops":[{"endpoint":"domain.overview","params":{"domain":"a.com"}},
               {"endpoint":"keywords.volume","params":{"keywords":"x,y"}}]}'

Beta: no SLA. If an upstream fails, the call is refunded and the response says so. Request a key →