Sand AISand AI MAGI-2ตอนนี้ MAGI-2 อยู่บน SandBase แล้ว: วิดีโอ 1080p พร้อมเสียงในตัวลองใช้เลย

Google Images

เอกสาร API
https://api.sandbase.ai/v1/api/google/images

Run a Google Images search and get structured results: image URLs, dimensions, titles, and source pages.

ราคา
เริ่มต้นที่ $0.00085USD / คำขอ
Method
POST
การตอบกลับ
JSON
พารามิเตอร์
1 จำเป็น · 6 ไม่บังคับ

Playground

อินพุต
Image search query (e.g. golden gate bridge at sunset).
Two-letter country code for result localization (e.g. us, gb, de).
Two-letter interface and results language code (e.g. en, es, de).
1100
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. ช่วง: 1 ถึง 100.
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.
Restrict results to a recent time window: 1h, 1d, 7d, 1y, or all. Default all (no time restriction).
Toggle Google spelling autocorrect (default true). Set false to search the exact query without correction.
เอาต์พุตพร้อมใช้งาน

เอาต์พุตของคุณจะแสดงที่นี่

กรอกอินพุตให้ครบ แล้วคลิก Run

API README

Google Images API

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.

Use cases

  • Collect image candidates for a topic such as a dog breed to review for an editorial article.
  • Find the source pages that host an image so you can check where it was published.
  • Build a mood board or dataset by pulling many image URLs and sizes for one search term.
  • Compare image results across countries by changing gl, hl, or location.

Request

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.

Parameters

NameTypeRequiredDescription
querystringYesImage search query (e.g. golden gate bridge at sunset).
autocorrectbooleanNoToggle Google spelling autocorrect (default true). Set false to search the exact query without correction.
glstringNoTwo-letter country code for result localization (e.g. us, gb, de).
hlstringNoTwo-letter interface and results language code (e.g. en, es, de).
limitintegerNoMaximum number of images to return (1-100, default 20). Requests for 10 results or fewer are billed at a lower rate than larger requests.
locationstringNoFine-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.
timeframestringNoRestrict results to a recent time window: 1h, 1d, 7d, 1y, or all. Default all (no time restriction).

Example response

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
}

Response fields

FieldMeaning
foundtrue 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[].positionRank of the image in the results, starting at 1.
data.items[].urlDirect 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[].thumbnailUrlURL of a small preview version of the image.
data.items[].width / data.items[].heightImage dimensions. Both values look like pixel counts.
data.items[].titleTitle shown for the image, usually the title of the page that hosts it.
data.items[].sourceDomain name of the site that hosts the image.
data.items[].sourceUrlURL of the web page where the image appears.

Notes

  • Use limit to set how many images come back. It accepts 1 to 100 and defaults to 20.
  • Use timeframe with 1h, 1d, 7d, 1y, or all to limit results to recent images.
  • Set autocorrect to false to search the exact query without spelling correction.
  • To search by an image instead of text, try Google Lens. For video results, use Google Videos.

Pricing

Billed at the actual cost of each call, about $0.00085 for the request above. Failed calls are not charged.

สำรวจเพิ่มเติม

APIs ที่เกี่ยวข้อง

APIs ทั้งหมด
APIราคาการตอบกลับ
Google ImagesAPI นี้
Google
เริ่มต้นที่ $0.00085 ต่อครั้งJSON
Google$0.01 ต่อการเรียกJSON
Google$0.015 ต่อการเรียกJSON
Googleเริ่มต้นที่ $0.002 ต่อครั้งJSON
Googleเริ่มต้นที่ $0.0015 ต่อครั้งJSON
Google$0.01 ต่อการเรียกJSON

คู่มือ:Best Google API in 2026: Pricing Compared

คำถาม

คำถามที่พบบ่อย

ฉันจะใช้ Google Images API ได้อย่างไร?

ส่งคำขอ POST ไปที่ https://api.sandbase.ai/v1/api/google/images โดยใส่ SandBase API key ของคุณใน Authorization header (Bearer) และส่งพารามิเตอร์เป็น JSON body คุณยังสามารถลองใช้ได้ใน Playground บนหน้านี้โดยไม่ต้องเขียนโค้ด

Google Images API ราคาเท่าไร?

เริ่มต้นที่ $0.00085 ต่อครั้ง คิดจากยอดคงเหลือ SandBase ของคุณ คุณจะถูกเรียกเก็บเฉพาะคำขอที่คุณส่งเท่านั้น ไม่มีค่าสมาชิกรายเดือน

Google Images API รับพารามิเตอร์อะไรบ้าง?

ที่ต้องระบุ: query (string). ตัวเลือก: gl (string), hl (string), limit (integer), location (string), timeframe (หนึ่งใน 1h, 1d, 7d, 1y, all) และ autocorrect (boolean). ตาราง Parameters และ Playground ในหน้านี้แสดงทุกฟิลด์

Google Images API ส่งคืนอะไร?

การตอบกลับ JSON ที่ส่งกลับในคำขอ HTTP เดียวกัน (แบบซิงโครนัส) README บนหน้านี้มีตัวอย่างการตอบกลับ

ฉันจำเป็นต้องมีบัญชีนักพัฒนาหรือ API key ของ Google ไหม?

ไม่จำเป็น Google Images ทำงานผ่าน SandBase ดังนั้น SandBase API key เดียวครอบคลุม endpoint นี้และทุก API กับโมเดลอื่นในแค็ตตาล็อก คุณไม่ต้องสมัครขอสิทธิ์เข้าถึง Google API แยกต่างหาก