Bot signals — AI crawler & agent

Google-Agent IP addresses

Google-hosted user-directed agents only; excludes common crawlers and generic/customer-controlled fetcher feeds.

risk.is_ai Ranges Reviewed

Check an IP

Is this IP really Google-Agent?

Checks the address against what Google-Agent publishes, the same evidence behind risk.is_ai.

01 — Verification

How IPAPI.GR verifies Google-Agent.

Only from what Google-Agent publishes about itself. No third-party blocklists, no behavioural guesses. Live address counts change with every publication, so check the official file for the current list.

02 — In the response

What a match looks like.

A lookup of a Google-Agent address sets risk.is_ai. The flags come with geolocation and network data in the same response, for Pro API keys.

The response says which kind of bot an address belongs to, not which operator. Pair it with the user agent: a request that claims to be Google-Agent but doesn't match is unverified.

GET /api/lookup/{ip}?key=PRO_KEY
{
  // … location and network fields …
  "risk": {
    "is_ai": true,
    "is_crawler": false,
    "is_scanner": false
  }
}

03 — Configuration

Allow, block or verify it yourself.

nginx + jq
# 1. Build a geo include from the official file (cron, e.g. hourly).
#    Keep the old file if the download fails or comes back empty.
curl -fsS https://developers.google.com/static/crawling/ipranges/user-triggered-agents.json \
  | jq -r '.prefixes[] | (.ipv4Prefix // .ipv6Prefix // empty) | "\(.) 1;"' \
  > /etc/nginx/google-agent-ranges.conf.new && [ -s /etc/nginx/google-agent-ranges.conf.new ] && mv /etc/nginx/google-agent-ranges.conf.new /etc/nginx/google-agent-ranges.conf \
  && nginx -t -q && nginx -s reload

# 2. In the http block: 1 when the client IP is in the published ranges.
geo $google_agent_ip {
    default 0;
    include /etc/nginx/google-agent-ranges.conf;
}
Built from developers.google.com/static/crawling/ipranges/user-triggered-agents.json, a JSON file with a prefixes array.

04 — Questions

About Google-Agent.

Where does Google-Agent publish its IP addresses?

Google-Agent publishes its addresses at https://developers.google.com/static/crawling/ipranges/user-triggered-agents.json. IPAPI.GR reads that publication directly, not a third-party copy.

How often is the Google-Agent list refreshed?

IPAPI.GR re-fetches it every hour. If a refresh fails, the previous entries expire after at most 24 hours instead of being trusted forever.

Which risk flag does Google-Agent set?

A matching address sets risk.is_ai in the lookup response. The risk flags are returned for Pro API keys.

Verify Google-Agent on every request.

Pro: 40,000,000 requests a day with is_ai, is_crawler and is_scanner in every lookup.