Skip to main content

Track Rankings

curl -X POST "https://api.latentgeo.com/rank-tracking/track/123?domain=example.com" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "keywords": ["seo tools", "website audit", "seo analysis"]
  }'
Track search engine rankings for specified keywords.

Path Parameters

audit_id
integer
required
The ID of the audit to track rankings for

Query Parameters

domain
string
required
Domain to track rankings for

Request Body

keywords
array
required
Array of keywords to track rankings for

Response

Returns an array of ranking records with position data and competitor information.
id
integer
Unique identifier for the ranking record
audit_id
integer
The audit ID this ranking belongs to
keyword
string
The keyword being tracked
position
integer
Current search engine ranking position (1-100+)
url
string
The URL that is ranking for this keyword
device
string
Device type used for tracking (e.g., “mobile”, “desktop”)
location
string
Geographic location for the search (e.g., “United States”, “Global”)
top_results
array
Array of top 10 competitor results
tracked_at
string
Timestamp when the ranking was checked (ISO 8601 format)
[
  {
    "id": 1,
    "audit_id": 123,
    "keyword": "seo tools",
    "position": 8,
    "url": "https://example.com/seo-tools",
    "device": "desktop",
    "location": "United States",
    "top_results": [
      {
        "position": 1,
        "url": "https://competitor1.com/tools",
        "title": "Best SEO Tools 2026",
        "domain": "competitor1.com"
      },
      {
        "position": 2,
        "url": "https://competitor2.com/seo",
        "title": "Top SEO Tools",
        "domain": "competitor2.com"
      }
    ],
    "tracked_at": "2026-03-03T10:30:00Z"
  },
  {
    "id": 2,
    "audit_id": 123,
    "keyword": "website audit",
    "position": 3,
    "url": "https://example.com/audit",
    "device": "mobile",
    "location": "United States",
    "top_results": [],
    "tracked_at": "2026-03-03T10:31:00Z"
  }
]

Error Codes

401
error
Unauthorized - Invalid or missing authentication token
403
error
Forbidden - User does not have access to this audit
404
error
Not Found - Audit ID does not exist

Get Rankings

curl -X GET "https://api.latentgeo.com/rank-tracking/123" \
  -H "Authorization: Bearer YOUR_API_KEY"
Retrieve stored ranking data for an audit.

Path Parameters

audit_id
integer
required
The ID of the audit to retrieve rankings for

Response

Returns an array of ranking objects with the same structure as the track endpoint.
[
  {
    "id": 1,
    "audit_id": 123,
    "keyword": "seo tools",
    "position": 8,
    "url": "https://example.com/seo-tools",
    "device": "desktop",
    "location": "United States",
    "top_results": [],
    "tracked_at": "2026-03-03T10:30:00Z"
  }
]

Error Codes

401
error
Unauthorized - Invalid or missing authentication token
403
error
Forbidden - User does not have access to this audit
404
error
Not Found - Audit ID does not exist

Build docs developers (and LLMs) love