“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:
ParameterTypeRequiredDefaultDescription
keywordstringYes–Term to search on Google (e.g. "curso de marketing digital").
locationstringYes–Country or geographic location (e.g. "Colombia", "Mexico", "Spain").
languagestringYes–Search interface language (e.g. "Spanish", "English").
priorityintegerNo2Search 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

FieldTypeDescription
credits_consumedintegerCredits deducted (1 or 3 depending on the selected priority).
credits_remainingintegerRemaining credit balance.
data.itemsarrayOrdered list of organic results.
items[].positionintegerPosition on the results page (1, 2, 3…).
items[].titlestringPage title shown in the SERP.
items[].urlstringFinal URL of the result.
items[].domainstringExtracted domain name.
items[].descriptionstringDescriptive excerpt (snippet) of the page.

← Back to the Keyword Tools index