curl --request POST \
--url https://api.aisa.one/apis/v1/serpapi/search-google-images-light \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"q": "coffee"
}'import requests
url = "https://api.aisa.one/apis/v1/serpapi/search-google-images-light"
payload = { "q": "coffee" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({q: 'coffee'})
};
fetch('https://api.aisa.one/apis/v1/serpapi/search-google-images-light', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.aisa.one/apis/v1/serpapi/search-google-images-light",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'q' => 'coffee'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.aisa.one/apis/v1/serpapi/search-google-images-light"
payload := strings.NewReader("{\n \"q\": \"coffee\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.aisa.one/apis/v1/serpapi/search-google-images-light")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"q\": \"coffee\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/serpapi/search-google-images-light")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"q\": \"coffee\"\n}"
response = http.request(request)
puts response.read_body{
"images_results": [
{
"link": "<string>",
"title": "<string>",
"source": "<string>",
"in_stock": true,
"original": "<string>",
"position": 123,
"raw_link": "<string>",
"thumbnail": "<string>",
"is_product": true,
"source_logo": "<string>",
"original_width": 123,
"original_height": 123,
"serpapi_thumbnail": "<string>",
"related_content_id": "<string>",
"license_details_url": "<string>",
"serpapi_related_content_link": "<string>"
}
],
"search_metadata": {
"id": "<string>",
"error": "<string>",
"status": "<string>",
"created_at": "<string>",
"processed_at": "<string>",
"json_endpoint": "<string>",
"raw_html_file": "<string>",
"total_time_taken": 123,
"google_images_light_url": "<string>"
},
"search_parameters": {
"q": "<string>",
"gl": "<string>",
"hl": "<string>",
"device": "<string>",
"engine": "<string>",
"google_domain": "<string>"
},
"search_information": {
"image_results_state": "<string>"
},
"serpapi_pagination": {
"next": "<string>",
"current": 123,
"previous": "<string>"
}
}Google Images Light Search
curl --request POST \
--url https://api.aisa.one/apis/v1/serpapi/search-google-images-light \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"q": "coffee"
}'import requests
url = "https://api.aisa.one/apis/v1/serpapi/search-google-images-light"
payload = { "q": "coffee" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({q: 'coffee'})
};
fetch('https://api.aisa.one/apis/v1/serpapi/search-google-images-light', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.aisa.one/apis/v1/serpapi/search-google-images-light",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'q' => 'coffee'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.aisa.one/apis/v1/serpapi/search-google-images-light"
payload := strings.NewReader("{\n \"q\": \"coffee\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.aisa.one/apis/v1/serpapi/search-google-images-light")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"q\": \"coffee\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/serpapi/search-google-images-light")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"q\": \"coffee\"\n}"
response = http.request(request)
puts response.read_body{
"images_results": [
{
"link": "<string>",
"title": "<string>",
"source": "<string>",
"in_stock": true,
"original": "<string>",
"position": 123,
"raw_link": "<string>",
"thumbnail": "<string>",
"is_product": true,
"source_logo": "<string>",
"original_width": 123,
"original_height": 123,
"serpapi_thumbnail": "<string>",
"related_content_id": "<string>",
"license_details_url": "<string>",
"serpapi_related_content_link": "<string>"
}
],
"search_metadata": {
"id": "<string>",
"error": "<string>",
"status": "<string>",
"created_at": "<string>",
"processed_at": "<string>",
"json_endpoint": "<string>",
"raw_html_file": "<string>",
"total_time_taken": 123,
"google_images_light_url": "<string>"
},
"search_parameters": {
"q": "<string>",
"gl": "<string>",
"hl": "<string>",
"device": "<string>",
"engine": "<string>",
"google_domain": "<string>"
},
"search_information": {
"image_results_state": "<string>"
},
"serpapi_pagination": {
"next": "<string>",
"current": 123,
"previous": "<string>"
}
}Request contract
- Method and path: POST /apis/v1/serpapi/search-google-images-light
- Availability: enabled
- Request URL template:
https://api.aisa.one/apis/v1/serpapi/search-google-images-light - Runtime facts: 1d8d2010628130bd331b470b564dd1cd5784989899ccf3e384a8de02a69e0558
{
"operationId": "serpapi.search-google-images-light",
"method": "POST",
"path": "/apis/v1/serpapi/search-google-images-light",
"servers": [
{
"url": "https://api.aisa.one"
}
],
"parameters": [],
"security": [
{
"bearerAuth": []
}
],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"type": "object",
"required": [
"q"
],
"properties": {
"q": {
"type": "string",
"examples": [
"coffee",
"landscape photography"
],
"description": "Search query for Google Images. Supports Google search operators like inurl:, site:, intitle:."
},
"gl": {
"type": "string",
"examples": [
"us",
"uk",
"fr"
],
"description": "Two-letter country code to define the country for the search."
},
"hl": {
"type": "string",
"examples": [
"en",
"es",
"fr"
],
"description": "Two-letter language code to define the language for the search interface."
},
"imgar": {
"type": "string",
"examples": [
"s",
"t",
"w",
"xw"
],
"description": "Aspect ratio filter. Options: s (square), t (tall), w (wide), xw (extra wide)."
},
"imgsz": {
"type": "string",
"examples": [
"l",
"m",
"i"
],
"description": "Image size filter. Options: l (large), m (medium), i (icon), etc."
},
"start": {
"type": "integer",
"maximum": 999,
"minimum": 0,
"examples": [
0,
10,
20
],
"description": "Result offset for pagination. Must be between 0 and 999."
},
"device": {
"type": "string",
"examples": [
"desktop",
"tablet",
"mobile"
],
"description": "Device type for the search. Options: desktop (default), tablet, mobile."
},
"engine": {
"type": "string",
"default": "google_images_light",
"description": "Set parameter to google_images_light to use the Google Images Light API engine."
},
"end_date": {
"type": "string",
"examples": [
"20231231"
],
"description": "End date for filtering images by upload date. Format: YYYYMMDD."
},
"location": {
"type": "string",
"examples": [
"Austin, Texas, United States",
"New York,United States"
],
"description": "Geographic location for the search origin. Specify at city level for best results."
},
"start_date": {
"type": "string",
"examples": [
"20231201"
],
"description": "Start date for filtering images by upload date. Format: YYYYMMDD."
},
"image_color": {
"type": "string",
"examples": [
"bw",
"red",
"blue"
],
"description": "Color filter for images. Options: bw (black and white), red, blue, green, yellow, orange, pink, white, gray, black, teal, brown."
},
"period_unit": {
"type": "string",
"examples": [
"d",
"w",
"m"
],
"description": "Time period unit for filtering by upload date. Options: s (second), n (minute), h (hour), d (day), w (week), m (month), y (year). Must be used with period_value."
},
"period_value": {
"type": "integer",
"examples": [
1,
7,
30
],
"description": "Time period value to use with period_unit. Specifies how many units back to search."
},
"google_domain": {
"type": "string",
"examples": [
"google.com",
"google.co.uk"
],
"description": "Google domain to use for the search. Defaults to google.com."
}
}
}
}
}
},
"x-aisa-status": "enabled",
"x-aisa-pricing": {
"cost_contract": "response_units",
"customer_multiplier": 1.0,
"customer_pricing": "provider_cost_multiplier",
"default_request_estimate_usd": 0.0253,
"estimate_source": "profile_seed",
"evidence_source": "response_body",
"maximum_units": 10000000,
"unit": "provider_credit",
"unit_rate_usd": 1e-06
},
"components": {
"securitySchemes": {
"bearerAuth": {
"scheme": "bearer",
"type": "http"
}
}
}
}
Cost and request rules
Usage-based billing; Default request estimate: $0.0253 USD (not a fixed price). Declared unit rate: $0.000001 USD per provider_credit. Account-specific pricing and final settlement may differ. Published reference values are not an account-specific quote or a settled charge. For endpoints supporting X-AISA-Cost-Mode: quote, obtain a free quote for your exact request before execution; reconcile the settled cost with response metadata and Usage Logs. USD amounts use 1,000,000 integer micro-USD per dollar.- Default request reference estimate (USD): 0.0253
- Declared unit rate (USD): 1e-06
- Billing unit: provider_credit
- Cost contract: response_units
- Published reference multiplier: 1.0
- Declared maximum count/units: 10000000
- Settlement evidence source: response_body
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
Search query for Google Images. Supports Google search operators like inurl:, site:, intitle:.
"coffee"
"landscape photography"
Two-letter country code to define the country for the search.
"us"
"uk"
"fr"
Two-letter language code to define the language for the search interface.
"en"
"es"
"fr"
Aspect ratio filter. Options: s (square), t (tall), w (wide), xw (extra wide).
"s"
"t"
"w"
"xw"
Image size filter. Options: l (large), m (medium), i (icon), etc.
"l"
"m"
"i"
Result offset for pagination. Must be between 0 and 999.
0 <= x <= 9990
10
20
Device type for the search. Options: desktop (default), tablet, mobile.
"desktop"
"tablet"
"mobile"
Set parameter to google_images_light to use the Google Images Light API engine.
End date for filtering images by upload date. Format: YYYYMMDD.
"20231231"
Geographic location for the search origin. Specify at city level for best results.
"Austin, Texas, United States"
"New York,United States"
Start date for filtering images by upload date. Format: YYYYMMDD.
"20231201"
Color filter for images. Options: bw (black and white), red, blue, green, yellow, orange, pink, white, gray, black, teal, brown.
"bw"
"red"
"blue"
Time period unit for filtering by upload date. Options: s (second), n (minute), h (hour), d (day), w (week), m (month), y (year). Must be used with period_value.
"d"
"w"
"m"
Time period value to use with period_unit. Specifies how many units back to search.
1
7
30
Google domain to use for the search. Defaults to google.com.
"google.com"
"google.co.uk"