API
Use the SerpitUp API to pull rankings, competitor data, and account details into your own tools or agents. You need an API key from a signed-in account.
Base URL
https://serpitup.com/api/v1
Auth
Pass your key on every request:
Authorization: Bearer YOUR_API_KEY
# or
X-Api-Key: YOUR_API_KEY
Create keys after you sign in. Keep them private.
Responses
Success: { "data": { ... } }
Error: { "error": { "code": "...", "message": "..." } }
Customer pages
Each URL below returns the same figures as the matching page on the site. {id} is the customer public_id from the website URL. Keyword, competitor, and snapshot ids work the same way.
Start with rankings. you is this customer's best domain. keywords is every phrase: position is the best listing on the latest saved Google result, positions is every listing, and score is #1 = 50 points down to #50 = 1. A null position means that phrase is not in the latest save. Older checks are on the keyword history endpoint.
GET /clients– companies on the account (Customers list)GET /clients/{id}/dashboard– customer home: score, place, top domains, 90-day historyGET /clients/{id}/rankings– rankings scoreboard, your domains, and the keyword listGET /clients/{id}/rankings/{domain}– one domain, one row per ranking URLGET /clients/{id}/keywords– latest position,first_position, andposition_change(+12 is 12 places higher). Optional?q=and?status=ranked|unrankedGET /clients/{id}/keywords/{keywordId}– organic pages, competitor board, and past checksGET /clients/{id}/keywords/{keywordId}/history– position history. Optional?market=public idGET /clients/{id}/competitors– competitor scoreboard, including youGET /clients/{id}/competitors/{competitorId}– competitor dossierGET /clients/{id}/markets– search locationsGET /clients/{id}/profile– domains, notes, Search Console queriesGET /clients/{id}– full profile record (domains, keywords, competitors, markets)GET /rankings/snapshots/{id}– one saved SERP
Example
curl -sS https://serpitup.com/api/v1/clients \
-H "X-Api-Key: YOUR_API_KEY"
# Rankings scoreboard + where this customer ranks on each keyword
curl -sS https://serpitup.com/api/v1/clients/CLIENT_PUBLIC_ID/rankings \
-H "X-Api-Key: YOUR_API_KEY"
# One keyword: pages on the latest SERP, your place, and older checks
curl -sS https://serpitup.com/api/v1/clients/CLIENT_PUBLIC_ID/keywords/KEYWORD_PUBLIC_ID \
-H "X-Api-Key: YOUR_API_KEY"
OpenAPI
Sign in (or call with your API key) to download the OpenAPI file for codegen.
curl -sS https://serpitup.com/api/v1/openapi.json \
-H "X-Api-Key: YOUR_API_KEY"