Google Business Photos

Beta
Photo URLs for a place, filterable to owner uploads with tag=by_owner, in the Outscraper photos request and response shape.
GET/v1/business/google/photos

Beta. 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.

Open as Markdown
On this page

Price

Priceimage
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. A Bearer header with the key also works. Create a key.
Body
Query parametersMode: Live

Fields

  • querystring|array<string>required
    The place: name and address, place id, 0x…:0x… feature id, or CID. Send up to 25 places by repeating query (?query=a&query=b), separating them with newlines, or as a JSON array (POST).
    Max25Example0x876bec0d1a2b3c4d:0x112210f4a8c0b315
  • photosLimitintegeroptional
    Most photos to return per place. photos_limit and limit are accepted too.
    Default100Min1Max1000Example20
  • photos_limitintegeroptional
    Same as photosLimit.
  • limitintegeroptional
    Same as photosLimit.
  • tagstringoptional
    Which photos: all, latest, menu, by_owner (owner uploads) or videos.
    DefaultallOne ofalllatestmenuby_ownervideosExampleby_owner
  • languagestringoptional
    Language.
    DefaultenExampleen
  • regionstringoptional
    Two-letter country the place is in.
    DefaultusExampleus
  • auto_upgradebooleanoptional
    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. false stops at the Standard level and returns the failure at $0. Also accepts "true", "false", 1 and 0.
    DefaulttrueExampletrue
  • max_levelstringoptional
    The highest fetch level Auto-upgrade may use. rendered never uses the Protected level.
    DefaultprotectedOne ofstandardrenderedprotectedExamplerendered
  • max_costnumberoptional
    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.
    Min0Example0.002
  • max_ageintegeroptional
    Accept a cached result up to this many seconds old, 0 to 86,400. 0 always 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.

  • idstring
    Request id.
    Example8cbb5b5c-8e15-5c82-9959-45f93cdad009
  • statusstring
    Success.
    ExampleSuccess
  • receipt_idstring|null
    Id of the ledger receipt for this request.
    Example744695e7-dd8a-5016-bb2b-2d314ea9ef81
  • costnumber
    What this request was charged, in USD.
    Example0.0018
  • fetch_levelstring|null
    The fetch level that delivered the data: standard, rendered or protected. Null when the route doesn't fetch pages or nothing was fetched.
    One ofstandardrenderedprotectedExamplestandard
  • upgradedboolean
    True when Auto-upgrade moved the request past the included level (or, for SERP, to the live path) and the charge reflects that.
    Examplefalse
  • upgrade_reasonstring|null
    Why 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_hitboolean
    True when every place came from the shared result cache.
    Examplefalse
  • 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 fields
    • querystring
      The query this place answers.
      Example0x876bec0d1a2b3c4d:0x112210f4a8c0b315
    • namestring|null
      Place name.
      ExampleSummit Running Co.
    • place_idstring|null
      Google place id.
      ExampleChIJexample-summit-0001
    • google_idstring|null
      Google feature id, 0x…:0x….
      Example0x876bec0d1a2b3c4d:0x112210f4a8c0b315
    • full_addressstring|null
      Full address.
      Example120 Main St, Boulder, CO 80302
    • photos_dataarray<object>
      The photos.
      Show 10 child fields
      • photo_idstring
        Photo id.
        ExampleAF1QipSummitStorefront
      • photo_urlstring
        Photo URL sized to 1024×768.
        Examplehttps://lh5.googleusercontent.com/p/AF1QipSummitStorefront=w1024-h768-k-no
      • Photo URL sized to 2048×1536.
        Examplehttps://lh5.googleusercontent.com/p/AF1QipSummitStorefront=w2048-h1536-k-no
      • Photo URL at its original size.
        Examplehttps://lh5.googleusercontent.com/p/AF1QipSummitStorefront=s0
      • Not available. Always null.
      • Not available. Always null.
      • Not available yet. Always null.
      • owner for tag: by_owner; null otherwise.
      • Not available. Always null.
      • photo_tagsarray<string>
        The tag you asked for; empty for all.
        Example[]

Errors

CodeWhen
400query 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": ...}.
401No valid API key.
402Wallet balance below the worst case for this request.
429Too many requests.
Tasks that end in an error are not billed. All status codes

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.