data_idstringobrigatório
Required Google Maps photo ID. Follow a photo_meta_link from a Google Maps place response or copy the nested photo data_id.
https://api.sandbase.ai/v1/api/google-maps/photo-metadataContributor, place, coordinates, type and date of one Google Maps photo by its data ID.
Sua saída aparecerá aqui
Preencha as entradas e clique em Executar.
This API returns metadata for one Google Maps photo: who posted it, which place it shows, the place coordinates, the place type and the date. It needs the photo data_id.
latitude and longitude.user.user_id.curl -X POST "https://api.sandbase.ai/v1/api/google-maps/photo-metadata" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"data_id": "CIABIhAAQr6KrxiC_knILBjf2RxL"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
data_id | string | Yes | Required Google Maps photo ID. Follow a photo_meta_link from a Google Maps place response or copy the nested photo data_id. |
gl | string | No | Two-letter country code used to localize results. |
google_domain | string | No | Google domain used for the request. |
hl | string | No | Language code such as en, en-GB, or de. |
timeout | number | No | Optional budget for the entire request in seconds, measured from gateway receipt until the response is ready to send. Includes admission, queueing and settlement. Must be greater than 0 and at most 90. On expiry, the cal |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"date": "26-3-2026",
"location": {
"latitude": 40.72944593032069,
"longitude": -73.98683525580137,
"name": "La Cabra",
"type": "Bakery"
},
"user": {
"image": "https://lh3.googleusercontent.com/a-/ALV-UjVPLf0Gyu4SEyq8ENXI8cKfcPKUZzGV8mdrVW4…",
"link": "https://maps.google.com/maps/contrib/114005753829907698777",
"name": "Bryan Barber",
"user_id": "114005753829907698777"
}
}
| Field | Meaning |
|---|---|
date | Date of the photo as a day-month-year string, for example 26-3-2026. |
location.name | Name of the place the photo is attached to. |
location.type | Category of the place, for example Bakery. |
location.latitude / location.longitude | Coordinates of the place as decimal degrees. |
user.name | Display name of the contributor who posted the photo. |
user.user_id | Numeric ID of the contributor on Google Maps. |
user.link | Link to the contributor's Google Maps profile. |
user.image | URL of the contributor's profile picture. |
data_id by following a photo_meta_link in a Google Maps place response, or copy the nested photo data_id.date value is not zero padded, so 26-3-2026 reads as day, month, year.hl, gl and google_domain to change the language and country used for the request.$0.00015 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.
Comece a construir
Endpoint da API da plataforma com autenticação unificada e rastreamento de uso.
curl -X POST "https://api.sandbase.ai/v1/api/google-maps/photo-metadata" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"hl": "en",
"data_id": "CIABIhAAQr6KrxiC_knILBjf2RxL",
"google_domain": "google.com"
}'Defina sua chave da API SandBase no ambiente do seu servidor. As requisições usam autenticação Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Mantenha sua chave no servidor. Não a exponha em código do navegador.
data_idstringobrigatórioRequired Google Maps photo ID. Follow a photo_meta_link from a Google Maps place response or copy the nested photo data_id.
hlstringLanguage code such as en, en-GB, or de.
Padrão: "en"
glstringTwo-letter country code used to localize results.
google_domainstringGoogle domain used for the request.
Padrão: "google.com"
timeoutnumberOptional budget for the entire request in seconds, measured from gateway receipt until the response is ready to send. Includes admission, queueing and settlement. Must be greater than 0 and at most 90. On expiry, the call is not billed and returns 503 request_deadline_exceeded with retryable=true an
Resposta de exemplo salva para esta API; nenhuma requisição ao vivo é feita ao visualizá-la.
Nenhuma resposta salva foi publicada. Execute a API no Playground para inspecionar a resposta.
Explorar mais
| API | Preço | Resposta |
|---|---|---|
Google Maps Photo MetadataEsta API Google Maps | $0.00015 por chamada | JSON |
Google Maps | $0.01 por chamada | JSON |
Google Maps | $0.00015 por chamada | JSON assíncrono |
Google Maps | $0.01 por chamada | JSON |
Google Maps | $0.01 por chamada | JSON |
Google Maps | $0.01 por chamada | JSON |
Perguntas
Envie uma solicitação POST para https://api.sandbase.ai/v1/api/google-maps/photo-metadata com sua chave de API da SandBase no cabeçalho Authorization (Bearer) e os parâmetros no corpo JSON. Você também pode testar no Playground desta página sem escrever código.
$0.00015 por chamada, cobrado do seu saldo SandBase. Você paga apenas pelas chamadas que fizer; não há assinatura.
Obrigatórios: data_id (string). Opcionais: hl (string), gl (string), google_domain (string) e timeout (number). A tabela de Parâmetros e o Playground nesta página listam todos os campos.
Uma resposta JSON retornada na mesma solicitação HTTP (síncrona). O README desta página inclui um exemplo de resposta.
Não. Google Maps Photo Metadata funciona via SandBase, então uma única chave de API da SandBase cobre este endpoint e todas as outras APIs e modelos do catálogo. Você não precisa solicitar acesso à API do Google Maps separadamente.