Official Python wrapper for API Serpent – fast, reliable, and cost-effective search engine results API.
- SERP API: Fetch real-time search engine results from Google, Bing, Yahoo, DuckDuckGo, and Brave in clean JSON format.
- Rank Tracking API: Monitor search rankings for your keywords programmatically across locations and devices.
- Pixel Position API: Get exact pixel-level placement metrics to calculate true above-the-fold visibility.
- AI Search Monitoring: Track visibility across generative engines including ChatGPT, Claude, Gemini, and Perplexity.
pip install requestsimport requests
api_key = "YOUR_API_SERPENT_KEY"
endpoint = "https://api.apiserpent.com/v1/search"
params = {
"api_key": api_key,
"q": "python serp api",
"engine": "google",
"location": "United States"
}
response = requests.get(endpoint, params=params)
data = response.json()
print(data)This project is licensed under the MIT License - see the LICENSE file for details.