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 -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 "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.
| Parameter | Type | Required | Description |
|---|---|---|---|
url | string | Yes | The 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. |
keywords | string[] | Yes | 1 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. |
country | string | Yes | Two-letter country code to search from, in lowercase. See the supported countries. |
pages | 1 | 2 | 3 | No (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.
usUnited StatesgbUnited KingdomcaCanadaauAustraliainIndiadeGermanyfrFranceesSpainitItalynlNetherlandsbrBrazilmxMexicojpJapansgSingaporeaeUnited Arab EmirateszaSouth AfricaieIrelandnzNew Zealand
Successful response (200)Show example
Shortened: results normally lists every organic result on the pages read (10 per page).
{
"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 }
}| Field | Meaning |
|---|---|
data.target | How your url was interpreted: kind (domain or url) and the normalized value. |
data.keywords[].status | ok: every requested page was read. partial: some were. not_checked: none were (see incompleteReason). |
data.keywords[].found / best / matches | Whether your target appears in the pages read, its best (lowest) result, and every matching result. |
data.keywords[].results | Every 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 / pagesRequested | Pages actually read versus pages you asked for. You are charged for pages read. |
data.proxy | The country, exit IP and attempt log of the residential proxy session that produced the results. |
data.summary | Totals: checked, found, notFound, notChecked and bestRank (null when nothing matched). |
credits | charged (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
| Endpoint | Body | Credits |
|---|---|---|
/api/v1/keyword-suggestionsKeyword suggestions | seed, expand? | 1 |
/api/v1/keyword-suggestions-fastKeyword suggestions (fast) | seed | 1 |
/api/v1/keyword-difficultyKeyword difficulty | keyword, country? | 2 |
/api/v1/bulk-keyword-difficultyBulk keyword difficulty | keywords (max 100), country? | 2 + 1 per 25 keywords |
/api/v1/bulk-keyword-researchBulk keyword research | keywords (max 100), country? | 3 + 1 per 25 keywords |
/api/v1/keyword-ideasKeyword ideas | keywords (max 10), country?, limit? (max 200) | 3 + 1 per 50 results |
/api/v1/related-keywordsRelated keywords | keyword, country?, depth? (1-3), limit? (max 200) | 3 + 1 per 50 results + 1 per extra depth |
/api/v1/google-ads-keywordGoogle Ads keyword data | keywords (max 100), country? | 3 + 1 per 25 keywords |
/api/v1/ai-keyword-researchAI 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-keywordYouTube keyword research | keyword, region? | 2 |
/api/v1/trending-topicsTrending topics | geo? (e.g. US) | 1 |
/api/v1/news-discoverNews discovery | query, country?, limit? (max 50) | 1 |
SERP and competitors
| Endpoint | Body | Credits |
|---|---|---|
/api/v1/serp-analyzerSERP analyzer | keyword, country?, device?, depth? (10, 20, 50 or 100) | 3 + 1 per 50 results |
/api/v1/rank-checkerRank checker | keyword, domain?, country?, device?, depth?, city? | 3 |
/api/v1/competitor-analysisCompetitor analysis | domain, country?, limit? (max 100) | 4 + 1 per 50 competitors |
/api/v1/competitor-keywordsCompetitor keywords | domain, country?, limit? (max 500) | 4 + 1 per 100 keywords |
Authority and backlinks
| Endpoint | Body | Credits |
|---|---|---|
/api/v1/domain-authorityDomain 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-authorityBulk domain authority | domains (max 100) | 2 + 1 per 20 domains |
/api/v1/backlinks-summaryBacklink summary | domain | 3 |
/api/v1/backlinksBacklinks | domain, limit? (max 500), mode? | 3 + 1 per 100 rows |
/api/v1/lost-backlinksLost backlinks | domain, limit? (max 500), mode? | 3 + 1 per 100 rows |
/api/v1/bulk-referring-domainsBulk referring domains | domains (max 100) | 2 + 1 per 20 domains |
Traffic
| Endpoint | Body | Credits |
|---|---|---|
/api/v1/website-trafficWebsite traffic | domain, country? Estimated from search rankings. | 3 |
/api/v1/bulk-website-trafficBulk website traffic | domains (max 100), country? | 3 + 1 per 20 domains |
/api/v1/website-traffic-by-countryWebsite traffic by country | domain, countries? | 2 + 1 per country |
/api/v1/website-traffic-historyWebsite traffic history | domain, country? | 3 |
Content analysis
| Endpoint | Body | Credits |
|---|---|---|
/api/v1/readabilityReadability score | mode (url or text), url or text | 1 |
/api/v1/seo-content-analysisSEO content analysis | text, keyword?, secondary?, title?, metaDescription? | 1 |
/api/v1/ai-content-optimizationAI content optimization | mode (url or content), url or content, keyword, audience? | 4 |
/api/v1/helpful-contentHelpful content analysis | mode (url or content), url or content | 4 |
/api/v1/relevance-scoreRelevance score | mode (url or content), url or content, keyword AI-judged semantic relevance, not a BERT model. | 3 |
/api/v1/plagiarismPlagiarism check | mode (url or content), url or content Exact-phrase Google matches on up to 6 sampled sentences. | 8 |
/api/v1/keyword-densityKeyword density | mode (url or text), url or text | 3 |
Content
| Endpoint | Body | Credits |
|---|---|---|
/api/v1/content-generatorContent generator | topic, keywords?, type?, tone?, length?, language? | 3 short, 5 medium, 8 long |
/api/v1/text-rewritingText rewriting | text (max 10,000 characters), mode? | 2 + 1 per 3,000 characters |
Page elements
| Endpoint | Body | Credits |
|---|---|---|
/api/v1/headingsHeadings | mode (url or html), url or html | 1 |
/api/v1/title-tagTitle tags | urls (max 50) | 1 per URL |
/api/v1/meta-descriptionMeta descriptions | urls (max 25) | 1 per URL |
/api/v1/word-countWord count | urls (max 50) | 1 per URL |
Technical SEO
| Endpoint | Body | Credits |
|---|---|---|
/api/v1/technical-auditTechnical SEO audit | url, keyword? | 3 |
/api/v1/canonicalCanonical check | mode (list or page), urls or url | 1 per URL |
/api/v1/internal-linksInternal links | url | 2 |
/api/v1/robots-txtRobots.txt test | urls, userAgent, robotsText? | 1 |
/api/v1/domain-ageDomain age | domains (one per line) | 1 per domain |
/api/v1/pwaPWA check | url | 2 |
/api/v1/page-speedPage 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.
| Limit | Value |
|---|---|
| Keywords per run | 1 to 10 |
| Google result pages read per run | 15 at most (keywords × pages) |
| Runs per API key | 2 per minute and 200 per day |
| Requests per IP address | 30 per minute, before authentication |
| Run time | Typically 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.
| Code | HTTP | Meaning | What to do |
|---|---|---|---|
INVALID_INPUT | 400 | The 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. |
UNAUTHENTICATED | 401 | The Authorization header is missing, malformed, or the key is unknown or revoked. | Don't retry. Check the key or create a new one. |
INSUFFICIENT_CREDITS | 402 | Your balance is lower than the credits the run needs. details has balance and required. | Don't retry until credits are added. |
FORBIDDEN | 403 | The request was blocked before it ran. | Don't retry unchanged. Contact us if it persists. |
RATE_LIMITED | 429 | You 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_ERROR | 502 | Google or the proxy network failed even after fresh-proxy retries. The run is refunded. | Safe to retry after a short delay, with backoff. |
CAPACITY | 503 | Shared 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. |
TIMEOUT | 504 | The run did not finish in time. | Retry with fewer keywords or pages. |
INTERNAL | 500 | An unexpected error on our side. The run is refunded. | Retry once after a short delay. |
{
"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.