Skip to Content

Competitors

REST endpoints for Competitors. Base URL https://api.competlab.com; every request needs a CL-API-Key header (see Authentication). Responses wrap in { item } or { items }; errors in { error }.

List project competitors

GET/v1/projects/{projectId}/competitors

List all competitors monitored within a project. Includes the project’s own domain (marked with isOwn: true) and all added competitor domains.

Returns · { items }

Path parameters

NameTypeDescription
projectIdstringProject ID

Request

curl "https://api.competlab.com/v1/projects/507f1f77bcf86cd799439011/competitors" \ -H "CL-API-Key: YOUR_COMPETLAB_API_KEY"

Response 200 OK

{ "items": [ { "id": "507f1f77bcf86cd799439011", "domain": "competitor.com", "isOwn": false, "preparationStatus": "complete", "createdAt": "2026-01-15T12:00:00.000Z" } ] }

Errors

StatusCodeMeaning
401api_key_missing · api_key_invalid · api_key_revoked · api_key_expired · insufficient_scopeThe CL-API-Key is missing, malformed, revoked, expired, or lacks the required scope.

Every error uses the shared { error: { code, message, status } } envelope; code is one of the values listed above.

{ "error": { "code": "api_key_invalid", "message": "Invalid API key", "status": 401 } }

Get competitor details

GET/v1/projects/{projectId}/competitors/{competitorId}

Get detailed information about a specific competitor within a project, including monitored page URLs (homepage and pricing).

Returns · { item }

Path parameters

NameTypeDescription
competitorIdstringCompetitor ID
projectIdstringProject ID

Request

curl "https://api.competlab.com/v1/projects/507f1f77bcf86cd799439011/competitors/507f1f77bcf86cd799439012" \ -H "CL-API-Key: YOUR_COMPETLAB_API_KEY"

Response 200 OK

{ "item": { "id": "507f1f77bcf86cd799439011", "domain": "competitor.com", "isOwn": false, "preparationStatus": "complete", "createdAt": "2026-01-15T12:00:00.000Z", "monitoredPages": { "homepage": "https://competitor.com/", "pricing": "https://competitor.com/pricing" } } }

Errors

StatusCodeMeaning
401api_key_missing · api_key_invalid · api_key_revoked · api_key_expired · insufficient_scopeThe CL-API-Key is missing, malformed, revoked, expired, or lacks the required scope.
404competitor_not_foundNo competitor matches the id in the path.

Every error uses the shared { error: { code, message, status } } envelope; code is one of the values listed above.

{ "error": { "code": "api_key_invalid", "message": "Invalid API key", "status": 401 } }
Last updated on