Getting Started
Welcome to SERP API! This guide will help you get up and running quickly with our Search Engine Results Page (SERP) API.
π― What is SERP API?
SERP API is a powerful tool that allows you to retrieve real-time search results data from major search engines. We support multiple search engines and search types, providing you with structured JSON formatted data.
Supported search engines include:
- Google Search (Web, Images, News, Maps, etc.)
- Bing Search
π Quick Start
1. Obtain an API Key
To begin using SERP API, you first need to obtain an API key:
- Register for an account
- Log in to your account dashboard
- Generate a new API key in the API Keys section
- Save your API key for future use
2. Make Your First Request
Construct your API request using the following basic parameters:
| Parameter | Type | Required | Description | Default |
|---|---|---|---|---|
api_key |
string |
Yes | Your API key for authentication | |
engine |
string |
Yes | Search engine type | |
q |
string |
Yes | Search query |
Example request:
GET https://us.serp.sharklogin.com/api/v1/open/search?api_key=YOUR_API_KEY&engine=google_web&q=best+coffee+shops
3. Process Response Data
The API will return structured JSON data that you can easily parse and use.
π οΈ Installation and Configuration
Using Python
import requests
url = "https://us.serp.sharklogin.com/api/v1/open/search"
params = {
"api_key": "YOUR_API_KEY",
"engine": "google_web",
"q": "best coffee shops"
}
response = requests.get(url, params=params)
data = response.json()
print(data)
Using JavaScript
const url = "https://us.serp.sharklogin.com/api/v1/open/search";
const params = new URLSearchParams({
api_key: "YOUR_API_KEY",
engine: "google_web",
q: "best coffee shops"
});
fetch(`${url}?${params}`)
.then(response => response.json())
.then(data => console.log(data));
π What to Learn Next?
- Check out the Google Web Page documentation for detailed parameters of Google web search
- Explore Google Search for more advanced search options
- Learn about Bing Search features
π Need Help?
If you encounter any issues during use, please contact our support team or refer to the complete API documentation.