Getting Started
Quick Start
Get your first local pack data in 4 steps:
- Sign up at localseodata.com/signup (50 free credits)
- Copy your API key from the dashboard
- Make your first call
- See the response
cURL
curl -X POST https://api.localseodata.com/v1/serp/local-pack \\
-H "Authorization: Bearer sk_live_your_key" \\
-H "Content-Type: application/json" \\
-d '{"keyword": "plumber", "location": "Orchard Park, NY"}'
Python
import requests
response = requests.post(
"https://api.localseodata.com/v1/serp/local-pack",
headers={"Authorization": "Bearer sk_live_your_key"},
json={"keyword": "plumber", "location": "Orchard Park, NY"}
)
data = response.json()
for biz in data["data"]["results"]:
print(f"{biz['position']}. {biz['name']} - {biz['rating']}/5")
Node.js
const response = await fetch(
"https://api.localseodata.com/v1/serp/local-pack",
{
method: "POST",
headers: {
"Authorization": "Bearer sk_live_your_key",
"Content-Type": "application/json",
},
body: JSON.stringify({
keyword: "plumber",
location: "Orchard Park, NY",
}),
}
);
const data = await response.json();
console.log("Credits used:", data.credits_used);
Response
{
"status": "success",
"credits_used": 1,
"data": {
"keyword": "plumber",
"location": "Orchard Park, NY",
"results": [
{
"position": 1,
"name": "Roto-Rooter Plumbing",
"rating": 4.7,
"reviews": 312
}
]
}
}
That's it. You just got local pack data for any keyword in any city.
Next steps: try the /v1/audit/local endpoint for a complete audit, explore the full docs, or connect to Claude via MCP.