Letter S Streamline Icon: https://streamlinehq.comserpex
Pricing
Docs
Sign InGet Started

Documentation

Quick Start
GoogleBingDuckDuckGoBraveYahooYandexAuto Route
Web Scraping
TypeScriptPython
Rate Limits & Cost
Letter S Streamline Icon: https://streamlinehq.comSerpex

The fast, affordable search API for AI & data projects.

Product

  • Playground
  • Dashboard
  • Google search API
  • Bing Search API
  • Brave Search API
  • DuckDuckGo Search API

Legal

  • Terms
  • Privacy
  • Data Processing Agreement
  • GDPR
  • SLA

Resources

  • Status page
  • Blog
  • Docs
  • Support

© 2025 Serper.dev. All rights reserved.

Building the future of AI data

Quick Start

Get up and running with Serpex API in under 2 minutes

1

Get Your API Key

Sign up and get your API key instantly

2

Make Your First Request

Send a simple API request

3

Parse the Results

Extract and use the search data

Example Request

Basic search request using cURL

bash
curl "https://api.serpex.dev/api/search?q=coffee&engine=auto" \
-H "Authorization: Bearer YOUR_API_KEY"
# Response format:
# {
# "metadata": { "number_of_results": 10, "response_time": 1250, "credits_used": 1 },
# "id": "search_123456789",
# "query": "coffee",
# "engines": ["google"],
# "results": [...],
# "answers": [...],
# "suggestions": [...]
# }

Search Engines

Choose from multiple search engines to get the best results for your use case. Supports web and news search categories.

Auto Route

Automatically routes your request to the best available search engine. Handles blocking, captchas, and retries intelligently.

webnews

Google

Google's primary search engine with comprehensive web results

webnews

Bing

Microsoft's search engine with strong multimedia support

webnews

DuckDuckGo

Privacy-focused search engine with instant answers

webnews

Brave Search

Privacy-first search engine built on independent index

webnews

Yahoo

Yahoo search engine with comprehensive web results

webnews

Yandex

Russian search engine with global reach

webnews

SDKs

Official SDKs to integrate Serpex into your applications with ease.

TypeScript SDK

Official TypeScript SDK for Node.js and browser environments.

npm install serpex

Python SDK

Official Python SDK for easy integration with Python applications.

pip install serpex

Web Scraping API

Extract content from websites and convert to clean markdown for your AI applications.

Key Features

  • • HTML to Markdown conversion
  • • Automatic content cleaning
  • • Up to 10 URLs per request
  • • Error handling and retries

Use Cases

  • • LLM training data preparation
  • • RAG system content ingestion
  • • Content analysis and processing
  • • Knowledge base building
3 credits per URL

API Request Format

Learn how to structure your API requests with examples in multiple languages

Request Examples

Choose your preferred language to see API request examples

Basic Request Structure

All Serp API requests follow this basic structure. Replace YOUR_API_KEY with your actual API key.

http
GET https://api.serpex.dev/api/search?q=your+search+query&engine=auto&category=web&time_range=day
Authorization: Bearer YOUR_API_KEY
# OR using POST method:
POST https://api.serpex.dev/api/search
Authorization: Bearer YOUR_API_KEY
Content-Type: application/json
{
"q": "your search query",
"engine": "auto",
"category": "web",
"time_range": "day"
}
# Response format:
# {
# "metadata": { "number_of_results": 10, "response_time": 1250, "credits_used": 1 },
# "id": "search_123456789",
# "query": "your search query",
# "engines": ["google"],
# "results": [...],
# "answers": [...],
# "suggestions": [...]
# }

API Response Format

Understand the structure of API responses and how to handle different response types

Response Examples

Explore different types of API responses and their structures

Success Response (200 OK)

A successful API response contains the search results and metadata about the request.

json
{
"metadata": {
"number_of_results": 2,
"response_time": 1250,
"timestamp": "2025-01-22T10:30:00.000Z",
"credits_used": 1
},
"id": "search_123456789",
"query": "coffee shops near me",
"engines": ["google"],
"results": [
{
"position": 1,
"title": "Starbucks - Coffee Shop",
"url": "https://www.starbucks.com/store-locator/store/1234",
"snippet": "Premium coffee, perfect lattes, and great atmosphere in the heart of downtown...",
"engine": "google",
"published_date": null
},
{
"position": 2,
"title": "Local Coffee Roasters",
"url": "https://localcoffee.com",
"snippet": "Artisanal coffee beans, locally sourced and expertly roasted daily...",
"engine": "google",
"published_date": null
}
],
"answers": [],
"corrections": [],
"infoboxes": [],
"suggestions": [
"coffee shops near me open now",
"best coffee shops downtown",
"coffee shops with wifi"
]
}

Rate Limits

Understand our rate limiting policies and how to manage your API usage effectively

Rate Limits

Current rate limiting for API requests

300/sec
All organizations have a default rate limit of 300 requests per second.

Credit Costs

Credit consumption per search engine

All Engines1 credit per request

All search engines (Auto Route, Google, Bing, DuckDuckGo, Brave, Yahoo, Yandex) use 1 credit per successful request. We only charge for successful requests—failed requests do not consume credits.

Best Practices

Tips for efficient API usage

  • Tip
    Implement retry logic with exponential backoff for rate limit errors
  • Tip
    Cache responses when possible to reduce API calls
  • Tip
    Monitor usage through the dashboard to avoid hitting limits