“API: serp_explorer”
Runs a Google mobile query for a given keyword, location and language, returning structured organic results in real time.
- Cost:
priority: 2(standard mode, recommended): 1 API credit.priority: 0(live / real time): 3 API credits.- Module: Keyword Tools
- REST endpoint:
POST https://api.ranki.co/v1/serp-explorer
What it’s for
serp_explorer lets you audit Google search results pages (SERPs) as a mobile user would see them. Unlike a traditional scraper that returns heavy raw HTML, this tool parses and structures the key information: titles, final URLs, descriptions (snippets) and organic positions.
Note: The request may take a few seconds while it collects up-to-date search results.
API parameters
- Operation:
serp_explorer - Parameters:
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
keyword | string | Yes | – | Term to search on Google (e.g. "curso de marketing digital"). |
location | string | Yes | – | Country or geographic location (e.g. "Colombia", "Mexico", "Spain"). |
language | string | Yes | – | Search interface language (e.g. "Spanish", "English"). |
priority | integer | No | 2 | Search mode: 2 (standard, 1 credit) or 0 (live, real time, 3 credits). |
Search modes
priority: 2(Recommended): Standard search at an efficient cost of 1 credit.priority: 0(Live / Real time): Queries the SERP directly at that exact moment. Uses 3 credits.
Endpoint
POST https://api.ranki.co/v1/serp-explorer
Authorization: Bearer rk_TU_CLAVE_AQUI
Content-Type: application/json
{
"keyword": "curso de marketing digital",
"location": "Colombia",
"language": "Spanish",
"priority": 2
}
Example with curl (Standard mode: 1 credit)
curl -s -X POST
-H "Authorization: Bearer rk_TU_CLAVE_AQUI"
-H "Content-Type: application/json"
-d '{
"keyword": "curso de marketing digital",
"location": "Colombia",
"language": "Spanish",
"priority": 2
}'
"https://api.ranki.co/v1/serp-explorer"
Example with curl (Immediate live mode: 3 credits)
curl -s -X POST
-H "Authorization: Bearer rk_TU_CLAVE_AQUI"
-H "Content-Type: application/json"
-d '{
"keyword": "curso de marketing digital",
"location": "Colombia",
"language": "Spanish",
"priority": 0
}'
"https://api.ranki.co/v1/serp-explorer"
Sample response
{
"credits_consumed": 1,
"credits_remaining": 247,
"data": {
"keyword": "curso de marketing digital",
"location": "Colombia",
"language": "Spanish",
"total_results": 10,
"items": [
{
"position": 1,
"title": "Curso de Marketing Digital Online y Certificado",
"url": "https://ejemplo.com/cursos/marketing-digital",
"domain": "ejemplo.com",
"description": "Aprende estrategias de marketing digital desde cero con casos reales..."
},
{
"position": 2,
"title": "Aprende Marketing Digital: Cursos Prácticos",
"url": "https://otro-sitio.com/academia/marketing",
"domain": "otro-sitio.com",
"description": "Certifícate en SEO, SEM y analítica web con los mejores profesores..."
}
]
}
}
Response fields
| Field | Type | Description |
|---|---|---|
credits_consumed | integer | Credits deducted (1 or 3 depending on the selected priority). |
credits_remaining | integer | Remaining credit balance. |
data.items | array | Ordered list of organic results. |
items[].position | integer | Position on the results page (1, 2, 3…). |
items[].title | string | Page title shown in the SERP. |
items[].url | string | Final URL of the result. |
items[].domain | string | Extracted domain name. |
items[].description | string | Descriptive excerpt (snippet) of the page. |