# SERP API – Google Search Results & Rank Tracker (`rowfeed/google-serp-api`) Actor

Google search results for any query, country, language and device: organic results, ads, featured snippet, People Also Ask, AI overview when Google shows one, and local pack, plus your domain's rank. Licensed data, no blocked runs. $3 per 1,000 searches.

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

## Pricing

from $3.00 / 1,000 google search pages

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

## SERP API – Google Search Results & Rank Tracker

Get Google search results as clean JSON for any query, country, city, language and device: organic results, ads, featured snippet, People Also Ask, related searches, AI overview and local pack.
Add your domain and every row tells you where you rank, so a daily schedule turns this into a rank tracker.
Built for SEO teams, agencies, AI agents and anyone who needs Google results in a pipeline.
The results come from a licensed SERP data provider (DataForSEO), not from our own scraping, so runs do not fail on captchas or blocks.

### What you get

- **One row per search** with `organic_results` (position, title, URL, domain, description), `paid_results`, `featured_snippet`, `people_also_ask`, `related_searches`, `ai_overview` (when Google sends the text with the page), `local_pack` (business name, site and rating) and the list of `serp_features` on the page.
- **Rank tracking**: set `targetDomain` and get `target_position` and `target_url` in every row (subdomains count; `null` = not in the results).
- **Any market**: country, region or city (`New York,New York,United States`), any language, desktop or mobile.
- **Up to 100 organic results** per query, up to 1,000 queries per run.

### Example output row

A real row from a run with the default input (two of the seven organic results shown):

```json
{
  "query": "web scraping api",
  "organic_results": [
    {
      "position": 1,
      "rank_absolute": 2,
      "title": "5 Best Web Scraping APIs in 2026 (Fast, Scalable & Easy ...",
      "url": "https://www.scrapingdog.com/blog/best-web-scraping-apis/",
      "domain": "www.scrapingdog.com",
      "description": "Jan 23, 2026 · The top APIs include Scrapingdog, ScraperAPI, ZenRows, ScrapingAnt, and ScrapingBee. They differ in speed, reliability, and pricing.",
      "breadcrumb": "https://www.scrapingdog.com › Blog",
      "is_featured_snippet": false
    },
    {
      "position": 2,
      "rank_absolute": 3,
      "title": "AI Web Scraper API for Structured Data",
      "url": "https://www.scrapingbee.com/features/ai-web-scraping-api/",
      "domain": "www.scrapingbee.com",
      "description": "Use ScrapingBee's AI web scraper API to extract structured data with natural-language instructions. ...",
      "breadcrumb": "https://www.scrapingbee.com › ai-web-scraping-api",
      "is_featured_snippet": false
    }
  ],
  "organic_count": 7,
  "paid_results": [],
  "featured_snippet": null,
  "people_also_ask": [],
  "related_searches": ["Web scraping api free", "Web scraping api python", "Web scraping api javascript"],
  "ai_overview": null,
  "local_pack": [],
  "serp_features": ["ai_overview", "discussions_and_forums", "organic", "related_searches", "video"],
  "total_results": 115,
  "google_url": "https://www.google.com/search?q=web%20scraping%20api&hl=en&gl=US&ie=UTF-8&uule=w+CAIQIFISCQs2MuSEtepUEUK33kOSuTsc",
  "location": "United States",
  "language": "English",
  "device": "desktop",
  "checked_at": "2026-10-15T07:43:43+00:00"
}
```

With `targetDomain` set, the row also has `target_domain`, `target_position` and `target_url`.

### Input

| Field | What it does |
|---|---|
| `queries` | Search terms, up to 1,000 per run. Google operators work. |
| `location` | Country, region or city as Google names it. Default `United States`. |
| `language` | `English`, `German`, `French` ... Empty = the location's default. |
| `device` | `desktop` or `mobile`. |
| `resultsPerQuery` | Organic results per query: 10 (first page) up to 100. |
| `targetDomain` | Optional domain to track, e.g. `example.com`. |

### Speed

Runs with up to 3 queries are answered live in a few seconds (good for AI agents and quick checks). Bigger runs use the provider's standard queue: results usually arrive within 1–2 minutes, for the same price.

### Pricing

Pay per event, no subscription:

- **$3 per 1,000 searches** ($0.003 per Google results page of up to 10 organic results, with all SERP features). 100 results for one query = 10 pages.
- $0.001 per run start.
- Failed searches are free.

Examples: one query costs $0.004. 1,000 queries (first page) cost $3.00. A daily rank check of 50 keywords costs about $4.50 a month.

**Try it for $0.001:** the pre-filled example is answered from a saved snapshot of a real search (rows carry `from_snapshot: true`) and costs only the run start. Change anything and the search runs live.

**Free Apify plan:** the pre-filled example works on any plan. Live searches need a paid Apify plan (any plan), because each one costs real money at the data provider; on the free plan the run returns a `paid_plan_required` row and charges nothing beyond the start.

You can cap the cost of a run with the maximum charge setting. The Actor only starts as many searches as your budget can pay for.

### Good to know

- A search Google answers with no results still counts as a search: the lookup was made and paid for.

- Google reshuffles its results all the time: the same search a minute later can show a different top 10. Each row is one real snapshot. For rank tracking, check on a schedule and look at the trend (or the median of several checks), not a single position.

- Google sometimes hides a result's link behind a google.com redirect. Following those redirects is not allowed (Google's robots.txt), so such a result comes with `url: null` and the real site in `domain`, taken from the address line Google shows. Rank tracking by domain still works.

- `position` counts organic results only; `rank_absolute` counts every block on the page (ads, maps, videos ...).

- Google loads most AI overviews after the page; then `ai_overview` is `null` and `serp_features` still lists `ai_overview`.

- Phone numbers and addresses from the local pack are left out on purpose.

- Error rows carry `error` and `errorMessage` and are never charged.

### More SEO tools from Rowfeed

- [SEO Audit Tool & Website Crawler](https://apify.com/rowfeed/seo-site-audit) – titles, meta descriptions, H1, noindex, broken links and a 0-100 SEO score for every page.
- [Keyword Research Tool](https://apify.com/rowfeed/keyword-search-volume) – search volume, CPC, keyword difficulty, intent and keyword ideas (Google & Bing).
- [Competitor Keyword Research](https://apify.com/rowfeed/competitor-keywords) – every Google keyword any website ranks for, with position, volume and traffic.
- [Backlinks Checker](https://apify.com/rowfeed/backlink-checker) – referring domains, anchors, dofollow and link strength of any site.
- [Website Traffic & Domain Authority Checker](https://apify.com/rowfeed/website-traffic-checker) – traffic estimate and authority for up to 10,000 domains.
- [Broken Link Checker](https://apify.com/rowfeed/broken-link-checker) – 404s, dead links, broken images and redirect chains on any website.
- [Google AI Overview Tracker](https://apify.com/rowfeed/google-ai-overview-tracker) – AI Overview text and cited sources per keyword, and whether your domain is cited.
- [AI Search Visibility Tracker](https://apify.com/rowfeed/ai-search-visibility-tracker) – is your brand named and cited by ChatGPT, Gemini, Perplexity and Google AI Mode.
- [Local Rank Tracker](https://apify.com/rowfeed/google-maps-rank-tracker) – Google Maps rankings on a geo-grid around a business.
- [Google Trends API](https://apify.com/rowfeed/google-trends-explorer) – interest over time, regions and rising searches.
- [Google Images API](https://apify.com/rowfeed/google-images-api) – image URLs and the pages they are on, for image SEO.
- [WHOIS Lookup & Domain Checker](https://apify.com/rowfeed/domain-rdap-checker) – domain age, expiry, registrar and DNS in bulk.
- [Sitemap URL Extractor](https://apify.com/rowfeed/sitemap-url-extractor) – every URL in a site's sitemaps, with lastmod.
- [PageSpeed Insights API](https://apify.com/rowfeed/pagespeed-insights-api) – Lighthouse scores, Core Web Vitals and real-user speed data for many pages at once.
- [DA PA Checker](https://apify.com/rowfeed/da-pa-checker) – domain authority, page authority and spam score for up to 10,000 domains or URLs.

Not affiliated with Google.

# Actor input Schema

## `queries` (type: `array`):

What to search Google for, up to 1,000 per run. Google operators (site:, "exact", -exclude) work.

## `location` (type: `string`):

Country, region or city as Google names it: "United States", "United Kingdom", "Germany", "London,England,United Kingdom", "New York,New York,United States".

## `language` (type: `string`):

Search language: English, German, French, Spanish ... Leave empty for the location's default.

## `device` (type: `string`):

Results as seen on a desktop or a mobile phone.

## `resultsPerQuery` (type: `integer`):

10 = first page. Up to 100. Each 10 results count as one search page in the price.

## `targetDomain` (type: `string`):

e.g. example.com. Every row then gets target_position and target_url: where this domain ranks (subdomains count). Schedule the Actor daily for a rank tracker.

## Actor input object example

```json
{
  "queries": [
    "best crm for startups",
    "pizza near times square",
    "site:apify.com scraper"
  ],
  "location": "United States",
  "language": "English",
  "device": "desktop",
  "resultsPerQuery": 10
}
```

# Actor output Schema

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

No description

# 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 = {
    "queries": [
        "web scraping api"
    ],
    "location": "United States",
    "language": "English"
};

// Run the Actor and wait for it to finish
const run = await client.actor("rowfeed/google-serp-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 = {
    "queries": ["web scraping api"],
    "location": "United States",
    "language": "English",
}

# Run the Actor and wait for it to finish
run = client.actor("rowfeed/google-serp-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 '{
  "queries": [
    "web scraping api"
  ],
  "location": "United States",
  "language": "English"
}' |
apify call rowfeed/google-serp-api --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,rowfeed/google-serp-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/brvQFqw6Mua7DSV1g/builds/I8Zz1NldJWY3fpfwG/openapi.json
