Spider Verification

Identify Automated environments/crawlers: verify whether a given IP belongs to a search engine crawler. Currently connected to the 4759 verification Channel.

/api/spider_verification/

Service Description

The spider verification service determines whether an IP comes from a search-engine crawler: submit an IP and the server queries a spider IP database, returning the verdict and the source type. It can support access-log analysis and referrer statistics, or decisions such as only serving indexable content to genuine crawlers.

It is a read-only query API supporting both IPv4 and IPv6. Queries reach an external IP database, so a single call may take a while, which is normal.

This service requires project signature authentication. Results depend on the coverage of the third-party IP database, so treat them as a reference rather than the sole criterion.

Response Format

Every endpoint returns the same JSON envelope; the payload is always inside data:

{
  "code": 10000,
  "msg": "成功",
  "data": { ... }
}
  • code: business status code. 10000 means success; anything else is an error — see the Error Codes page for the full list.
  • msg: a human-readable message you can show to end users, but never use it for program logic.
  • data: the payload; usually null on error. Each endpoint's Response section lists its data fields.

Judge success by code, not by the HTTP status code. View all error codes

4759 Spider IP Verification

4759 spider/crawler IP library Signature Required

Read-only query Endpoint: submit an IP and the server checks whether it originates from a search engine crawler (such as Baidu/Google, etc.).

GET /api/spider_verification/sv4759/verify Total calls: 0

Verify Whether an IP Is a Crawler

Verify whether a given IP is a search engine crawler and return the recognition conclusion and type information.

Required: a valid IPv4 or IPv6 address

  • GET query Endpoint; this Service requires a project signature.
  • Querying the external service may take a while; this is normal.
Response Common envelope
Field Type Description
ip string Verified IP
is_spider bool Whether it is a search engine spider
spider_type string Spider type; "Not a spider" when it is not one
ptr_domain string Reverse DNS domain (PTR)
matched_domain string Matched official domain suffix; "Not matched" when none
verify_method string Verification Method
result string Result description (e.g. "Query succeeded")
Example response
{
  "ip": "66.249.65.205",
  "is_spider": true,
  "spider_type": "谷歌蜘蛛",
  "ptr_domain": "crawl-66-249-65-205.googlebot.com",
  "matched_domain": "googlebot.com",
  "verify_method": "反向DNS验证",
  "result": "查询成功"
}
XiaoYingAPI · Unified API Aggregation Service