# Google API by APISH (`apish/google-api`) Actor

Google data as clean JSON via APISH: Google AI mode answer, Google AI Overview, Google Hotels and 7 more endpoints. Pay per credit; failed calls are free.

- **URL**: https://apify.com/apish/google-api.md
- **Developed by:** [APISH](https://apify.com/apish) (community)
- **Categories:** SEO tools
- **Security:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$4.00 / 1,000 credits

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Google API by APISH

Get public Google data as clean, consistent JSON: google AI mode answer, google AI Overview, google Hotels, google Images, google Jobs, google related searches and questions and more. 10 endpoints, one response shape, numbers parsed, absolute URLs.

### How to use

1. Pick an **Endpoint**. Each option shows what it returns and its price in credits.
2. Enter its **Parameters** as JSON, for example `{"q":"coffee machine"}`. All parameters are listed below.
3. Run. Each call becomes one row in the dataset. Use **Batch** to run the same endpoint for many inputs and **Pages per input** to follow pagination.

### Pricing

Pay per event: you pay per APISH credit the call used. The price of each endpoint is in the table below. Calls that fail on our side (server errors, timeouts, blocks) are free.

### Endpoints

| Endpoint | Returns | Required parameters | Credits |
|---|---|---|---|
| `/google/v1/ai-mode` | Google AI mode answer | `q` | 4 |
| `/google/v1/ai-overview` | Google AI Overview | `q` | 3 |
| `/google/v1/hotels` | Google Hotels | `q` | 3 |
| `/google/v1/images` | Google Images | `q` | 6 |
| `/google/v1/jobs` | Google Jobs | `q` | 2 |
| `/google/v1/keywords` | Google related searches and questions | `q` | 2 |
| `/google/v1/news` | Google News | `q` | 1 |
| `/google/v1/search` | Google web search | `q` | 2 |
| `/google/v1/shopping` | Google Shopping | `q` | 6 |
| `/google/v1/videos` | Google Videos | `q` | 1 |

### Output

Each dataset row has `endpoint`, `params`, `status`, `credits_used` and the endpoint's data. Add `"raw": 1` to the parameters to also get the site's original record, or `"fields": "a,b.c"` to return only the fields you need.

### Endpoint details

#### Google AI mode answer

Endpoint `/google/v1/ai-mode` · 4 credits per successful call.

Parameters:

- `q` (required): Search query (also accepted as query or keyword).
- `country`: Results for this country (Google gl, and the location defaults to it). Two-letter code.
- `location`: Search as if from this place, e.g. `Austin,Texas,United States` (Google uule). Default: the country.
- `language`: Interface language (Google hl), e.g. en, de, pt-BR.
- `lr`: Only results in these languages, e.g. `en` or `en\|de`.
- `cr`: Only results from these countries, e.g. `US` or `US\|GB`.
- `time`: Only results from the past hour, day, week, month or year; `day_3` = past 3 days.
- `date_from`: Only results from this date (YYYY-MM-DD).
- `date_to`: Only results up to this date (YYYY-MM-DD).
- `sort`: `date` sorts newest first (news).
- `tbs`: Raw Google tbs filter, combined with the options above.
- `google_domain`: Google domain, e.g. google.co.uk.
- `safe`: SafeSearch: on or off.
- `autocorrect`: 0 searches the query exactly as typed (no spelling correction).
- `filter`: 0 also shows near-duplicate results.
- `site`: Only these sites, comma-separated (site:).
- `exclude_sites`: Leave these sites out, comma-separated (-site:).
- `filetype`: Only this file type, e.g. pdf.
- `device`: desktop (default) or mobile results.

Example parameters: `{"q":"coffee machine"}`

#### Google AI Overview

Endpoint `/google/v1/ai-overview` · 3 credits per successful call.

The AI Overview box of a normal Google results page, expanded, with its cited sources, text blocks and images. Accepts the same options as /google/v1/search (country, location, language, device, time, ...). Google does not show an overview for every query: then `available` is false and `ai_overview` is null. Costs the same as one search call.

Parameters:

- `q` (required): Search query (also accepted as query or keyword).
- `country`: Results for this country (Google gl, and the location defaults to it). Two-letter code.
- `location`: Search as if from this place, e.g. `Austin,Texas,United States` (Google uule). Default: the country.
- `language`: Interface language (Google hl), e.g. en, de, pt-BR.
- `lr`: Only results in these languages, e.g. `en` or `en\|de`.
- `cr`: Only results from these countries, e.g. `US` or `US\|GB`.
- `time`: Only results from the past hour, day, week, month or year; `day_3` = past 3 days.
- `date_from`: Only results from this date (YYYY-MM-DD).
- `date_to`: Only results up to this date (YYYY-MM-DD).
- `sort`: `date` sorts newest first (news).
- `tbs`: Raw Google tbs filter, combined with the options above.
- `google_domain`: Google domain, e.g. google.co.uk.
- `safe`: SafeSearch: on or off.
- `autocorrect`: 0 searches the query exactly as typed (no spelling correction).
- `filter`: 0 also shows near-duplicate results.
- `site`: Only these sites, comma-separated (site:).
- `exclude_sites`: Leave these sites out, comma-separated (-site:).
- `filetype`: Only this file type, e.g. pdf.
- `device`: desktop (default) or mobile results.

Example parameters: `{"q":"coffee machine"}`

#### Google Hotels

Endpoint `/google/v1/hotels` · 3 credits per successful call.

Google Hotels results (google.com/travel): price from, currency, rating, reviews, hotel class and type, amenities, deal, images and the Google Travel entity id. Prices are in the currency Google Travel picks. Every response includes `credits_used`: the credits this call cost.

Parameters:

- `q` (required)
- `check_in`: YYYY-MM-DD (with check_out).
- `check_out`: YYYY-MM-DD.
- `adults`: 1-9.
- `currency`: e.g. USD, EUR.
- `country`: e.g. us.
- `language`: e.g. en.

Example parameters: `{"q":"hotels in paris"}`

#### Google Images

Endpoint `/google/v1/images` · 6 credits per successful call.

Google Images results with the original image URL, size, thumbnail, dominant colour, source page, site and file size: about 100 per query (Google Images loads more only by infinite scroll, so `next_start` is null; narrow with the filters). Every /google/v1/search option applies. Every response includes `credits_used`: the credits this call cost.

Parameters:

- `q` (required)
- `size` — one of `large`, `medium`, `icon`, `2mp`, `4mp`, `8mp`, `12mp`, `20mp`: large, medium, icon, 2mp, 4mp, 8mp, 12mp, 20mp (larger than).
- `color`: color, grayscale, transparent, or a colour: red, orange, yellow, green, teal, blue, purple, pink, white, gray, black, brown.
- `image_type` — one of `photo`, `clipart`, `line`, `gif`, `face`: photo, clipart, line, gif, face.
- `aspect` — one of `square`, `tall`, `wide`, `panoramic`: square, tall, wide, panoramic.
- `license` — one of `creative_commons`, `commercial`: creative_commons or commercial.
- `image_format` — one of `jpg`, `png`, `gif`, `bmp`, `svg`, `webp`, `ico`, `raw`: jpg, png, gif, bmp, svg, webp, ico, raw.
- `time`: hour, day, week, month, year (or e.g. day_3).
- `country`: Results country (gl), e.g. us, gb, de.
- `language`: Interface language (hl), e.g. en, de.
- `location`: City/region to search from, e.g. Austin,Texas,United States.
- `google_domain`: e.g. google.co.uk.
- `safe`: on or off.
- `limit`: Return at most this many images (default: all on the page).

Example parameters: `{"q":"golden retriever"}`

#### Google Jobs

Endpoint `/google/v1/jobs` · 2 credits per successful call.

Google Jobs listings: title, company, location, source, posted, salary, schedule, perks, highlights (qualifications, benefits, responsibilities), the full description and every Apply option (the first one resolved to its real URL). About 10 listings per query: Google Jobs loads more only by infinite scroll, so `next_page` is null; narrow with the filters and location. Without a city-level `location` ("City,Region,Country") and without a place in `q`, the query is sent as "<q> jobs in <country>" (country defaults to the United States), because Google Jobs answers country-level searches with no

Parameters:

- `q` (required)
- `remote`: 1: remote jobs only.
- `no_degree`: 1: no degree mentioned.
- `date_posted` — one of `day`, `3days`, `week`, `month`: day, 3days, week, month.
- `job_type` — one of `full_time`, `part_time`, `contractor`, `internship`: full_time, part_time, contractor, internship.
- `resolve`: 0: skip resolving the first apply link.
- `country`: Results country (gl), e.g. us, gb, de.
- `language`: Interface language (hl), e.g. en, de.
- `location`: City/region to search from, e.g. Austin,Texas,United States.
- `google_domain`: e.g. google.co.uk.
- `safe`: on or off.

Example parameters: `{"q":"software engineer new york"}`

#### Google related searches and questions

Endpoint `/google/v1/keywords` · 2 credits per successful call.

Parameters:

- `q` (required): Search query (also accepted as query or keyword).
- `country`: Results for this country (Google gl, and the location defaults to it). Two-letter code.
- `location`: Search as if from this place, e.g. `Austin,Texas,United States` (Google uule). Default: the country.
- `language`: Interface language (Google hl), e.g. en, de, pt-BR.
- `lr`: Only results in these languages, e.g. `en` or `en\|de`.
- `cr`: Only results from these countries, e.g. `US` or `US\|GB`.
- `time`: Only results from the past hour, day, week, month or year; `day_3` = past 3 days.
- `date_from`: Only results from this date (YYYY-MM-DD).
- `date_to`: Only results up to this date (YYYY-MM-DD).
- `sort`: `date` sorts newest first (news).
- `tbs`: Raw Google tbs filter, combined with the options above.
- `google_domain`: Google domain, e.g. google.co.uk.
- `safe`: SafeSearch: on or off.
- `autocorrect`: 0 searches the query exactly as typed (no spelling correction).
- `filter`: 0 also shows near-duplicate results.
- `site`: Only these sites, comma-separated (site:).
- `exclude_sites`: Leave these sites out, comma-separated (-site:).
- `filetype`: Only this file type, e.g. pdf.
- `device`: desktop (default) or mobile results.

Example parameters: `{"q":"coffee machine"}`

#### Google News

Endpoint `/google/v1/news` · 1 credit per successful call.

Google News results: title, source, date, snippet, thumbnail and link, with time range, date sort and source filters; every /google/v1/search parameter also applies.

Parameters:

- `q` (required): Search terms.
- `time`: hour, day, week, month, year (or e.g. day_3).
- `date_from`: From date, YYYY-MM-DD.
- `date_to`: To date, YYYY-MM-DD.
- `sort` — one of `date`: date for newest first (default relevance).
- `source`: Only this publisher (as Google names it).
- `country`: Country code (gl), default us.
- `language`: Language (hl), default en.
- `page`: Page number.
- `limit`: Results wanted.

Example parameters: `{"q":"electric vehicles"}`

#### Google web search

Endpoint `/google/v1/search` · 2 credits per successful call.

Google results with every Google option: country / location / language, time and date range, result type (web, news, images, videos, shopping, books), site and file-type filters, SafeSearch, desktop or mobile, and up to 100 results per call (`limit`). All options are free except `limit`, which loads one results page per 10 results. Pass `next_page` from the previous response; `next_page` is null on the last page.

Parameters:

- `q` (required): Search query (also accepted as query or keyword).
- `country`: Results for this country (Google gl, and the location defaults to it). Two-letter code.
- `location`: Search as if from this place, e.g. `Austin,Texas,United States` (Google uule). Default: the country.
- `language`: Interface language (Google hl), e.g. en, de, pt-BR.
- `lr`: Only results in these languages, e.g. `en` or `en\|de`.
- `cr`: Only results from these countries, e.g. `US` or `US\|GB`.
- `time`: Only results from the past hour, day, week, month or year; `day_3` = past 3 days.
- `date_from`: Only results from this date (YYYY-MM-DD).
- `date_to`: Only results up to this date (YYYY-MM-DD).
- `sort`: `date` sorts newest first (news).
- `tbs`: Raw Google tbs filter, combined with the options above.
- `google_domain`: Google domain, e.g. google.co.uk.
- `safe`: SafeSearch: on or off.
- `autocorrect`: 0 searches the query exactly as typed (no spelling correction).
- `filter`: 0 also shows near-duplicate results.
- `site`: Only these sites, comma-separated (site:).
- `exclude_sites`: Leave these sites out, comma-separated (-site:).
- `filetype`: Only this file type, e.g. pdf.
- `device`: desktop (default) or mobile results.
- `type`: web (default), news, images, videos, shopping or books.
- `page`: Page number (10 results each). Pass next_page from the previous response.
- `start`: Result offset instead of page (0, 10, 20, ...).
- `limit`: How many results (1-100). Each 10 results is one more results page.
- `resolve`: 1 (default) turns Google's /goto links into the real URLs; 0 skips that.
- `size` — one of `large`, `medium`, `icon`, `2mp`, `4mp`, `8mp`, `12mp`, `20mp`: large, medium, icon, 2mp, 4mp, 8mp, 12mp, 20mp (larger than).
- `color`: color, grayscale, transparent, or a colour: red, orange, yellow, green, teal, blue, purple, pink, white, gray, black, brown.
- `image_type` — one of `photo`, `clipart`, `line`, `gif`, `face`: photo, clipart, line, gif, face.
- `aspect` — one of `square`, `tall`, `wide`, `panoramic`: square, tall, wide, panoramic.
- `license` — one of `creative_commons`, `commercial`: creative_commons or commercial.
- `image_format` — one of `jpg`, `png`, `gif`, `bmp`, `svg`, `webp`, `ico`, `raw`: jpg, png, gif, bmp, svg, webp, ico, raw.
- `duration` — one of `short`, `medium`, `long`: short (<4 min), medium (4-20 min), long (>20 min).
- `hd`: 1: high quality only.
- `captions`: 1: with closed captions only.

Example parameters: `{"q":"coffee machine"}`

#### Google Shopping

Endpoint `/google/v1/shopping` · 6 credits per successful call.

Google Shopping product cards (title, price, original price and discount, store, delivery, returns, rating, reviews, product id and link) with price, condition, shipping, sale, rating and sort filters (applied to the page's products, as the Shopping tab ignores URL filters), plus the page's facets (price ranges, brands, stores, features, condition). Every /google/v1/search parameter (country, language, location, google_domain, device ...) also applies.

Parameters:

- `q` (required): Search terms.
- `min_price`: Minimum price.
- `max_price`: Maximum price.
- `condition` — one of `new`, `used`, `refurbished`: new, used or refurbished.
- `free_shipping`: 1 for free shipping only.
- `on_sale`: 1 for discounted items only.
- `rating`: Minimum rating, 1-4 stars.
- `sort` — one of `relevance`, `price_asc`, `price_desc`, `reviews`: relevance (default), price_asc, price_desc, reviews.
- `country`: Country code (gl), default us.
- `language`: Language (hl), default en.
- `location`: Location to search from.
- `limit`: Products wanted.

Example parameters: `{"q":"espresso machine"}`

#### Google Videos

Endpoint `/google/v1/videos` · 1 credit per successful call.

Google video results with the real video URL (Google redirect links resolved), duration, platform, channel, date and YouTube video_id. Pass `next_page` back as `page`. Every /google/v1/search option applies. Every response includes `credits_used`: the credits this call cost.

Parameters:

- `q` (required)
- `duration` — one of `short`, `medium`, `long`: short (<4 min), medium (4-20 min), long (>20 min).
- `hd`: 1: high quality only.
- `captions`: 1: with closed captions only.
- `time`: hour, day, week, month, year (or e.g. day_3).
- `date_from`: YYYY-MM-DD
- `date_to`: YYYY-MM-DD
- `sort`: date for newest first.
- `site`: Only this site, e.g. youtube.com.
- `country`: Results country (gl), e.g. us, gb, de.
- `language`: Interface language (hl), e.g. en, de.
- `location`: City/region to search from, e.g. Austin,Texas,United States.
- `google_domain`: e.g. google.co.uk.
- `safe`: on or off.
- `page`
- `limit`: 1-100 (one results page per 10).

Example parameters: `{"q":"espresso machine review"}`

### Support

Questions, bugs or a missing field? Open an issue in this Actor's Issues tab and we will reply there.

Public data only: nothing behind a login. You are responsible for how you use the data you collect.

# Actor input Schema

## `endpoint` (type: `string`):

Which Google endpoint to call. Each option shows what it returns and its price in credits.

## `params` (type: `object`):

Query parameters for the endpoint, as JSON. See the README for every endpoint's parameters. Example: {"q":"coffee machine"}

## `batch` (type: `array`):

Run the same endpoint for many inputs: a list of parameter objects. Each item is one call. Leave empty to use Parameters.

## `maxPages` (type: `integer`):

For paginated endpoints: follow next_cursor up to this many pages per input. 1 = first page only.

## Actor input object example

```json
{
  "endpoint": "/google/v1/ai-mode",
  "params": {
    "q": "coffee machine"
  },
  "batch": [],
  "maxPages": 1
}
```

# Actor output Schema

## `results` (type: `string`):

One row per call: endpoint, params, status, credits_used and the data.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "endpoint": "/google/v1/ai-mode",
    "params": {
        "q": "coffee machine"
    },
    "batch": []
};

// Run the Actor and wait for it to finish
const run = await client.actor("apish/google-api").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "endpoint": "/google/v1/ai-mode",
    "params": { "q": "coffee machine" },
    "batch": [],
}

# Run the Actor and wait for it to finish
run = client.actor("apish/google-api").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "endpoint": "/google/v1/ai-mode",
  "params": {
    "q": "coffee machine"
  },
  "batch": []
}' |
apify call apish/google-api --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,apish/google-api"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/BlodsrBoDtoUeYPA1/builds/UFTiSJdqu4MN4pzJa/openapi.json
