Skip to Content

REST API Quickstart

Before you begin

New to CompetLab? Create a free account  and set up your first project first — the calls below list and read your projects, so you need one to get anything back.

You need a CompetLab API key. Create one in the dashboard under Settings → API Keys — it starts with cl_live_ and is 40 characters. Copy it when it’s shown; you won’t be able to read it again. (More in Authentication.)

List your projects

Every project-scoped call needs a projectId, and GET /v1/projects is where you get one:

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

The response wraps the list in items:

{ "items": [ { "id": "65a1b2c3d4e5f6a7b8c9d0e1", "organizationId": "64f0a1b2c3d4e5f6a7b8c9d0", "name": "Acme", "domain": "acme.com", "status": "active", "competitorCount": 4, "lastMonitoredAt": "2026-07-07T09:12:00.000Z", "createdAt": "2026-06-01T10:00:00.000Z" } ] }

Copy an id — that’s the projectId for the next call.

Pull a dimension

With a projectId, you can read any of the six monitored dimensions. Here’s the latest pricing intelligence:

curl https://api.competlab.com/v1/projects/65a1b2c3d4e5f6a7b8c9d0e1/pricing \ -H "CL-API-Key: YOUR_COMPETLAB_API_KEY"

A single resource comes back wrapped in item:

{ "item": { "readingGuide": { "…": "the rule for each field in this response" }, "dimension": "pricing", "run": { "completedAt": "2026-10-11T06:12:00.000Z", "header": { "readOn": "2026-10-11", "pages": 9, "read": 8, "unread": [{ "…": "a company whose page could not be read" }] }, "companies": [ { "domain": "rival-a.example", "isSelf": false, "state": "read", "facts": [{ "kind": "plan", "name": "Essentials", "price": { "amount": 29, "currency": "USD", "period": "month" }, "…": "the page's words behind it" }] } ], "setups": [{ "…": "typical buyers priced at every company, cheapest first" }], "changes": [{ "…": "each from X to Y with its two dates and its level" }] }, "nextCheckAt": "2026-10-14T06:00:00.000Z" } }

Swap pricing for ai-visibility, ai-sources, positioning, content, or tech-trust to read the other dimensions — or call strategic-briefing for the synthesized read across all of them.

Handle the response

  • Success is 200 with { item } or { items }. Paginated lists add a pagination object (page, limit, total, totalPages, hasMore).
  • Long lists inside a dimension — the ai-visibility, ai-sources and tech-trust reads answer in a compact view unless you send view=full; see Long lists come a page at a time.
  • A missing CL-API-Key header is 401 with code: "api_key_missing"; a malformed or unrecognized key is 401 with code: "api_key_invalid".
  • Other errors carry the same { error } envelope with a snake_case code and the HTTP status.

Next steps

Last updated on