websearch.fast
ConsoleGet a key

Moving from the Serper request format

Change the host and the key. The bodies stay as they are.

A client written for the Serper request format moves here by changing the host and the key. The bodies, field names and response shapes follow that format. The values come from this service.

What to change

Base URL and key

- $PREVIOUS_BASE_URL
+ https://api.websearch.fast
- X-API-KEY: $PREVIOUS_API_KEY
+ X-API-KEY: $WEBSEARCH_API_KEY

In that format the page endpoint is the root of its host, so POST / on api.websearch.fast reads a page. Set the same host as the base URL of both the search client and the page client.

curl "$PREVIOUS_BASE_URL/search" \
  -H "X-API-KEY: $PREVIOUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"q": "apple inc", "gl": "us", "num": 10}'
curl https://api.websearch.fast/search \
  -H "X-API-KEY: $WEBSEARCH_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"q": "apple inc", "gl": "us", "num": 10}'

Paths

Each path is served at the root of api.websearch.fast and under /v1/web/compat/serper/ on every host. A planned path returns 501 api_not_implemented.

EndpointOn api.websearch.fastOn every hostNative counterpartState
searchPOST /search/v1/web/compat/serper/searchsearch, type: webavailable
webpagePOST / and POST /webpage/v1/web/compat/serper/webpagefetchavailable
imagesPOST /images/v1/web/compat/serper/imagessearch, type: imagesplanned
videosPOST /videos/v1/web/compat/serper/videossearch, type: videosplanned
newsPOST /news/v1/web/compat/serper/newssearch, type: newsplanned
placesPOST /places/v1/web/compat/serper/placessearch, type: placesplanned
mapsPOST /maps/v1/web/compat/serper/mapssearch, type: places with nearplanned
reviewsPOST /reviews/v1/web/compat/serper/reviewsplace reviewsplanned
shoppingPOST /shopping/v1/web/compat/serper/shoppingsearch, type: shoppingplanned
lensPOST /lens/v1/web/compat/serper/lenssearch by imageplanned
scholarPOST /scholar/v1/web/compat/serper/scholarsearch, type: scholarplanned
patentsPOST /patents/v1/web/compat/serper/patentssearch, type: patentsplanned
autocompletePOST /autocomplete/v1/web/compat/serper/autocompleteautocompleteavailable

Request rules

What does not carry over

Errors

An error on a compatibility path carries the fields that clients of the format read, and the error object of the native API.

{"message": "Invalid token", "statusCode": 401,
 "error": {"code": "invalid_token", "message": "Invalid token", "type": "authentication_error"},
 "request_id": "20261128120007123456789a1b2c3d4Kx7Qm2Pg"}

The native API has more. It returns page text in the same response as the results (search with content), geocoding, batches and an MCP server. Its reference lists every operation.