querystring필수
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.
출력이 여기에 표시됩니다
입력을 완료한 다음 Run을 클릭하세요.
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.
빌드를 시작하세요
통합 인증 및 사용량 추적이 있는 플랫폼 API 엔드포인트입니다.
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 키를 설정하세요. 요청에는 Bearer 인증이 사용됩니다.
export SANDBASE_API_KEY="YOUR_API_KEY"키는 서버에 보관하세요. 브라우저 코드에 노출하지 마세요.
querystring필수Image search query (e.g. golden gate bridge at sunset).
glstringTwo-letter country code for result localization (e.g. us, gb, de).
기본값: "us"
hlstringTwo-letter interface and results language code (e.g. en, es, de).
기본값: "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.
기본값: 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).
가능한 값: 1h, 1d, 7d, 1y, all
autocorrectbooleanToggle Google spelling autocorrect (default true). Set false to search the exact query without correction.
이 API의 저장된 예시 응답입니다. 확인할 때 라이브 요청은 실행되지 않습니다.
저장된 응답이 게시되지 않았습니다. Playground에서 API를 실행해 응답을 확인하세요.
더 살펴보기
| API | 가격 | 응답 |
|---|---|---|
Google Images이 API Google | 호출당 $0.00085부터 | JSON |
Google | $0.01 / 호출 | JSON |
Google | $0.015 / 호출 | JSON |
Google | 호출당 $0.002부터 | JSON |
Google | 호출당 $0.0015부터 | JSON |
Google | $0.01 / 호출 | JSON |
질문
Authorization 헤더(Bearer)에 SandBase API 키를 넣고, 매개변수를 JSON 본문으로 담아 https://api.sandbase.ai/v1/api/google/images에 POST 요청을 보내세요. 이 페이지의 Playground에서도 코드를 작성하지 않고 직접 테스트할 수 있습니다.
호출당 $0.00085부터, SandBase 잔액에서 청구됩니다. 사용한 호출에 대해서만 요금이 부과되며, 구독은 없습니다.
필수: query (string). 선택: gl (string), hl (string), limit (integer), location (string), timeframe(1h, 1d, 7d, 1y, all 중 하나) 및 autocorrect (boolean). 이 페이지의 Parameters 표와 Playground에 모든 필드가 나와 있습니다.
같은 HTTP 요청에서 반환되는 JSON 응답입니다(동기식). 이 페이지의 README에 샘플 응답이 포함되어 있습니다.
아니요. Google Images은 SandBase를 통해 실행되므로, SandBase API 키 하나로 이 엔드포인트와 카탈로그의 다른 모든 API 및 모델을 사용할 수 있습니다. Google API 액세스를 별도로 신청할 필요는 없습니다.