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.
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" } });
curl -X POST "https://api.lava.so/v1/forward?u=https%3A%2F%2Fgoogle.serper.dev%2Fsearch" \
-H "Authorization: Bearer $LAVA_SECRET_KEY " \
-H "Content-Type: application/json" \
-d '{"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" } });
curl -X POST "https://api.lava.so/v1/forward?u=https%3A%2F%2Fgoogle.serper.dev%2Fimages" \
-H "Authorization: Bearer $LAVA_SECRET_KEY " \
-H "Content-Type: application/json" \
-d '{"q":"your search query"}'
Search for news articles
POST https://google.serper.dev/news — $0.001 / request
const data = await lava . gateway ( 'https://google.serper.dev/news' , { body: { "q" : "your search query" } });
curl -X POST "https://api.lava.so/v1/forward?u=https%3A%2F%2Fgoogle.serper.dev%2Fnews" \
-H "Authorization: Bearer $LAVA_SECRET_KEY " \
-H "Content-Type: application/json" \
-d '{"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" } });
curl -X POST "https://api.lava.so/v1/forward?u=https%3A%2F%2Fgoogle.serper.dev%2Fplaces" \
-H "Authorization: Bearer $LAVA_SECRET_KEY " \
-H "Content-Type: application/json" \
-d '{"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" } });
curl -X POST "https://api.lava.so/v1/forward?u=https%3A%2F%2Fgoogle.serper.dev%2Fscholar" \
-H "Authorization: Bearer $LAVA_SECRET_KEY " \
-H "Content-Type: application/json" \
-d '{"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" } });
curl -X POST "https://api.lava.so/v1/forward?u=https%3A%2F%2Fgoogle.serper.dev%2Fautocomplete" \
-H "Authorization: Bearer $LAVA_SECRET_KEY " \
-H "Content-Type: application/json" \
-d '{"q":"how to"}'
Next Steps
All Providers Browse all supported AI providers
Forward Proxy Learn how to construct proxy URLs and authenticate requests