querystringzorunlu
Image search query (e.g. golden gate bridge at sunset).
https://api.sandbase.ai/v1/api/google/imagesRun a Google Images search and get structured results: image URLs, dimensions, titles, and source pages.
Çıktınız burada görünecek
Girdileri tamamlayın, ardından Çalıştır'a tıklayın.
This API runs a Google Images search and returns a list of matching images. Each result has the full image URL, a thumbnail, the page it came from, a title, and pixel dimensions. It needs one input, a search query.
gl, hl, or location.curl -X POST "https://api.sandbase.ai/v1/api/google/images" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"gl": "us", "hl": "en", "limit": 5, "query": "golden retriever"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
query | string | Yes | Image search query (e.g. golden gate bridge at sunset). |
autocorrect | boolean | No | Toggle Google spelling autocorrect (default true). Set false to search the exact query without correction. |
gl | string | No | Two-letter country code for result localization (e.g. us, gb, de). |
hl | string | No | Two-letter interface and results language code (e.g. en, es, de). |
limit | integer | No | Maximum number of images to return (1-100, default 20). Requests for 10 results or fewer are billed at a lower rate than larger requests. |
location | string | No | Fine-grained location for result localization, given as a canonical Google location string (e.g. 'New York, United States', 'London, United Kingdom'). More specific than the country-level gl. |
timeframe | string | No | Restrict results to a recent time window: 1h, 1d, 7d, 1y, or all. Default all (no time restriction). |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"data": {
"items": [
{
"height": 1707,
"position": 1,
"source": "blog.ollie.com",
"sourceUrl": "https://blog.ollie.com/breed-deets-golden-retriever/",
"thumbnailUrl": "https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcSe1mLcW_M8xRI0J5UcnG6soPw9…",
"title": "Golden Retriever: Pros, Cons & Diet Guide | Ollie",
"url": "https://blog.ollie.com/wp-content/uploads/250506_Livingroom_SHOT-10_0173_FR-scal…",
"width": 2560
}
]
},
"found": true
}
| Field | Meaning |
|---|---|
found | true when the search returned results. A search with no results returns false. |
data.items[] | One image result. Results appear in the order Google ranked them. |
data.items[].position | Rank of the image in the results, starting at 1. |
data.items[].url | Direct URL of the full-size image. Long URLs may be cut off in some cases, so check that a URL loads before you rely on it. |
data.items[].thumbnailUrl | URL of a small preview version of the image. |
data.items[].width / data.items[].height | Image dimensions. Both values look like pixel counts. |
data.items[].title | Title shown for the image, usually the title of the page that hosts it. |
data.items[].source | Domain name of the site that hosts the image. |
data.items[].sourceUrl | URL of the web page where the image appears. |
limit to set how many images come back. It accepts 1 to 100 and defaults to 20.timeframe with 1h, 1d, 7d, 1y, or all to limit results to recent images.autocorrect to false to search the exact query without spelling correction.Billed at the actual cost of each call, about $0.00085 for the request above. Failed calls are not charged.
Geliştirmeye başlayın
Birleşik kimlik doğrulama ve kullanım takibi sunan Platform API uç noktası.
curl -X POST "https://api.sandbase.ai/v1/api/google/images" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"gl": "us",
"hl": "en",
"limit": 5,
"query": "golden retriever"
}'SandBase API anahtarınızı sunucu ortamınıza ayarlayın. İstekler Bearer kimlik doğrulaması kullanır.
export SANDBASE_API_KEY="YOUR_API_KEY"Anahtarınızı sunucuda tutun. Tarayıcı kodunda açığa çıkarmayın.
querystringzorunluImage search query (e.g. golden gate bridge at sunset).
glstringTwo-letter country code for result localization (e.g. us, gb, de).
Varsayılan: "us"
hlstringTwo-letter interface and results language code (e.g. en, es, de).
Varsayılan: "en"
limitintegerMaximum number of images to return (1-100, default 20). Requests for 10 results or fewer are billed at a lower rate than larger requests.
Varsayılan: 20
locationstringFine-grained location for result localization, given as a canonical Google location string (e.g. 'New York, United States', 'London, United Kingdom'). More specific than the country-level gl.
timeframestringRestrict results to a recent time window: 1h, 1d, 7d, 1y, or all. Default all (no time restriction).
Olası değerler: 1h, 1d, 7d, 1y, all
autocorrectbooleanToggle Google spelling autocorrect (default true). Set false to search the exact query without correction.
Bu API için kaydedilmiş örnek yanıt; görüntülerken canlı istek yapılmaz.
Yayınlanmış bir kaydedilmiş yanıt yok. Yanıtını incelemek için API'yi Playground'da çalıştırın.
Daha fazlasını keşfedin
| API | Fiyat | Yanıt |
|---|---|---|
Google ImagesBu API Google | Kullanım başına $0.00085'den itibaren | JSON |
Google | $0.01 çağrı başına | JSON |
Google | $0.015 çağrı başına | JSON |
Google | Kullanım başına $0.002'den itibaren | JSON |
Google | Kullanım başına $0.0015'den itibaren | JSON |
Google | $0.01 çağrı başına | JSON |
Kılavuzlar:Best Google API in 2026: Pricing Compared
Sorular
SandBase API anahtarınızı Authorization başlığında (Bearer) ve parametreleri JSON gövdesi olarak ile https://api.sandbase.ai/v1/api/google/images adresine bir POST isteği gönderin. Ayrıca bu sayfadaki Playground’da kod yazmadan da deneyebilirsiniz.
çağrı başına $0.00085'dan başlayan, SandBase bakiyenizden tahsil edilir. Yalnızca yaptığınız çağrılar için ücretlendirilirsiniz; abonelik yoktur.
Gerekli: query (string). İsteğe bağlı: gl (string), hl (string), limit (integer), location (string), timeframe (1h, 1d, 7d, 1y, all arasından biri) ve autocorrect (boolean). Parametreler tablosu ve bu sayfadaki Playground, tüm alanları listeler.
Aynı HTTP isteğinde döndürülen bir JSON yanıtı (senkron). Bu sayfadaki README'de örnek bir yanıt yer alır.
Hayır. Google Images, SandBase üzerinden çalışır; bu nedenle tek bir SandBase API anahtarı bu uç noktayı ve katalogdaki diğer tüm API'leri ve modelleri kapsar. Google API erişimi için ayrıca başvuru yapmanız gerekmez.