Skip to content
New76 outils gratuits · Résultats Google en direct · Sans inscription
SerpClean

Country Rank Checker API: real Google rankings from a local proxy in any country

One HTTP request checks where a site ranks for up to 10 keywords, searched on Google through a verified residential proxy in the country you choose. You get every organic result and the exact position of your site, as JSON.

  • 18 countries
  • Account and API key required
  • Paid: 1 credit per Google result page
  • 30 to 120 s per run

Your API keys

Sign in with the same account you use for the Citewise Country Rank Checker app. Create keys, revoke them and watch your credit balance here.

Make your first request

Send your key as a Bearer token. Replace cwk_live_YOUR_KEY with a key from the console above.

Endpoint: POST https://www.serpclean.com/api/v1/country-rank

curl
curl -X POST "https://www.serpclean.com/api/v1/country-rank" \
  --max-time 300 \
  -H "Authorization: Bearer cwk_live_YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "url": "example.com",
    "keywords": ["seo audit checklist", "technical seo"],
    "country": "de",
    "pages": 1
  }'

Check your credits with GET https://www.serpclean.com/api/v1/balance, using the same header. It does not count against the run limits.

curl
curl "https://www.serpclean.com/api/v1/balance" \
  -H "Authorization: Bearer cwk_live_YOUR_KEY"

# {"ok":true,"data":{"balance":98}}

Request and response

Send a JSON body with Content-Type: application/json. Every response, success or failure, is a JSON envelope.

Request body parameters
ParameterTypeRequiredDescription
urlstringYesThe site to look for: a bare domain (example.com) or an exact page URL. A domain matches any page on it; a URL matches that page only.
keywordsstring[]Yes1 to 10 keywords, each 1 to 200 characters. They are trimmed and de-duplicated case-insensitively, and all are searched through the same proxy session.
countrystringYesTwo-letter country code to search from, in lowercase. See the supported countries.
pages1 | 2 | 3No (default 1)Google result pages to read per keyword, 10 organic results each. keywords × pages must not exceed 15.

Supported countries

Pass the two-letter code as country.

  • us United States
  • gb United Kingdom
  • ca Canada
  • au Australia
  • in India
  • de Germany
  • fr France
  • es Spain
  • it Italy
  • nl Netherlands
  • br Brazil
  • mx Mexico
  • jp Japan
  • sg Singapore
  • ae United Arab Emirates
  • za South Africa
  • ie Ireland
  • nz New Zealand
Successful response (200)Show example

Shortened: results normally lists every organic result on the pages read (10 per page).

200 OK
{
  "ok": true,
  "data": {
    "country": "de",
    "countryName": "Germany",
    "target": { "kind": "domain", "value": "example.com" },
    "keywords": [
      {
        "keyword": "seo audit checklist",
        "status": "ok",
        "pagesChecked": 1,
        "pagesRequested": 1,
        "found": true,
        "best": {
          "rank": 4,
          "page": 1,
          "positionOnPage": 4,
          "title": "SEO audit checklist: 30 checks to run",
          "displayUrl": "https://example.com › blog › seo-audit-checklist",
          "host": "example.com",
          "url": "https://example.com/blog/seo-audit-checklist",
          "match": true
        },
        "matches": [
          {
            "rank": 4,
            "page": 1,
            "positionOnPage": 4,
            "title": "SEO audit checklist: 30 checks to run",
            "displayUrl": "https://example.com › blog › seo-audit-checklist",
            "host": "example.com",
            "url": "https://example.com/blog/seo-audit-checklist",
            "match": true
          }
        ],
        "results": [
          {
            "rank": 3,
            "page": 1,
            "positionOnPage": 3,
            "title": "The complete SEO audit checklist",
            "displayUrl": "https://another-site.example › seo-audit",
            "host": "another-site.example",
            "url": null,
            "match": false
          }
        ]
      }
    ],
    "proxy": {
      "country": "de",
      "ip": "203.0.113.42",
      "attempts": [{ "attempt": 1, "ok": true, "note": "Proxy session opened and Google results loaded." }]
    },
    "summary": { "checked": 1, "found": 1, "notFound": 0, "notChecked": 0, "bestRank": 4 }
  },
  "credits": { "charged": 1, "balance": 99 }
}
Key response fields
FieldMeaning
data.targetHow your url was interpreted: kind (domain or url) and the normalized value.
data.keywords[].statusok: every requested page was read. partial: some were. not_checked: none were (see incompleteReason).
data.keywords[].found / best / matchesWhether your target appears in the pages read, its best (lowest) result, and every matching result.
data.keywords[].resultsEvery organic result on the pages read, with rank, page, title, displayUrl, host and the resolved url (null when it could not be resolved).
data.keywords[].pagesChecked / pagesRequestedPages actually read versus pages you asked for. You are charged for pages read.
data.proxyThe country, exit IP and attempt log of the residential proxy session that produced the results.
data.summaryTotals: checked, found, notFound, notChecked and bestRank (null when nothing matched).
creditscharged (credits spent by this run, after refunds) and balance (credits left).

All endpoints

Every endpoint is POST https://www.serpclean.com/api/v1/<name> with a JSON body, the same Authorization: Bearer key, the same response envelope and the same error codes. Credits are held when the call starts and refunded in full if it fails. Optional fields are marked with ?. Default limit per key: 30 calls a minute and 5,000 a day, lower for bulk and heavy endpoints, and 120 a minute across all your keys (see the error's retryAfterSec).

Keywords

Keywords endpoints
EndpointBodyCredits
/api/v1/keyword-suggestions
Keyword suggestions
seed, expand?1
/api/v1/keyword-suggestions-fast
Keyword suggestions (fast)
seed1
/api/v1/keyword-difficulty
Keyword difficulty
keyword, country?2
/api/v1/bulk-keyword-difficulty
Bulk keyword difficulty
keywords (max 100), country?2 + 1 per 25 keywords
/api/v1/bulk-keyword-research
Bulk keyword research
keywords (max 100), country?3 + 1 per 25 keywords
/api/v1/keyword-ideas
Keyword ideas
keywords (max 10), country?, limit? (max 200)3 + 1 per 50 results
/api/v1/related-keywords
Related keywords
keyword, country?, depth? (1-3), limit? (max 200)3 + 1 per 50 results + 1 per extra depth
/api/v1/google-ads-keyword
Google Ads keyword data
keywords (max 100), country?3 + 1 per 25 keywords
/api/v1/ai-keyword-research
AI keyword research
topic, country?, count? (5-50), intent?
Ideas and clusters only; no search volumes. Pair with bulk-keyword-research.
3 + 1 per 25 keywords
/api/v1/youtube-keyword
YouTube keyword research
keyword, region?2
/api/v1/trending-topics
Trending topics
geo? (e.g. US)1
/api/v1/news-discover
News discovery
query, country?, limit? (max 50)1

SERP and competitors

SERP and competitors endpoints
EndpointBodyCredits
/api/v1/serp-analyzer
SERP analyzer
keyword, country?, device?, depth? (10, 20, 50 or 100)3 + 1 per 50 results
/api/v1/rank-checker
Rank checker
keyword, domain?, country?, device?, depth?, city?3
/api/v1/competitor-analysis
Competitor analysis
domain, country?, limit? (max 100)4 + 1 per 50 competitors
/api/v1/competitor-keywords
Competitor keywords
domain, country?, limit? (max 500)4 + 1 per 100 keywords

Authority and backlinks

Authority and backlinks endpoints
EndpointBodyCredits
/api/v1/domain-authority
Domain authority
domain
A domain rank on a 0 to 1000 scale (plus a 0 to 100 score). Not the Moz DA metric.
2
/api/v1/bulk-domain-authority
Bulk domain authority
domains (max 100)2 + 1 per 20 domains
/api/v1/backlinks-summary
Backlink summary
domain3
/api/v1/backlinks
Backlinks
domain, limit? (max 500), mode?3 + 1 per 100 rows
/api/v1/lost-backlinks
Lost backlinks
domain, limit? (max 500), mode?3 + 1 per 100 rows
/api/v1/bulk-referring-domains
Bulk referring domains
domains (max 100)2 + 1 per 20 domains

Traffic

Traffic endpoints
EndpointBodyCredits
/api/v1/website-traffic
Website traffic
domain, country?
Estimated from search rankings.
3
/api/v1/bulk-website-traffic
Bulk website traffic
domains (max 100), country?3 + 1 per 20 domains
/api/v1/website-traffic-by-country
Website traffic by country
domain, countries?2 + 1 per country
/api/v1/website-traffic-history
Website traffic history
domain, country?3

Content analysis

Content analysis endpoints
EndpointBodyCredits
/api/v1/readability
Readability score
mode (url or text), url or text1
/api/v1/seo-content-analysis
SEO content analysis
text, keyword?, secondary?, title?, metaDescription?1
/api/v1/ai-content-optimization
AI content optimization
mode (url or content), url or content, keyword, audience?4
/api/v1/helpful-content
Helpful content analysis
mode (url or content), url or content4
/api/v1/relevance-score
Relevance score
mode (url or content), url or content, keyword
AI-judged semantic relevance, not a BERT model.
3
/api/v1/plagiarism
Plagiarism check
mode (url or content), url or content
Exact-phrase Google matches on up to 6 sampled sentences.
8
/api/v1/keyword-density
Keyword density
mode (url or text), url or text3

Content

Content endpoints
EndpointBodyCredits
/api/v1/content-generator
Content generator
topic, keywords?, type?, tone?, length?, language?3 short, 5 medium, 8 long
/api/v1/text-rewriting
Text rewriting
text (max 10,000 characters), mode?2 + 1 per 3,000 characters

Page elements

Page elements endpoints
EndpointBodyCredits
/api/v1/headings
Headings
mode (url or html), url or html1
/api/v1/title-tag
Title tags
urls (max 50)1 per URL
/api/v1/meta-description
Meta descriptions
urls (max 25)1 per URL
/api/v1/word-count
Word count
urls (max 50)1 per URL

Technical SEO

Technical SEO endpoints
EndpointBodyCredits
/api/v1/technical-audit
Technical SEO audit
url, keyword?3
/api/v1/canonical
Canonical check
mode (list or page), urls or url1 per URL
/api/v1/internal-links
Internal links
url2
/api/v1/robots-txt
Robots.txt test
urls, userAgent, robotsText?1
/api/v1/domain-age
Domain age
domains (one per line)1 per domain
/api/v1/pwa
PWA check
url2
/api/v1/page-speed
Page speed
url, strategy? (mobile, desktop or both)2 (4 for both)

Country fields take the two-letter codes listed above and default to us. Live data endpoints share a daily provider capacity, so you can get CAPACITY when it is used up.

Credits and limits

The country rank endpoint costs one credit per Google result page, refunded when a page can't be read. Credits are added by the team for now, and the balance is shared with the Citewise Country Rank Checker app.

  • Held, then refunded. Credits for every requested page are held when the run starts. Pages that could not be read are refunded, and a run that fails entirely is refunded in full.
  • Example. Reading 3 keywords across 2 pages is up to 6 credits. The response shows what a run charged and your new balance.
API limits
LimitValue
Keywords per run1 to 10
Google result pages read per run15 at most (keywords × pages)
Runs per API key2 per minute and 200 per day
Requests per IP address30 per minute, before authentication
Run timeTypically 30 to 120 seconds; the request stays open until it finishes (5 minutes at most)

Live Google checks also share a daily capacity across all customers. When it is used up you get CAPACITY until it resets at 00:00 UTC.

Error codes

Failures use HTTP status codes plus the same JSON envelope. Switch on error.code, not on the message text.

Error codes
CodeHTTPMeaningWhat to do
INVALID_INPUT400The body failed validation: a missing field, an unknown country, too many keywords, or keywords × pages above 15. details lists the problems.Don't retry unchanged. Fix the request.
UNAUTHENTICATED401The Authorization header is missing, malformed, or the key is unknown or revoked.Don't retry. Check the key or create a new one.
INSUFFICIENT_CREDITS402Your balance is lower than the credits the run needs. details has balance and required.Don't retry until credits are added.
FORBIDDEN403The request was blocked before it ran.Don't retry unchanged. Contact us if it persists.
RATE_LIMITED429You hit a per-key or per-IP limit. The response carries a Retry-After header and retryAfterSec.Wait the number of seconds given, then retry.
UPSTREAM_ERROR502Google or the proxy network failed even after fresh-proxy retries. The run is refunded.Safe to retry after a short delay, with backoff.
CAPACITY503Shared daily capacity for live Google checks is used up, or the service is busy.Retry later; follow Retry-After when present. Daily capacity resets at 00:00 UTC.
TIMEOUT504The run did not finish in time.Retry with fewer keywords or pages.
INTERNAL500An unexpected error on our side. The run is refunded.Retry once after a short delay.
429 Too Many Requests
{
  "ok": false,
  "error": {
    "code": "RATE_LIMITED",
    "message": "Too many runs. Try again shortly.",
    "retryAfterSec": 38
  }
}

Questions

  • Only check sites you own or have permission to check, and keep to Google's terms for your own use of the results.
  • Rankings are what a logged-out searcher in that country sees at that moment. Google personalizes and changes results, so expect small differences from what one person sees.
  • Keep your key on your server, give each deployment its own key and revoke any key that may have leaked.

Want to try a check first?

The free rank checker shows your live Google position for one keyword, no signup.

SEO API for keywords, SERPs and backlinks | SerpClean