v1Recursos/Locations/getListar ubicaciones con sus medios
Listar ubicaciones con sus medios
Lista ubicaciones junto con sus fotos, empezando por las más recientes — mismos filtros que GET /api/v1/locations. Úselo para preguntas como "¿qué ubicaciones no tienen fotos?", en lugar de GET /api/v1/media, que devuelve los medios de una sola ubicación a la vez.
get
media:read/api/v1/locations/mediaParámetros de consulta
clientIdstringopcional
Limita a las ubicaciones de un cliente. Obligatorio cuando su clave está limitada a clientes específicos — aquí no hay un campo de cliente por fila con el que comprobar un resultado combinado y sin límite, así que un clientId omitido se rechaza en lugar de suponerse. Búsquelo con GET /api/v1/clients.
searchstringopcional
Búsqueda de texto libre sobre el nombre, la dirección postal, la ciudad o el teléfono de la ubicación (sin distinguir mayúsculas, coincidencias parciales permitidas).
statusstring (all | active | archived | archival_pending | verification_pending | unapproved | requires_action)opcional
Un único grupo de estado: all, active (no archivada), archived, archival_pending, verification_pending (aprobación de Google pendiente), unapproved o requires_action. El valor por defecto es all.
tagsarray of stringopcional
Etiquetas internas — coincide con una ubicación que tenga alguna de estas.
categoriesarray of stringopcional
Nombres visibles de categoría — coincide con una ubicación cuya categoría general o de Google sea alguna de estas.
verificationarray of string (verified | pending | unverified | unknown)opcional
Estado de verificación de Google: verified, pending, unverified o unknown.
createdAfterstringopcional
Solo ubicaciones creadas en esta fecha o después.
createdBeforestringopcional
Solo ubicaciones creadas en esta fecha o antes.
cursorstringopcional
Cursor de paginación del nextCursor de una respuesta anterior. Déjelo vacío para la primera página.
limitintegeropcional
Ubicaciones a devolver por página, 1–100. El valor por defecto es 100.
Respuesta
dataobjectopcional
locationsarray of objectopcional
Las ubicaciones que coinciden en esta página.
idstringopcional
Identificador único de la ubicación.
namestringopcional
El nombre comercial de la ubicación.
logoUrlstringopcional
URL del logo de la ubicación, o null.
mediaByCategoryobjectopcional
Elementos multimedia agrupados por categoría (p. ej. EXTERIOR, INTERIOR, FOOD_AND_DRINK, LOGO, TEAMS). Cada elemento tiene una url y, opcionalmente, un label, un kind (PHOTO o VIDEO), una source, un indicador starred y un assetKey.
totalnumberopcional
Número total de fotos en todas las categorías de esta ubicación.
nextCursorstringopcional
Cursor de paginación para la siguiente página, o null cuando no hay más resultados.
totalnumberopcional
Número total de ubicaciones que coinciden con los filtros, en todas las páginas.
Errores
400A la solicitud le falta un parámetro obligatorio o es inválida de otra forma.
401La clave de API falta, es inválida, expiró o fue revocada.
403A la clave le falta el permiso requerido, o no está autorizada para este cliente/ubicación.
429Demasiadas solicitudes. Reintente tras el número de segundos indicado en el encabezado Retry-After.
get/api/v1/locations/media
Su clave de API
clientId
search
status
tags
categories
verification
createdAfter
createdBefore
cursor
limit
{
"data": {
"locations": [
{
"id": "loc_456",
"name": "Acme Dental — Downtown",
"logoUrl": null,
"mediaByCategory": {
"EXTERIOR": [
{
"url": "https://cdn.synup.com/media/1.jpg"
}
]
},
"total": 1
}
],
"nextCursor": null,
"total": 1
}
}Guías que usan este recurso
- What Is a Business Listings API?A business listings API manages a business's name, address, hours and more across many publishers at once, with sync status and duplicate detection built in.
- Business Listings API: Complete Developer GuideHow a business listings API works and how to create, update, sync and monitor locations across Google, Apple, Bing and directories with the Synup API.
- Create a Location with the Synup APICreate a business location under a client in one POST, get back a locationId, and know which fields matter and which can wait.
- Google Business Profile API vs a Listings Management APIHow Google's Business Profile API compares with a listings management API on scope, access, sync status, duplicates and reviews, and when to use each.
- How to Build a Reputation Management PlatformArchitecture and API calls for a multi-client reputation management platform on Synup: review ingestion, reply workflows, invites, widgets and reporting.
- How to Add Local Marketing Features to Your SaaSAdd listings management, reviews, Google posts, profile analytics, rank tracking and AI visibility to a SaaS product with the Synup API, tenant by tenant.
- How to Manage Business Listings ProgrammaticallyKeep business listings accurate from your own system with the Synup API. Covers change detection, idempotent updates, hours, photos and sync reporting.
- Update a Location's Opening Hours via APISet a weekly schedule with the Synup API, handle split shifts and 24-hour days, and avoid the read-versus-write time format that breaks naive diffs.
- How to Update Business Information Across Google, Apple, Bing and DirectoriesPush one business-information change to Google, Apple, Bing and the directory network through a single API call, and verify it reached each publisher.
- How Listing Syndication WorksListing syndication takes one business record, translates it into each publisher's format, and pushes it out asynchronously, which is why sync status matters.
- How to Build an AI Agent for Local SEOBuild an AI agent that audits and fixes listings, tracks local rankings, checks AI visibility and drafts review replies with Synup's MCP server or REST tools.
- How to Manage Thousands of Business Locations via APIDesign a sync job for thousands of locations on the Synup API with cursor pagination, tags, rate-limit handling, an id map and rollup health checks.
- Temporarily Close a Business Location via APIMark a location closed for a holiday or a renovation with specialHours, and why you must not use archival for a temporary closure.
- How Google Business Profile Synchronization WorksGoogle Business Profile sync rests on an owner's OAuth consent, matching a location to the right Google listing, then a write-and-verify loop.
- Upload Business Photos via APIAdd photos to a location by category with the Synup API, from a public URL or base64, and avoid uploading the same image twice on a schedule.
- How to Connect and Manage Google Business Profiles via APIConnect a Google Business Profile to a location, match the account's listings, keep the profile in sync and handle reconnects with the Synup API.
- Building Publisher Integrations Directly vs Using SynupWhat it really costs to integrate Google, Apple, Bing and directories yourself, versus one API, and how to decide between them or combine both.
- How to Add Local Marketing Functionality to Vertical SaaSAdd local marketing to a vertical SaaS by mapping existing customers to clients and locations, and shipping only the features your niche needs.
- Local SEO APIs: What Developers Actually NeedA practical checklist of what a local SEO API must cover, from listings and sync status to reviews, rank tracking and AI visibility, mapped to endpoints.