v1Ressources/Locations/getLister les établissements avec leurs médias
Lister les établissements avec leurs médias
Liste les établissements avec leurs photos, les plus récents en premier — mêmes filtres que GET /api/v1/locations. Utilisez ceci pour des questions comme « quels établissements n'ont pas de photos ? », plutôt que GET /api/v1/media, qui ne renvoie les médias que d'UN seul établissement à la fois.
get
media:read/api/v1/locations/mediaParamètres de requête
clientIdstringfacultatif
Limite aux établissements d'un seul client. Obligatoire lorsque votre clé est limitée à des clients spécifiques — il n'y a ici aucun champ client par ligne permettant de vérifier un résultat fusionné et non limité, donc un clientId omis est refusé plutôt que deviné. Retrouvez-le avec GET /api/v1/clients.
searchstringfacultatif
Recherche libre sur le nom, l'adresse postale, la ville ou le téléphone de l'établissement (insensible à la casse, correspondances partielles autorisées).
statusstring (all | active | archived | archival_pending | verification_pending | unapproved | requires_action)facultatif
Une seule catégorie de statut : all, active (non archivé), archived, archival_pending, verification_pending (approbation Google en attente), unapproved ou requires_action. La valeur par défaut est all.
tagsarray of stringfacultatif
Étiquettes internes — correspond à un établissement possédant au moins une d'entre elles.
categoriesarray of stringfacultatif
Noms d'affichage de catégories — correspond à un établissement dont la catégorie générale ou Google est l'une d'elles.
verificationarray of string (verified | pending | unverified | unknown)facultatif
État de vérification Google : verified, pending, unverified ou unknown.
createdAfterstringfacultatif
Uniquement les établissements créés à cette date ou après.
createdBeforestringfacultatif
Uniquement les établissements créés à cette date ou avant.
cursorstringfacultatif
Curseur de pagination provenant du nextCursor d'une réponse précédente. Laisser vide pour la première page.
limitintegerfacultatif
Nombre d'établissements à renvoyer par page, 1–100. La valeur par défaut est 100.
Réponse
dataobjectfacultatif
locationsarray of objectfacultatif
Les établissements correspondants pour cette page.
idstringfacultatif
Identifiant unique de l'établissement.
namestringfacultatif
Le nom commercial de l'établissement.
logoUrlstringfacultatif
URL du logo de l'établissement, ou null.
mediaByCategoryobjectfacultatif
Éléments multimédias regroupés par catégorie (par ex. EXTERIOR, INTERIOR, FOOD_AND_DRINK, LOGO, TEAMS). Chaque élément possède une url et, éventuellement, un label, un kind (PHOTO ou VIDEO), une source, un indicateur starred et un assetKey.
totalnumberfacultatif
Nombre total de photos dans toutes les catégories pour cet établissement.
nextCursorstringfacultatif
Curseur de pagination pour la page suivante, ou null lorsqu'il n'y a plus de résultats.
totalnumberfacultatif
Nombre total d'établissements correspondant aux filtres, sur toutes les pages.
Erreurs
400Il manque un paramètre requis à la requête, ou elle est invalide.
401Clé API manquante, invalide, expirée ou révoquée.
403La clé n'a pas la permission requise, ou n'est pas autorisée pour ce client/établissement.
429Trop de requêtes. Réessayez après le nombre de secondes indiqué dans l'en-tête Retry-After.
get/api/v1/locations/media
Votre clé 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
}
}Guides qui utilisent cette ressource
- 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.