JSON POST request example
POST to https://api.litescrape.com/api/google/images with Content-Type: application/json and your Authorization: Bearer header.
{
"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
qImage 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
hlLanguage 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})?$
glTwo-letter country code used to localize results.
Type string · GET query or POST JSON
Example / input hint: us
- Pattern: ^[a-z]{2}$
safeSet active to filter explicit images, or off to disable SafeSearch.
Type string · GET query or POST JSON
activeofftbsGoogle 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
licenseLimit 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
creative_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.
deviceDevice profile used for the image search.
Type string · GET query or POST JSON · Default desktop
desktoptabletmobileResults and pagination
startGoogle'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
numMaximum 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.
{
"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"
}