Skip to content

TypeScript SDK

Typed access to competitive intelligence. 12 resources, 34 methods, zero dependencies.

Quick Start

Quick Start

npm install @competlab/sdk
import CompetLab from '@competlab/sdk';

const cl = new CompetLab({ apiKey: process.env.COMPETLAB_API_KEY });

// See how AI systems rank your brand vs competitors
const visibility = await cl.aiVisibility.dashboard('proj_abc');

// Get a competitive Strategic Briefing
const briefing = await cl.strategicBriefing.get('proj_abc');

// Check competitor pricing changes
const pricing = await cl.pricing.dashboard('proj_abc');
SDK Surface

Available Resources

12 resources with 34 methods. All fully typed.

cl.healthcheck()API health check
cl.projectslist(), get(id)List and retrieve projects
cl.competitorslist(projectId), get(projectId, id)Monitored competitors
cl.techTrustdashboard(id), history(id), runDetail(id, runId)Tech stacks & trust signals
cl.contentdashboard(id), history(id), runDetail(id, runId), changelog(id)Content analysis & changes
cl.positioningdashboard(id), history(id), runDetail(id, runId)Homepage messaging & value props
cl.pricingdashboard(id), history(id), runDetail(id, runId)Pricing intelligence
cl.aiVisibilitydashboard(id), history(id), checkDetail(id, checkId), trend(id)AI visibility scores across ChatGPT, Claude, Gemini
cl.strategicBriefingget(id)AI-generated competitive Strategic Briefings
cl.alertslist(id)Competitive change alerts
cl.scheduleslist(id)Monitoring schedules
cl.toolssitemapVisualizer(body), aiCrawlerChecker(body), fetchUrl(body), techStack.{startScan,getScan}, trustSignals.{startScan,getScan}, agentAdoption.{startScan,getScan}On-demand site audits — the free-tool scans
For agencies & platforms

Build CompetLab into your product — or offer it to your clients

Build on it

The REST API and typed SDK pipe CompetLab's intelligence — every dimension, the Strategic Briefing, and the free scans — straight into your own product, dashboard, or workflow. Agencies run multiple client workspaces today with organizations, projects, and role-based access. (Programmatic org/project provisioning via the API is available on request.)

Start building

Resell or white-label

Reselling CompetLab to your clients, or want it white-labeled? Reach out — we'll scope it with you directly.

Talk to us

Start Building with CompetLab

Get your API key and start querying competitive intelligence in minutes.

Start Free Trial

No credit card required