Skip to main content

Documentation Index

Fetch the complete documentation index at: https://lava.so/docs/llms.txt

Use this file to discover all available pages before exploring further.

Google Search API that returns structured search results including web pages, news, images, and places. Best for real-time web research, fact-checking, and gathering current information from Google’s index. Unlike Brave or Exa, returns Google-specific result formats including knowledge panels and related searches. Lava slims /news responses by default — strips the imageUrl field on each article (often an inline base64 JPEG ~3.4KB each on historical date-range queries, ~88% of the response payload); pass filter.mode=“full” or filter._lava_keep_images=“true” to retain it. 6 endpoints available through Lava’s AI Gateway. See the Serper API docs for full documentation.
Supports both managed (Lava’s API keys) and unmanaged (bring your own credentials) mode.

Endpoints

Search the web via Google

POST https://google.serper.dev/search — $0.001 / request
const data = await lava.gateway('https://google.serper.dev/search', { body: {"q":"your search query"} });

Search for images

POST https://google.serper.dev/images — $0.001 / request
const data = await lava.gateway('https://google.serper.dev/images', { body: {"q":"your search query"} });

Search for news articles. Lava strips the imageUrl field from each article by default (often inline base64 JPEGs on historical date-range queries) — pass filter.mode=“full” or filter._lava_keep_images=“true” to retain it.

POST https://google.serper.dev/news — $0.001 / request
const data = await lava.gateway('https://google.serper.dev/news', { body: {"q":"your search query"} });

Search for places and businesses

POST https://google.serper.dev/places — $0.001 / request
const data = await lava.gateway('https://google.serper.dev/places', { body: {"q":"restaurants near me"} });

Search Google Scholar

POST https://google.serper.dev/scholar — $0.001 / request
const data = await lava.gateway('https://google.serper.dev/scholar', { body: {"q":"machine learning"} });

Get search autocomplete suggestions

POST https://google.serper.dev/autocomplete — $0.001 / request
const data = await lava.gateway('https://google.serper.dev/autocomplete', { body: {"q":"how to"} });

Next Steps

All Providers

Browse all supported AI providers

Forward Proxy

Learn how to construct proxy URLs and authenticate requests