Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Short answer: Google’s documented way to retrieve Google Image results is the Custom Search JSON API connected to a Programmable Search Engine. You need an API key, a search-engine ID called cx, and the parameter searchType=image. However, Google says the Custom Search JSON API is closed to new customers and is scheduled to be discontinued on January 1, 2027. As of September 29, 2026, treat it as a legacy integration: existing customers can use it while available, but new production work should include a migration plan.

What the Google Images API actually is

There is no separate, general-purpose endpoint branded “Google Images API.” The supported documented route is the Custom Search JSON API. It queries a Programmable Search Engine (PSE), and an image search is selected by adding searchType=image to the request.

The service returns JSON rather than image files. Each result can identify the source page, image context URL, title, snippet, original image dimensions and byte size, plus a thumbnail URL and thumbnail dimensions. Your application must then decide whether it may display, download or reuse an image; a search result is not a copyright or licensing grant.

Google’s current overview states that the Custom Search JSON API is closed to new customers and gives a January 1, 2027 discontinuation date. Existing customers are documented as receiving 100 free queries per day, followed by $5 per 1,000 additional queries, with a 10,000-query-per-day maximum. Verify the service page before launch because availability, quotas and prices can change.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
#1 Best Overall
Elebase USB to USB C Adapter for iPhone 18 Pro Max,USBC Car Charger Adapter
  • Read Before You Buy — No Video Output: These adapters support charging and USB 2.0 data transfer, but cannot transmit video signals. Except for standard USB webcams (which use USB data only), they are not compatible with HDMI/DisplayPort cables, video-capable USB-C hubs, or docking stations with video output.
  • Convert USB-A Ports to USB-C: Designed to connect USB-C earphones, cables, flash drives, card readers, and other USB-C accessories to standard USB-A ports. Plug-and-play with no drivers or software required.
  • Aluminum Alloy Housing: Built with a sturdy aluminum alloy shell that aids in heat dissipation and protects against daily wear and scratches. Designed to maintain a stable and secure connection.
  • Compact & Travel-Friendly: The ultra-compact design allows the adapter to stay plugged into your device without blocking adjacent ports or adding bulk, reducing wear and tear on your original USB ports.
  • 12-Month Warranty: Backed by a 12-month manufacturer warranty for peace of mind. Designed to meet strict quality control standards for reliable everyday performance.

Prerequisites and account setup

  1. Configure a Programmable Search Engine. Define the sites or web scope that the engine should search and save its configuration.
  2. Copy the search-engine ID. The identifier is called cx. Do not confuse it with your API key.
  3. Obtain an API key. Restrict it according to your deployment model. A server-side key should not be exposed in browser JavaScript; use a backend proxy for public applications.
  4. Confirm eligibility. Because Google has closed the API to new customers, a newly created key or engine may not be enough to obtain service access. Check Google’s current documentation and account notices.

The request endpoint is https://www.googleapis.com/customsearch/v1. At minimum, send key, cx, q and searchType=image.

Your first image-search request

cURL

curl -G "https://www.googleapis.com/customsearch/v1" 
  --data-urlencode "key=YOUR_API_KEY" 
  --data-urlencode "cx=YOUR_SEARCH_ENGINE_ID" 
  --data-urlencode "q=red panda" 
  --data-urlencode "searchType=image"

A successful response is JSON. Check the HTTP status before parsing it, then inspect the items array. An empty or missing array means that no results were returned for that request, not that the API returned image bytes.

Python with requests

import os
import requests

params = {
    "key": os.environ["GOOGLE_API_KEY"],
    "cx": os.environ["GOOGLE_SEARCH_ENGINE_ID"],
    "q": "red panda",
    "searchType": "image",
}

response = requests.get(
    "https://www.googleapis.com/customsearch/v1",
    params=params,
    timeout=30,
)
response.raise_for_status()
data = response.json()

for item in data.get("items", []):
    image = item.get("image", {})
    print({
        "title": item.get("title"),
        "source_url": item.get("link"),
        "context_url": image.get("contextLink"),
        "thumbnail_url": image.get("thumbnailLink"),
        "width": image.get("width"),
        "height": image.get("height"),
        "byte_size": image.get("byteSize"),
    })

Set GOOGLE_API_KEY and GOOGLE_SEARCH_ENGINE_ID in the process environment rather than committing credentials to source control.

Node.js 18+

const params = new URLSearchParams({
  key: process.env.GOOGLE_API_KEY,
  cx: process.env.GOOGLE_SEARCH_ENGINE_ID,
  q: 'red panda',
  searchType: 'image'
});

const response = await fetch(
  `https://www.googleapis.com/customsearch/v1?${params}`
);

const data = await response.json();
if (!response.ok) {
  throw new Error(`${response.status}: ${JSON.stringify(data)}`);
}

for (const item of data.items ?? []) {
  console.log({
    title: item.title,
    sourceUrl: item.link,
    contextUrl: item.image?.contextLink,
    thumbnailUrl: item.image?.thumbnailLink,
    width: item.image?.width,
    height: item.image?.height,
    byteSize: item.image?.byteSize
  });
}

Important query parameters

Parameter Purpose Example
key Authenticates the request with your API key. key=YOUR_API_KEY
cx Selects the Programmable Search Engine configuration. cx=YOUR_SEARCH_ENGINE_ID
q Text to search for. URL-encode spaces and special characters. q=red%20panda
searchType=image Switches from web results to image results. searchType=image
imgSize Applies an image-size filter when supported by your engine. imgSize=large
imgType Applies an image-type filter. imgType=photo
start Requests a later result page using the API’s pagination metadata. start=11

Use the exact filter values accepted by Google’s API reference and your engine configuration. Do not assume a filter changes image licensing; size and type are not usage rights.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #2
Anker USB-C Hub, 5-in-1 USB Hub for Laptops, 4K HDMI Multiport Adapter
  • 5-in-1 USB-C Hub: Experience comprehensive connectivity featuring a Power Delivery input, two USB-A 2.0 ports, a USB-A 3.0 port, and an HDMI port. (Note: The USB-C power delivery input port is only for connecting an external wall charger to power your laptop and cannot power peripheral devices.)
  • 90W Pass-Through Charging: Achieve optimal charging with 90W pass-through power to your laptop, supported by a total input of 100W, with the hub reserving 10W for operational efficiency. (Note: Wall charger not included.)
  • Quick Data Transfers: Accelerate your productivity with rapid data transfers using a high-speed 5Gbps USB 3.0 port and two 480Mbps USB 2.0 ports.
  • 4K HDMI Display: Enhance your visual experience with a hub capable of delivering 4K resolution at 30Hz in both mirror and extend modes. Please note that this hub is compatible with MacBook (macOS 12 and newer), Windows 10 and 11, ChromeOS, and laptops equipped with DP Alt Mode and Power Delivery. Note: This device is not compatible with Linux.
  • What You Get: Anker USB-C Hub (5-in-1, 4K HDMI), welcome guide, 18-month warranty, and our friendly customer service.

Understanding the response

The top-level response includes search metadata and, when matches exist, items. Typical image-result fields include:

  • link: the result’s source URL.
  • title and snippet: text shown for the result.
  • image.contextLink: the page associated with the image.
  • image.width, image.height and image.byteSize: original-image metadata when supplied.
  • image.thumbnailLink, image.thumbnailWidth and image.thumbnailHeight: a thumbnail URL and its dimensions.

Fields can be absent, so parse defensively. Keep the context URL with every record and show attribution or licensing information required by the image owner. Avoid hotlinking or downloading an image solely because a URL appeared in a result.

Pagination, quotas and the 100-result ceiling

Google documents a maximum of 100 results for one query, even when more matches exist. Follow the pagination links or metadata returned in the response and stop when the API provides no next page or when you have reached the 100-result ceiling. Do not build an unbounded loop based on an assumed page count.

Policy Documented value Planning implication
Free allowance 100 queries per day for existing customers Count every request, including retries and pagination.
Additional usage $5 per 1,000 queries Budget by requests, not by distinct user searches.
Daily maximum 10,000 queries per day for existing customers High-volume crawlers need a different provider or architecture.
Per-query results 100 maximum Do not promise exhaustive Google Images coverage.
Lifecycle Scheduled discontinuation: January 1, 2027 Test a replacement before that date.

Cache identical searches where your product and Google’s terms permit it, avoid retry storms, and record request counts. A retry after a timeout may still consume quota, so use bounded retries with backoff rather than immediate loops.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #3
Sale
Anker USB C Hub, 7in1 Multi-Port USB Adapter, 4K@60Hz USBC to HDMI Splitter
  • Sleek 7-in-1 USB-C Hub: Features an HDMI port, two USB-A 3.0 ports, and a USB-C data port, each providing 5Gbps transfer speeds. It also includes a USB-C PD input port for charging up to 100W and dual SD and TF card slots, all in a compact design.
  • Flawless 4K@60Hz Video with HDMI: Delivers exceptional clarity and smoothness with its 4K@60Hz HDMI port, making it ideal for high-definition presentations and entertainment. (Note: Only the HDMI port supports video projection; the USB-C port is for data transfer only.)
  • Double Up on Efficiency: The two USB-A 3.0 ports and a USB-C port support a fast 5Gbps data rate, significantly boosting your transfer speeds and improving productivity.
  • Fast and Reliable 85W Charging: Offers high-capacity, speedy charging for laptops up to 85W, so you spend less time tethered to an outlet and more time being productive.
  • What You Get: Anker USB-C Hub (7-in-1), welcome guide, 18-month warranty, and our friendly customer service.

Security and production design

Protect credentials

Store keys in a secret manager or environment variables, restrict them where Google allows, and place calls behind your server. Redact keys from logs and error reports.

Validate user input

Limit query length, reject control characters, and URL-encode values through your HTTP client. Never concatenate raw user text into a URL.

Handle partial and changing data

Treat missing items, missing image metadata and changed source pages as normal. Persist the retrieval time and source URL if your application needs reproducibility.

Plan for shutdown

Put the Google call behind an internal interface such as searchImages(query, options). Store normalized fields (source URL, context URL, thumbnail URL, dimensions and title) so a replacement provider can populate the same model. Run a dual-provider test while the legacy service still works, and communicate any ranking or licensing differences to users.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #4
Sale
UGREEN USB to USB C Adapter Combo 4-Pack, 10Gbps USB C Converter Space Gray
  • Dual Converters, Infinite Potential:Includes 2× USB C male to USB A female adapters and 2× USB A male to USB C female adapters. Perfect for a wide range of uses—tablets with Bluetooth keyboards, expand USB ports on macbook, and more. Two different converters for all your daily needs
  • Next-Level 10Gbps & 3A Charging: No more slow 480Mbps, this usb to usb c adapter has a transfer speed of up to 10Gbps, allowing you to do more transferring in less time. This usb adapter fits both USB A and USB C charger, supporting up to 3A fast charging
  • Upgraded Exquisite Craftsmanship: With an aluminum alloy housing and metal connector, the usbc to usb adapter is extremely durable and sturdy. Rigorously tested to withstand more than 10,000 times of plugging and unplugging, ensuring long-lasting performance
  • Broad Compatible: The usb c to usb adapter widely supports all USB C/ USB A devices like laptops, tablets, cellphones, car chargers, and phone chargers. Such as compatible with MacBook Pro/Air 2023/2022, Thunderbolt 4/3 Devices,Apple MagSafe Watch 9/8/7/SE/Ultra, iPad Pro 2022/2021, Samsung Galaxy S23/S20/S10, and iPhone 17/16/15 Pro. Plug and play
  • Please Note: To reach 10Gbps speed, keep the cable under 3.3 ft. For USB A Male to USB C adapters, try flipping the USB C connector. USB C Male to USB A adapters support bidirectional 10Gbps transfer within 3.3 ft

Troubleshooting common errors

Symptom Likely cause Fix
HTTP 400 with an invalid-value message Missing q, malformed cx, or an unsupported filter. Log the redacted parameter names, verify the engine ID, and remove optional filters one at a time.
HTTP 403 Key restrictions, disabled access, quota exhaustion, or closed-new-customer status. Check the key’s restrictions and quota, then confirm account eligibility and the current service notice.
HTTP 429 Rate or quota limit reached. Slow requests, apply exponential backoff, cache results, and reduce pagination.
HTTP 5xx or timeout Transient service or network failure. Retry a small number of times with increasing delays and expose a clear temporary-error state.
Web results instead of images searchType=image was omitted or misspelled. Send the exact parameter and inspect the final encoded URL.
No items array No matches, engine scope excludes the content, or the response is an error object. Check the HTTP status and error body, then test a broad query in the PSE console.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Or skip the browser setup

If your real requirement is a clean visual capture of a known web page rather than a ranked list of Google image results, ScreenshotNeo is the first alternative to try. It is a website screenshot API and MCP server: one GET request returns a PNG, JPEG, WebP or PDF. Before capture it accepts cookie or consent banners and removes more than 60 known consent platforms, newsletter popups and chat widgets; each cleanup step can be disabled. Bot checks, CAPTCHAs, blank pages, timeouts, failed loads and cache hits are not billed, and the response identifies the page verdict and billing status in X-Page-Verdict and X-Billed headers. Its MCP server provides take_screenshot, get_page_info and capture_pdf for Claude, Cursor and other MCP clients.

cURL

curl -G "https://api.screenshotneo.com/v1/shot" -d access_key=YOUR_API_KEY --data-urlencode url=https://stripe.com -o shot.webp

Python

import requests
r = requests.get("https://api.screenshotneo.com/v1/shot", params={"access_key": "YOUR_API_KEY", "url": "https://stripe.com"}, timeout=90)
open("shot.webp", "wb").write(r.content)

Node.js

const q = new URLSearchParams({ access_key: 'YOUR_API_KEY', url: 'https://stripe.com' }); const res = await fetch(`https://api.screenshotneo.com/v1/shot?${q}`);

See the complete option list and authentication details in the ScreenshotNeo documentation. Options include full-page lazy-image loading, CSS-selector element capture, dark mode, 12 device presets or custom viewports, retina scale, PDF paper settings and page ranges, HTML/CSS rendering, custom JavaScript and CSS, clicks, waits, ad or tracker blocking, headers, cookies, user agents, authorization, timezone, geolocation, transparent backgrounds, resizing, chosen-TTL caching, signed links, asynchronous webhooks, bulk capture of up to 100 URLs per call, a usage API and an OpenAPI specification. Parameter names used by other screenshot APIs also work, easing migration.

The Free plan includes 1,000 screenshots per month with no card. Paid plans start at $5 for 3,000 screenshots; every feature is on every plan. Create a free ScreenshotNeo account to try it without a card.

Migration checklist before January 1, 2027

  • Confirm whether your Google account is an existing customer and record the applicable quota.
  • Inventory every endpoint, filter, pagination path and stored response field you use.
  • Measure your real request volume, including retries and pages, against the 10,000-per-day ceiling.
  • Abstract the provider behind one interface and add contract tests for empty results, missing metadata and errors.
  • Evaluate replacement services for availability, image metadata, authentication, quota, price, geographic controls and licensing terms.
  • Tell stakeholders that Google’s documented service has a discontinuation date and set a migration deadline before it.

Frequently Asked Questions

Can a browser call the Custom Search JSON API directly?

It can expose your API key, so a backend proxy is the safer design. Keep credentials server-side and return only the fields your client needs.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Does an image result URL grant permission to reuse the image?

No. The API supplies discovery metadata; verify the image owner’s license and comply with attribution, privacy and copyright requirements.

Best Value
Anker USB C Hub, 5-in-1 USBC to HDMI Splitter with 4K Display
  • 5-in-1 Connectivity: Equipped with a 4K HDMI port, a 5 Gbps USB-C data port, two 5 Gbps USB-A ports, and a USB C 100W PD-IN port. Note: The USB C 100W PD-IN port supports only charging and does not support data transfer devices such as headphones or speakers.
  • Powerful Pass-Through Charging: Supports up to 85W pass-through charging so you can power up your laptop while you use the hub. Note: Pass-through charging requires a charger (not included). Note: To achieve full power for iPad, we recommend using a 45W wall charger.
  • Transfer Files in Seconds: Move files to and from your laptop at speeds of up to 5 Gbps via the USB-C and USB-A data ports. Note: The USB C 5Gbps Data port does not support video output.
  • HD Display: Connect to the HDMI port to stream or mirror content to an external monitor in resolutions of up to 4K@30Hz. Note: The USB-C ports do not support video output.
  • What You Get: Anker 332 USB-C Hub (5-in-1), welcome guide, our worry-free 18-month warranty, and friendly customer service.

Can I retrieve more than 100 Google image results for one query?

No. Google documents a 100-result maximum per query, even when additional matches exist.

Is ScreenshotNeo a replacement for Google image search?

No. ScreenshotNeo captures pages or HTML as images and PDFs; it does not provide Google’s ranked image-result index.

The Bottom Line

The Custom Search JSON API remains the documented Google Images integration for eligible existing customers, but its 100-query free allowance, 100-result ceiling, quota limits and January 1, 2027 shutdown make it a short-term path. Build behind an abstraction, protect your key and start migration testing now.

Free tools Windows power users keep installed

One-click scans. No signup required.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.