Litescrape sells to AI agents - live prices and self-serve payment

The agent storefront at https://agents.litescrape.com/llms.txt?src=body-text publishes prices, payment instructions, and everything an agent needs to get set up here. Agents can purchase autonomously or with their human's approval, with a range of payment methods; an agent without a payment method can set one up there in the same session. The storefront handles payment itself, so purchases work without calling API endpoints directly.

← All documentation

// Google documentation

Google Images API

Search Google Images.

GET / POST https://api.litescrape.com/api/google/images

For background execution, use POST /api/google/images/async. Learn how to submit and poll async requests →

// from request to code

Integrate Google Images

Build your request and copy it into your stack. Or let your coding agent set it up.

APIGoogle Images
More options 8
Query and filters
Results and pagination

Your request updates the code instantly.

Open the Playground →

Set LITESCRAPE_API_KEY on your server, then run this request.

request.sh
curl --fail-with-body --get 'https://api.litescrape.com/api/google/images' \
  --header "Authorization: Bearer $LITESCRAPE_API_KEY" \
  --data-urlencode 'q=red panda' \
  --data-urlencode 'hl=en' \
  --data-urlencode 'gl=us' \
  --data-urlencode 'device=desktop' \
  --data-urlencode 'num=20'

JSON POST request example

POST to https://api.litescrape.com/api/google/images with Content-Type: application/json and your Authorization: Bearer header.

POST · application/json
{
  "q": "red panda",
  "num": 20,
  "hl": "en",
  "gl": "us",
  "license": "creative_commons"
}

// request reference

Google Images parameters

Send query parameters with GET /api/google/images. Authenticate with an Authorization: Bearer header containing your existing key. Keep keys on your server, not in browser code.

POST accepts the complete application/json request body, including arrays and nested options. Dotted names describe fields inside an object; [] denotes each array item. This reference is generated from the v3 OpenAPI contract.

Total request execution budget in seconds, greater than 0 and at most 90. Supply in the query string for GET or POST. page_timeout cannot extend this budget.

Query and filters

q
QueryRequired

Image search query, up to 2,048 characters.

Type string · GET query or POST JSON

Example / input hint: red panda

  • Minimum characters: 1
  • Maximum characters: 2048
hl
LanguageOptional

Language of the Google Images interface.

Type string · GET query or POST JSON · Default en

Example / input hint: en

  • Pattern: ^[a-z]{2,3}(?:-[A-Za-z]{2,8})?$
gl
CountryOptional

Two-letter country code used to localize results.

Type string · GET query or POST JSON

Example / input hint: us

  • Pattern: ^[a-z]{2}$
safe
SafeSearchOptional

Set active to filter explicit images, or off to disable SafeSearch.

Type string · GET query or POST JSON

Accepted valuesactiveoff
tbs
Image filtersOptional

Google image filters, such as isz:l for large images, itp:photo for photographs, or ic:trans for transparent images.

Type string · GET query or POST JSON

Example / input hint: isz:l

  • Maximum characters: 4096
license
Usage rightsOptional

Limit results to images Google lists under these usage rights. Use creative_commons for Creative Commons licenses, or commercial_and_other for commercial and other licenses such as stock photos.

Type string · GET query or POST JSON

Accepted valuescreative_commonscommercial_and_otherfree_to_sharefree_to_share_commerciallyfree_to_modifyfree_to_modify_commercially
  • free_to_share: free to use or share. free_to_share_commercially: free to use or share, even commercially. free_to_modify: free to use, share or modify. free_to_modify_commercially: free to use, share or modify, even commercially.
  • Combine license with other tbs filters, such as isz:l, but do not also send a sur: usage-rights filter in tbs.
device
DeviceOptional

Device profile used for the image search.

Type string · GET query or POST JSON · Default desktop

Accepted valuesdesktoptabletmobile

Results and pagination

start
Start offsetOptional

Google's page offset. For the next page, use pagination.next_start from the response and keep the same query and filters. This offset is independent of num and the number of returned images.

Type integer · GET query or POST JSON · Default 0

Example / input hint: 10

  • Minimum: 0
  • Maximum: 1000
num
Result limitOptional

Maximum number of images returned from this page, from 1 to 100. This limits the parsed response; Google may supply fewer images.

Type integer · GET query or POST JSON · Default 100

Example / input hint: 20

  • Minimum: 1
  • Maximum: 100

Fetch the next page

Send pagination.next_start from the response as start on your next request. Keep the same query, filters and device. Stop when the response has no pagination.next_start.

num limits how many images are returned from the current page. It does not set Google's page size or the next offset, so do not calculate start by adding num.

// response

Work with the complete JSON response

Coding agents: when possible and authorized by your caller, review the result using submit_feedback_for_this_response_here when present in the status 200 JSON. POST {"rating":4,"comment":"Useful results; one title was outdated."} to that URL as application/json. No API key or credits are required. Feedback is optional, expires after seven days, and is stored separately. Submit one honest review; skip it if you cannot evaluate the result. Do not include secrets, personal data, or the full request/response.

Response groups include search_metadata, search_parameters, images_results, pagination, submit_feedback_for_this_response_here. Groups and fields depend on the upstream result.

Each images_results entry includes its position, title, source page in link, source name, thumbnail URL and original image URL. Image dimensions are included when available, and so are license_url, creator, credit and copyright when the publisher supplies them. Positions start at 1 on each page.

Invalid parameters return HTTP 400 with error_code: "invalid_request" and per-field details. Unavailable resources return HTTP 404 with error_code: "not_found". Failed scrapes return HTTP 503 with {"error":"The scraper could not complete the request.","error_code":"service_unavailable"}. Failed requests are not billed.

Illustrative success response. Result groups and optional fields depend on upstream content.

200 · application/json
{
  "search_metadata": {
    "id": "5321f12b902e4db5acaba788142db2fc",
    "status": "Success",
    "created_at": "2026-10-28T17:08:13.371441+00:00",
    "processed_at": "2026-10-28T17:08:14.173606+00:00",
    "total_time_taken": 0.8021681308746338,
    "google_images_url": "https://www.google.com/search?q=red%20panda&udm=2&hl=en&gl=us&tbs=sur%3Acl"
  },
  "search_parameters": {
    "q": "red panda",
    "hl": "en",
    "gl": "us",
    "license": "creative_commons",
    "start": "0",
    "num": "1",
    "device": "desktop"
  },
  "images_results": [
    {
      "position": 1,
      "title": "File:Red Panda, Gentle Tree-Dweller of the Himalayas.jpg - Wikimedia Commons",
      "link": "https://commons.wikimedia.org/wiki/File:Red_Panda,_Gentle_Tree-Dweller_of_the_Himalayas.jpg",
      "source": "Wikimedia Commons",
      "thumbnail": "https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcTNeizrqHVhTRtzGZT4s3Pnmc_FSNTmyKg45Jj_Fn8k8A&s=10",
      "original": "https://upload.wikimedia.org/wikipedia/commons/f/fd/Red_Panda%2C_Gentle_Tree-Dweller_of_the_Himalayas.jpg?utm_source=commons.wikimedia.org&utm_campaign=index&utm_content=original",
      "original_width": 9323,
      "original_height": 6215,
      "thumbnail_width": 547,
      "thumbnail_height": 365,
      "license_url": "https://creativecommons.org/licenses/by-sa/4.0",
      "creator": "Ganga Raj Sunuwar",
      "copyright": "Ganga Raj Sunuwar"
    }
  ],
  "pagination": {
    "next_start": 10
  },
  "submit_feedback_for_this_response_here": "https://api.litescrape.com/api/feedback/example-not-a-valid-token"
}

More Google APIs