Get up and running with Serpex API in under 2 minutes
Sign up and get your API key instantly
Send a simple API request
Extract and use the search data
Basic search request using cURL
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": [...]# }
Choose from multiple search engines to get the best results for your use case. Supports web and news search categories.
Automatically routes your request to the best available search engine. Handles blocking, captchas, and retries intelligently.
Google's primary search engine with comprehensive web results
Microsoft's search engine with strong multimedia support
Privacy-focused search engine with instant answers
Privacy-first search engine built on independent index
Yahoo search engine with comprehensive web results
Russian search engine with global reach
Official SDKs to integrate Serpex into your applications with ease.
Extract content from websites and convert to clean markdown for your AI applications.
Learn how to structure your API requests with examples in multiple languages
Choose your preferred language to see API request examples
All Serp API requests follow this basic structure. Replace YOUR_API_KEY with your actual API key.
GET https://api.serpex.dev/api/search?q=your+search+query&engine=auto&category=web&time_range=dayAuthorization: Bearer YOUR_API_KEY# OR using POST method:POST https://api.serpex.dev/api/searchAuthorization: Bearer YOUR_API_KEYContent-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": [...]# }
Understand the structure of API responses and how to handle different response types
Explore different types of API responses and their structures
A successful API response contains the search results and metadata about the request.
{"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"]}
Understand our rate limiting policies and how to manage your API usage effectively
Current rate limiting for API requests
Credit consumption per search engine
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.
Tips for efficient API usage