# Technographics API Reference

> Platform documentation snapshot. Access, charging and provider requirements remain operation-specific; examples do not execute requests.

### What it does

See what technology a company runs and, in reverse, every company running a given technology. Returns a detected stack with categories, a sophistication score, adoption gaps, and a searchable catalog plus free counts before you commit credits.

### Use cases

- Run competitive displacement: list every company on a rival product and target them directly.
- Qualify for integration fit by confirming the prospect already runs the platform you plug into.
- Spot stack gaps (no analytics, no CDP, no security tooling) and lead with that specific problem.
- Size a partner ecosystem opportunity using free counts before pulling full records.

### Parameters

| Parameter | Type | Description |
|-----------|------|-------------|
| `action` | enum | "stack" (technologies on a domain), "users" (who runs a technology), or "catalog" (searchable technology directory). Inferred from the body when omitted |
| `domain` | string | Domain to profile, e.g. "stripe.com" (required for action "stack") |
| `technology` | string | Technology name or slug, e.g. "HubSpot" or "hubspot" (required for action "users") |
| `enrich` | boolean | Attach firmographics (employees, industry, founded, HQ, LinkedIn URL, Fortune/Inc rank) to each matching company. Default: false |
| `min_employees` | integer | Minimum employee count. Implies enrichment |
| `max_employees` | integer | Maximum employee count. Implies enrichment |
| `country` | string | Filter matching companies by HQ country. Implies enrichment |
| `min_web_rank` | integer | Minimum web popularity rank (higher number = smaller site) |
| `max_web_rank` | integer | Maximum web popularity rank (e.g. 10000 for major sites only) |
| `q` | string | Search the technology catalog by name or slug (action "catalog") |
| `category` | string | Filter the catalog to one Bytemine category, e.g. "CRM", "Analytics", "Payments & Billing" |
| `limit` | integer | Records per page (1-100, default: 25) |
| `offset` | integer | Pagination offset (default: 0) |
| `count` | boolean | Free count-only query for action "users" (0 credits, empty sites array) |

### Response Schema

_Complete documented fields for this section, with nested notation preserved. Endpoint-specific envelopes, availability and additional fields are described under each endpoint below._

| Field | Notes |
|-------|-------|
| stack -> domain, company{name}, web_rank, web_authority, technology_count, categories_detected | |
| stack -> stack_sophistication (0-100), stack_gaps[], competing_vendors[]{category, vendors[]} | |
| stack -> categories{category: [technologies]} | |
| stack -> technologies[] -> technology, slug, category, vendor, confidence (0-100), confidence_level, fingerprints_seen | |
| users -> technology, slug, category, description, vendor_url, total, offset, returned | |
| users -> sites[] -> domain, company_name, web_rank, web_authority | |
| users -> sites[] (enriched) -> employee_count, size_band, industry, company_type, founded, linkedin_url, city, region, country, fortune_rank, inc_rank | |
| catalog -> total, matched, categories[] | |
| catalog -> technologies[] -> technology, slug, category, domains_using, adoption_rank, description, vendor_url | |
| trimmed | |
| credits_warning | |

**Illustrative Example Response (synthetic, not a complete endpoint schema):**

```json
{
  "data": {
    "stack -> domain, company{name}, web_rank, web_authority, technology_count, categories_detected": 0,
    "stack -> stack_sophistication (0-100), stack_gaps[], competing_vendors[]{category, vendors[]}": "string",
    "stack -> categories{category: [technologies]}": [],
    "stack -> technologies[] -> technology, slug, category, vendor, confidence (0-100), confidence_level, fingerprints_seen": "string",
    "users -> technology, slug, category, description, vendor_url, total, offset, returned": "https://example.com",
    "users -> sites[] -> domain, company_name, web_rank, web_authority": "string",
    "users -> sites[] (enriched) -> employee_count, size_band, industry, company_type, founded, linkedin_url, city, region, country, fortune_rank, inc_rank": 0,
    "catalog -> total, matched, categories[]": [],
    "catalog -> technologies[] -> technology, slug, category, domains_using, adoption_rank, description, vendor_url": "https://example.com",
    "trimmed": "string",
    "credits_warning": "string"
  }
}
```

### POST /v1/tech/stack — Technology Stack for a Domain

Return the full detected technology stack for any domain across 2,700+ tracked technologies and 157M indexed sites. Every technology is mapped to a Bytemine category and given a confidence score derived from how often the fingerprint was observed, so stray references are separated from real deployments.

Derived intelligence unique to Bytemine:
- `stack_sophistication` - 0-100 maturity score for the company's go-to-market stack
- `stack_gaps` - core categories with no vendor detected (your opening)
- `competing_vendors` - categories running two or more overlapping tools (your consolidation pitch)

Costs 1 credit per domain profiled.

**Example Request Body:**

```json
{
  "domain": "stripe.com"
}
```

**cURL Example:**

```bash
curl -X POST 'https://bvjmtgaxijpyasjtaqiv.supabase.co/functions/v1/api-gateway' \
  -H 'Content-Type: application/json' \
  -H 'x-amz-security-token: YOUR-API-KEY' \
  -d '{
  "path": "/v1/tech/stack",
  "method": "POST",
  "body": {
    "domain": "stripe.com"
  }
}'
```

### POST /v1/tech/users — Who Runs This Technology

Reverse technographic lookup: every company running a given technology, with optional firmographic enrichment and filtering by size, country and web rank. Ideal for competitor-displacement and complementary-stack prospecting. Costs 1 credit per company returned; use `count: true` to size the market for free.

**Example Request Body:**

```json
{
  "technology": "HubSpot",
  "enrich": true,
  "min_employees": 50,
  "max_employees": 5000,
  "country": "United States",
  "max_web_rank": 500000,
  "limit": 25,
  "offset": 0
}
```

**cURL Example:**

```bash
curl -X POST 'https://bvjmtgaxijpyasjtaqiv.supabase.co/functions/v1/api-gateway' \
  -H 'Content-Type: application/json' \
  -H 'x-amz-security-token: YOUR-API-KEY' \
  -d '{
  "path": "/v1/tech/users",
  "method": "POST",
  "body": {
    "technology": "HubSpot",
    "enrich": true,
    "min_employees": 50,
    "max_employees": 5000,
    "country": "United States",
    "max_web_rank": 500000,
    "limit": 25,
    "offset": 0
  }
}'
```

### POST /v1/tech/users — Size a Technology Market (Free)

Count every company running a technology without spending credits.

**Example Request Body:**

```json
{
  "technology": "Marketo",
  "count": true
}
```

**cURL Example:**

```bash
curl -X POST 'https://bvjmtgaxijpyasjtaqiv.supabase.co/functions/v1/api-gateway' \
  -H 'Content-Type: application/json' \
  -H 'x-amz-security-token: YOUR-API-KEY' \
  -d '{
  "path": "/v1/tech/users",
  "method": "POST",
  "body": {
    "technology": "Marketo",
    "count": true
  }
}'
```

### POST /v1/tech/catalog — Search the Technology Catalog

Browse or search all tracked technologies with their adoption footprint and Bytemine category. Free - 0 credits.

**Example Request Body:**

```json
{
  "q": "segment",
  "limit": 25
}
```

**cURL Example:**

```bash
curl -X POST 'https://bvjmtgaxijpyasjtaqiv.supabase.co/functions/v1/api-gateway' \
  -H 'Content-Type: application/json' \
  -H 'x-amz-security-token: YOUR-API-KEY' \
  -d '{
  "path": "/v1/tech/catalog",
  "method": "POST",
  "body": {
    "q": "segment",
    "limit": 25
  }
}'
```

