Quick start
Create a key in the app, start a search, then download the file. These three calls are all most people need.
export GL_KEY="ms_live_your_key_here"
# 1. Start a search
curl -X POST https://app.gradedleads.com/api/jobs \
-H "X-API-Key: $GL_KEY" \
-H "Content-Type: application/json" \
-d '{"keywords": ["Roofing contractor, Denver, CO"]}'
# 2. Check on it (use the id from step 1)
curl https://app.gradedleads.com/api/jobs/JOB_ID/progress -H "X-API-Key: $GL_KEY"
# 3. Download the results
curl https://app.gradedleads.com/api/results/JOB_ID/csv -H "X-API-Key: $GL_KEY" -o leads.csv
Every URL starts with https://app.gradedleads.com/api. Requests and responses are JSON unless you ask for a file.
Use it from Claude, ChatGPT, Grok or Cursor
GradedLeads also runs an MCP server. Connect it once and ask for leads in plain words, like "find roofers in Denver with bad websites and show me the ones with emails." Claude or Cursor then runs the search, waits for it, and reads you the results.
The server lives at https://app.gradedleads.com/mcp. In Claude, ChatGPT and Grok you sign in to GradedLeads and
click Allow. In Claude Code, Cursor and Claude Desktop you can use your API key instead.
Claude on the web, desktop or phone
- Open Claude, then Settings, then Connectors.
- Choose Add custom connector. Name it GradedLeads and paste
https://app.gradedleads.com/mcp. - Choose Connect. Sign in to GradedLeads and click Allow.
The connector then works in every Claude app on your account.
ChatGPT
- Open ChatGPT, then Plugins, and choose Add custom MCP server.
- Name it GradedLeads, paste
https://app.gradedleads.com/mcpand pick OAuth for sign-in. - Choose Create. Sign in to GradedLeads and click Allow.
Some accounts still use the older menu. There, turn on Developer mode under Settings, then Apps, then Advanced. Then create a connector with the same URL. Custom servers need a paid ChatGPT plan, and on work plans an admin may have to allow them.
Grok
- Open grok.com/connectors and choose New Connector, then Custom.
- Paste
https://app.gradedleads.com/mcp. - Sign in to GradedLeads and click Allow.
Claude Code
claude mcp add --transport http gradedleads https://app.gradedleads.com/mcp \
--header "X-API-Key: ms_live_your_key_here" Cursor
Add this to ~/.cursor/mcp.json.
{
"mcpServers": {
"gradedleads": {
"url": "https://app.gradedleads.com/mcp",
"headers": { "X-API-Key": "ms_live_your_key_here" }
}
}
} Claude Desktop
Add this to claude_desktop_config.json, then restart the app. It needs Node.js installed.
{
"mcpServers": {
"gradedleads": {
"command": "npx",
"args": [
"-y", "mcp-remote", "https://app.gradedleads.com/mcp",
"--header", "X-API-Key:ms_live_your_key_here"
]
}
}
} The server gives your assistant these tools.
| Tool | What it does |
|---|---|
find_categories | Finds the Google Maps category names to search with. |
list_cities | Lists cities in a state or province, largest first. |
start_search | Starts a search. This spends credits. |
get_search | Shows progress, grade counts and emails found. |
list_searches | Lists your recent searches. |
get_results | Returns businesses, filtered by grade, email or website. |
get_balance | Shows your credits and the packs you can buy. |
cancel_search | Stops a search that is still running. |
Searches made this way cost the same credits as the app. Most assistants ask before they run a tool, so you see each search before it starts. To disconnect an app, open Settings in GradedLeads and find Connected apps.
Your API key
Open Settings and choose Create new API key. Name the key and pick when it expires. We show the key once, so copy it somewhere safe.
Send the key in the X-API-Key header on every request.
X-API-Key: ms_live_0123456789abcdef... Never put the key in a URL, a web page or a public repo. Anyone with it can spend your credits. If a key leaks, revoke it in Settings and make a new one.
Start a search
POST /jobs
Each keyword is one search on Google Maps. Write it as category, city, state, like Roofing contractor, Denver, CO. You can send up to 5,000 keywords in one job.
{
"name": "Denver roofers",
"keywords": [
"Roofing contractor, Denver, CO",
"Roofing contractor, Aurora, CO"
],
"config": {
"maxResultsPerQuery": "all"
}
} keywordsis required.nameis optional. We use the first keyword when you leave it out.-
config.maxResultsPerQuerycaps how many businesses each keyword returns. Use 20, 40, 60 or"all". The default is all.
The search starts right away. The response gives you the job id.
{
"id": "cd23e9c5-27e1-4d75-9a00-ca1e1ee1a4d2",
"name": "Denver roofers",
"status": "queued",
"total_keywords": 2,
"created_at": "2026-11-28T10:00:03.435Z",
"estimatedMaxCredits": 4600,
"creditBalance": 4600
} estimatedMaxCredits is the most this job can use. Most jobs use less, because businesses you already
pulled are free.
Check progress
GET /jobs/{id}/progress
{
"status": "running",
"totalKeywords": 2,
"resultsCount": 72,
"progress": { "completed": 1, "total": 2, "unique": 62, "duplicates": 10 }
} A job moves through these statuses.
queuedmeans it is waiting for a free worker.runningmeans it is searching now.completedmeans every keyword is done.stopped_no_creditsmeans you ran out of credits. You keep everything it found.failedmeans something went wrong. You can retry it.cancelledmeans you or we stopped it.
A city with one keyword usually takes under a minute. Check every 15 to 30 seconds. Faster checks do not make it finish sooner.
Website grades and emails
When the search finishes, we visit each business website. We grade the site from A to F and look for email addresses. This step starts on its own.
Watch enrich_status on GET /jobs/{id}. It goes from pending to running to done. It stays empty when the job found no websites to visit. For counts, call GET /jobs/{id}/enrichment-status.
{
"enriched": true,
"total": 62,
"emailsFound": 21,
"pending": 0,
"scoring": { "gradeF": 9, "gradeD": 14, "gradeC": 18, "gradeB": 12, "gradeA": 4 },
"hotLeads": 23
} hotLeads counts the D and F grades, which includes businesses with no website. Those owners are the
easiest to sell a new site, SEO or marketing.
Get the results
GET /results/{id} returns every business as JSON. GET /results/{id}/csv returns the same file you download in the app.
Here is one business, trimmed to the fields most people use.
{
"title": "Brown Septic Pumping",
"category": "Septic system service",
"phone": "+17197488095",
"email": "office@example.com",
"emails": ["office@example.com"],
"website": "http://example.com/",
"website_grade": "C",
"website_score": 65,
"website_issues": [
"No security certificate (HTTP only)",
"No clear call-to-action on the homepage"
],
"prospect_tier": "Needs upgrade",
"address": "123 Main St, Lake George, CO 80827",
"city": "Lake George",
"state": "CO",
"postal_code": "80827",
"rating": 4.8,
"review_count": 256,
"hours": { "monday": "Open 24 hours", "sunday": "Closed" },
"latitude": 38.982296,
"longitude": -105.35967,
"place_id": "ChIJ59yDSOJKa4cRpzPMQKkU9O8",
"google_maps_url": "https://www.google.com/maps/place/?q=place_id:ChIJ59yDSOJKa4cRpzPMQKkU9O8",
"business_status": "open",
"billable": true
} website_gradeis A to F, andwebsite_scoreis 0 to 100. A business with no website gets an F.prospect_tiersums up the grade in words, like Needs rebuild, Site down or No website.website_issueslists what we found wrong with the site, in plain words.emailslists every address we found.emailis the best one.billableis true when the business cost a credit in this job.place_idis Google's id for the business. Use it to match records.
Duplicates are left out. A business that showed up under two keywords appears once. Add ?includeDuplicates=true to see every copy.
A full example in Python, from search to leads:
import os, time, requests
API = "https://app.gradedleads.com/api"
H = {"X-API-Key": os.environ["GL_KEY"]}
job = requests.post(f"{API}/jobs", headers=H, json={
"keywords": ["Plumber, Austin, TX", "Plumber, Round Rock, TX"],
}).json()
while True:
j = requests.get(f"{API}/jobs/{job['id']}", headers=H).json()
search_done = j["status"] in ("completed", "stopped_no_credits", "failed", "cancelled")
emails_done = j["enrich_status"] in (None, "done", "failed")
if search_done and emails_done:
break
time.sleep(15)
leads = requests.get(f"{API}/results/{job['id']}", headers=H).json()["results"]
print(len(leads), "businesses") Credits
The API costs the same as the app. One credit covers one open business in the category you searched, with its grade and any email we find. Businesses you already pulled are free, and so are results outside the category.
GET /billing/config returns your balance in creditBalance, along with the packs you can buy. Buy credits in the app under Settings. Credits never expire.
A new job is refused with a 429 when your balance is zero. A job that runs out partway stops with stopped_no_credits. Nothing is charged past zero.
More endpoints
| Method | Path | What it does |
|---|---|---|
| GET | /jobs | Your searches, newest first. Optional status, limit (default 100) and offset. |
| GET | /jobs/{id} | One search with its keywords, settings, status and enrich_status. |
| POST | /jobs/{id}/cancel | Stop a queued or running search. You keep what it found. |
| POST | /jobs/{id}/retry | Run a failed search again. |
| DELETE | /jobs/{id} | Remove a search from your list. |
| POST | /jobs/{id}/enrich | Run the email lookup again on a finished search. |
| GET | /results/{id}/xlsx | The results as an Excel file. |
| GET | /categories/search?q=roof | Up to 20 Google Maps categories that match. No key needed. |
| GET | /geography/cities?state=CO | Cities in a state or province, largest first. Add minPopulation or limit. No key needed. |
| GET | /billing/ledger | Every credit added or used, newest first. Optional limit, up to 500. |
Errors and limits
Errors come back as JSON with a plain message.
{ "error": "keywords array is required" } | Code | Meaning |
|---|---|
400 | The request is missing something, like the keywords array. |
401 | The key is missing, wrong, revoked or expired. |
402 | You are out of credits for this action. |
403 | You cannot see that search, or your email is not verified yet. |
404 | No search with that id. |
409 | That job is already running, like a second email lookup on the same search. |
429 | You are out of credits, or you hit a rate limit. |
Each account can make 1,000 requests every 15 minutes and start 60 jobs an hour. Send more keywords per job
rather than more jobs. Every response carries a RateLimit header with what you have left.
You must verify your email before your first search. The API follows our Terms of Service and acceptable use policy. Questions go to info@gradedleads.com.