Quickstart
Get an API key and run your first Google search with BestSERP in two minutes: sign in, create a key, send a request in cURL, Python, Node.js, PHP or Go.
Updated View as Markdown
1. Sign in
Sign in with Google. Your account starts with 3,000 free credits, valid 30 days. No card.
2. Create a key
Open Dashboard > API keys, create a key and copy it: it is shown once. Keys start with bsa_.
3. Send a request
Replace YOUR_API_KEY and run one of these:
curl -X POST 'https://api.bestserp.com/search' \
-H 'X-API-KEY: YOUR_API_KEY' \
-H 'Content-Type: application/json' \
-d '{"q":"best running shoes","gl":"us","hl":"en"}'The response holds the organic results in organic, plus credits (what the request cost) and requestId:
200 OK
{
"searchParameters": {
"q": "best running shoes",
"gl": "us",
"hl": "en",
"type": "search",
"num": 10,
"page": 1,
"engine": "google"
},
"organic": [
{
"position": 1,
"title": "The 12 Best Running Shoes of 2026, Tested by Runners",
"link": "https://www.runnersgearlab.com/best-running-shoes",
"snippet": "We ran 1,200 miles in 60 pairs to find the best daily trainers, race shoes and trail runners for every budget.",
"displayedLink": "https://www.runnersgearlab.com › best-running-shoes",
"source": "Runners Gear Lab",
"domain": "runnersgearlab.com",
"favicon": "https://www.google.com/s2/favicons?domain=runnersgearlab.com&sz=64"
},
{
"position": 2,
"title": "Best Running Shoes for Beginners: A Buying Guide",
"link": "https://www.stridemag.com/guides/running-shoes-beginners",
"snippet": "Cushioning, drop, fit and price explained. Our picks for new runners, from $80 trainers to carbon racers.",
"displayedLink": "https://www.stridemag.com › guides",
"source": "Stride Magazine",
"domain": "stridemag.com",
"favicon": "https://www.google.com/s2/favicons?domain=stridemag.com&sz=64"
}
],
"videos": [
{
"position": 1,
"title": "I Tested 10 Running Shoes for 500 Miles",
"link": "https://www.youtube.com/watch?v=runshoe500",
"duration": "18:42",
"channel": "The Run Lab",
"platform": "YouTube",
"date": "2 weeks ago"
}
],
"requestId": "5b0c8a52-3f0e-4d55-9a2a-0f3a8e2d1c11",
"credits": 1,
"cached": false,
"linksPending": false,
"unresolvedLinks": 0,
"durationMs": 1840
}