# SERP API

The search action searches web pages by keyword to obtain titles, links, snippets, ranks, and publication dates for AI applications.

Get web search results by keyword. Snippets do not give the full page text and do not verify facts.

- Request: POST https://api.everyinfra.com/api/v1/social with `{"platform": "web", "action": "<action>", "params": {...}}`
- Canonical page: [https://everyinfra.com/en/web-api](https://everyinfra.com/en/web-api?utm_medium=ai_doc&utm_campaign=page_md)
- Each capability uses the price recorded in the public catalog. The response includes the amount charged. Authentication failures, invalid parameters, failed calls, and empty results are not charged.

## Actions

### search — Search
Run a web search and get ranked results with title, URL, snippet, position and publish date. An image and sub-links come back when present. `country` and `language` set preferences but do not guarantee that every result matches. Pages are not fetched in full, and `published_at` may be missing or wrong.
- Sync delivery · Price: $1.39 per 1,000 requests
- Catalog value: maxLimit=10. Check the action notes before treating it as the final row count. A larger limit is accepted and capped at 10.
- Parameters:
  - `keyword` (required): Specifies the web search query expression. Returns result titles, URLs, and snippets; it does not fetch the full page content of the search results or filter by platform name.
  - `country` (optional): Sets a country or region preference for search results using a code such as us. It affects geographic relevance, not the calling server's location, and does not guarantee that every result is located in that country.
  - `language` (optional): Sets the search interface and result-language preference, such as en or zh-cn. It does not translate the returned page content.
- Returns fields: title, url, text, rank, published_at, image_url, sub_links
- Capability page: [https://everyinfra.com/en/web-api/search](https://everyinfra.com/en/web-api/search?utm_medium=ai_doc&utm_campaign=page_md) (Markdown: https://everyinfra.com/en/web-api/search.md)

## SERP API questions

### What can I retrieve with the SERP API?

Set `platform` to `web`. The current catalog lists search. These action names identify different SERP objects or views; they are not interchangeable search modes.

### Which input starts the SERP `search` request?

Specifies the web search query expression. Returns result titles, URLs, and snippets; it does not fetch the full page content of the search results or filter by platform name. Send it as `keyword` inside `params`.

### Which fields can SERP `search` return?

Its declared schema includes `title`, `text`, `rank`, and `published_at`. A declared field can still be absent from an individual record, and every other action has its own field list.

### Does every SERP action return immediately?

Actions labeled asynchronous return a job ID you poll. Every other action can also run asynchronously: add `"mode": "async"` to the request body to receive a job ID immediately, useful for slow tasks or large limits. The current catalog contains sync delivery.

## Also

- Machine catalog (no key): https://everyinfra.com/openapi.json · GET /api/v1/social/catalog?platform=web
- API guide for AI clients: https://everyinfra.com/llms.txt · agents guide: https://everyinfra.com/agents.md
