Documentation
SERPII API Documentation
Everything you need to integrate SERPII into your application. Start scraping search engines in minutes.
Quick Start
quickstart.ts
// Install the SDK
npm install serpii
// Make your first request
import { Serpii } from 'serpii';
const serpii = new Serpii('YOUR_API_KEY');
const results = await serpii.search({
q: 'best coffee shops in austin',
location: 'Austin, TX',
num: 10,
});
console.log(results.organic_results);
// AI-enriched data ready to use!Explore the Docs
Base URL
https://api.serpii.com/v1
Authentication
All API requests require authentication using an API key. Include your key in the request header:
Authorization: Bearer YOUR_API_KEYAI-Enriched Response
Every response includes AI-powered enrichment automatically:
{
"query": "best coffee shops in austin",
"intent": "commercial investigation",
"sentiment": "positive",
"clusters": ["coffee", "Austin restaurants", "cafes"],
"entities": [
{"name": "Austin", "type": "Location"},
{"name": "Coffee Shop", "type": "BusinessType"}
],
"organic_results": [...],
"local_pack": [...],
"related_searches": [...]
}