Menú

Referencia de la API · Rankings

Fichas

seo_rankings · locations · 1 operación

GET/v1/seo/rankings/locations

Search a city or region to measure

seo_rankings.locations.search

LecturaIdempotenteDesde 2026-11-01

Searches the places of a country (a city, a province or state, a department, a municipality, a county) that a rank tracking project can measure instead of the whole country: q is 2 to 60 characters looked for in the place's label, that is, its name and the region it belongs to (accents and case do not matter), country_code one of the supported countries (400 rank_location_country_unsupported otherwise) and limit up to 20. Returns places, each with its code, its label without the country ("Rosario, Santa Fe Province") and its type; places whose own name is exactly the text come first, then names that start with it, cities first among equals. When several places match, ask which one; never pick the first blindly. Requires view access to Rankings. To measure a place, send its code as location_code of an engine in seo_rankings.projects.create or seo_rankings.projects.update (same engine and country): the place becomes its own combination ({engine}_{country}{code}_{device}), apart from the whole country, which can be measured side by side. Only google has places: with engine bing the list is empty and saving a place there is 400 rank_location_engine_unsupported. It reads a list kept by MB Suite: no cost and nothing is measured.

Alcance
seo_rankings:read
Permiso
Ver el módulo
Tool del MCP
seo_rankings_locations_searchEn la superficie completa; en la compacta, mb_execute_operation con id: "seo_rankings.locations.search".

Costo declarado: hasta 0 lecturas y 0 escrituras por llamada (cuentan en el cupo diario).

Parámetros

country_codestringqueryrequerido

Country to search in (ISO): one of the supported countries, else 400 rank_location_country_unsupported.

qstringqueryrequerido

Text to look for in the place's name, 2 to 60 characters; accents and case do not matter (cordoba finds Córdoba).

engineenumqueryopcional

Search engine. Only google has places: bing measures by country and returns an empty list.

Valores: google, bing · Por defecto: "google"

limitintegerqueryopcional

How many places to return (default and maximum 20).

Por defecto: 20

Respuesta

placesarray<object>

Matching places: names that start with the text first, then the ones with a word that does, then the ones that contain it; cities first inside each group.

Errores

Ejemplo

curl "https://api.mb-suite.com/v1/seo/rankings/locations?country_code=COUNTRY_CODE&q=Q" \
  -H "Authorization: Bearer $MB_API_KEY"

Probar con tu API key de prueba

Con una API key de prueba el pedido va siempre a tu organización de práctica: datos de ejemplo que puedes reiniciar.

curl "https://api.mb-suite.com/v1/seo/rankings/locations?country_code=COUNTRY_CODE&q=Q" \
  -H "Authorization: Bearer $MB_TEST_KEY"