Google Business Photos
Betatag=by_owner, in the Outscraper photos request and response shape./v1/business/google/photosBeta. The parser for this endpoint was written from the upstream format and has not yet been checked against a live response. Field shapes may change; tell us if you see a mismatch.
On this page
Price
- Live
- $0.0009
Per photo returned; not priced by fetch level.
Description
Send the place in query. For several places, repeat query in the URL, separate them with newlines, or POST a JSON body with query as an array.
A query that matches no place returns HTTP 200 with an empty list for that query in data, at $0 (Outscraper's convention). Bad input is HTTP 400.
Billing. Per photo returned. A place with no photos for the tag, or no place found, costs $0. Results are cached for 24 h.
Beta. We read Google's place data with a parser written from public documentation that hasn't been checked against live responses yet. Field names and shapes are fixed; some values may be null more often than they should be until that check is done.
Request
- Endpoint
- GET https://api.dataforgaio.com/v1/business/google/photos
- Authentication
- HTTP Basic auth: any login, with your
dg_API key as the password. ABearerheader with the key also works. Create a key. - Body
- Query parametersMode: Live
Fields
- The place: name and address, place id,
0x…:0x…feature id, or CID. Send up to 25 places by repeatingquery(?query=a&query=b), separating them with newlines, or as a JSON array (POST).Max25Example0x876bec0d1a2b3c4d:0x112210f4a8c0b315 - Most photos to return per place.
photos_limitandlimitare accepted too.Default100Min1Max1000Example20 - Same as
photosLimit. - Same as
photosLimit. - Which photos:
all,latest,menu,by_owner(owner uploads) orvideos.DefaultallOne ofalllatestmenuby_ownervideosExampleby_owner - Language.Default
enExampleen - Two-letter country the place is in.Default
usExampleus - Lets the request move to a higher fetch level when the included level can't get the data, billed at the level that delivered it.
falsestops at the Standard level and returns the failure at $0. Also accepts"true","false",1and0.DefaulttrueExampletrue - The highest fetch level Auto-upgrade may use.
renderednever uses the Protected level.DefaultprotectedOne ofstandardrenderedprotectedExamplerendered - The most this task may cost, in USD. The wallet check reserves this amount instead of the worst-case price, the request never upgrades past it, and the charge never exceeds it. Photos stop at the number this amount pays for.Min
0Example0.002 - Accept a cached result up to this many seconds old, 0 to 86,400.
0always fetches fresh. Default window: 24 h. Leave it out to use it.Min0Max86400Example3600
Response
Shape: Outscraper shape. Expand a field to see its children; every field has a link anchor.
- idstringRequest id.Example
8cbb5b5c-8e15-5c82-9959-45f93cdad009 - statusstring
Success.ExampleSuccess - receipt_idstring|nullId of the ledger receipt for this request.Example
744695e7-dd8a-5016-bb2b-2d314ea9ef81 - costnumberWhat this request was charged, in USD.Example
0.0018 - fetch_levelstring|nullThe fetch level that delivered the data:
standard,renderedorprotected. Null when the route doesn't fetch pages or nothing was fetched.One ofstandardrenderedprotectedExamplestandard - upgradedbooleanTrue when Auto-upgrade moved the request past the included level (or, for SERP, to the live path) and the charge reflects that.Example
false - upgrade_reasonstring|nullWhy the request upgraded, in our level names and HTTP facts, for example
403 at standard; challenge page at rendered. Null when it didn't upgrade. - cache_hitbooleanTrue when every place came from the shared result cache.Example
false - dataarray<array<object>>One list per query, in the order sent, holding the place; an empty list when no place matched that query.
Show 16 child fieldsHide child fields
- querystringThe query this place answers.Example
0x876bec0d1a2b3c4d:0x112210f4a8c0b315 - namestring|nullPlace name.Example
Summit Running Co. - place_idstring|nullGoogle place id.Example
ChIJexample-summit-0001 - google_idstring|nullGoogle feature id,
0x…:0x….Example0x876bec0d1a2b3c4d:0x112210f4a8c0b315 - full_addressstring|nullFull address.Example
120 Main St, Boulder, CO 80302 - photos_dataarray<object>The photos.
Show 10 child fieldsHide child fields
- photo_idstringPhoto id.Example
AF1QipSummitStorefront - photo_urlstringPhoto URL sized to 1024×768.Example
https://lh5.googleusercontent.com/p/AF1QipSummitStorefront=w1024-h768-k-no - photo_url_bigstringPhoto URL sized to 2048×1536.Example
https://lh5.googleusercontent.com/p/AF1QipSummitStorefront=w2048-h1536-k-no - original_photo_urlstringPhoto URL at its original size.Example
https://lh5.googleusercontent.com/p/AF1QipSummitStorefront=s0 - latitudenullNot available. Always null.
- longitudenullNot available. Always null.
- photo_datenullNot available yet. Always null.
- photo_upload_sourcestring|null
ownerfortag: by_owner; null otherwise. - Not available. Always null.
Errors
| Code | When |
|---|---|
| 400 | query missing, more than 25 places, an unknown tag, a photosLimit below 1, or max_cost below the price of one photo. Body: {"status": "Error", "error": true, "errorMessage": ...}. |
| 401 | No valid API key. |
| 402 | Wallet balance below the worst case for this request. |
| 429 | Too many requests. |
Migrating
Replaces Outscraper Google Maps Photos (query, photosLimit, tag). The request body and response envelope match: change the base URL to https://api.dataforgaio.com/v1 and use your dg_ key as the password.