> ## Documentation Index
> Fetch the complete documentation index at: https://docs.context.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Introduction

**The Infrastructure Layer for Structured Web Data**

[Context.dev](https://context.dev/) turns the raw internet into structured, AI-ready knowledge. Pull brand data, scrape web pages, extract products, and resolve entities from any domain, all through a single API.

We started by solving a deceptively simple problem: give developers clean, structured access to brand data. But the opportunity is much bigger. Every AI agent, workflow, and LLM-powered product hits the same wall: the internet is unstructured, noisy, and hard to reason about. Context.dev is the context layer that AI-native products depend on.

## How It Works

**One domain in. Structured data out.**

[Context.dev](https://context.dev/) turns a simple domain into structured, actionable data through a single API request:

### Step 1: Provide a Domain

Everything starts with a domain. Send a domain like `context.dev`, `loom.com`, `bannerbear.com` to the Context.dev API.

Behind the scenes, Context.dev does what would normally take hours of manual research:

* Crawls verified sources to extract brand assets and web data
* Cleans, structures, and standardizes the data
* Returns logos, colors, fonts, metadata, products, and more as structured outputs

### Step 2: Instantly Receive Structured Data

The API responds with standardized JSON objects containing everything you need:

| Data Type       | Example Output                        | Purpose                          |
| --------------- | ------------------------------------- | -------------------------------- |
| **Logos**       | Light, dark, color variants, SVGs     | Auto-brand dashboards, portals   |
| **Colors**      | Primary, secondary, background colors | Instant theme generation         |
| **Company**     | Name, description, domain, industry   | Personalize UIs, reporting       |
| **Social**      | Links to X, LinkedIn, etc.            | Populate profiles, contacts      |
| **Financial**   | Stock ticker (if applicable)          | Enhance investor-facing products |
| **Products**    | Pricing, features, categories         | Competitive analysis, enrichment |
| **Web Content** | HTML, Markdown, images, sitemaps      | AI pipelines, data extraction    |

## It's Simple To Setup

**Request (Typescript SDK):**

```typescript theme={null}
import ContextDev from "context.dev";

const client = new ContextDev({
  apiKey: "your-api-key-here",
});

const { brand } = await client.brand.retrieve({ domain: "loom.com" });
```

**Response (Simplified JSON):**

```json Loom.com Sample Response expandable theme={null}
{
  "status": "ok",
  "brand": {
    "domain": "loom.com",
    "title": "Loom",
    "description": "Loom is a video messaging platform that enables users to record their screen, camera, or both, to communicate more effectively. Now part of Atlassian, Loom empowers remote teams to work asynchronously and make the impossible possible with video messaging, championing a remote-first work culture.",
    "slogan": "Empowering everyone to communicate more effectively, wherever they are",
    "colors": [
      {
        "hex": "#040404",
        "name": "Armor Wash"
      },
      {
        "hex": "#655ef3",
        "name": "Blue Hepatica"
      },
      {
        "hex": "#acace2",
        "name": "Maximum Blue Purple"
      }
    ],
    "logos": [
      {
        "url": "https://media.context.dev/41361aac-0659-4a12-b4ab-e6b13276f6ad.jpg",
        "mode": "has_opaque_background",
        "colors": [
          {
            "hex": "#655ef3",
            "name": "Blue Hepatica"
          },
          {
            "hex": "#e3e3f3",
            "name": "Crystal Falls"
          }
        ],
        "resolution": {
          "width": 720,
          "height": 720,
          "aspect_ratio": 1
        },
        "type": "icon"
      },
      {
        "url": "https://media.context.dev/660ae867-d4a1-4c38-a815-6dbc1ceb33d5.svg",
        "mode": "light",
        "colors": [
          {
            "hex": "#0c1414",
            "name": "Ruined Smores"
          }
        ],
        "resolution": {
          "width": 150,
          "height": 48,
          "aspect_ratio": 3.13
        },
        "type": "logo"
      },
      {
        "url": "https://media.context.dev/48bab401-ef69-40ee-9a4b-20290d93b558.svg",
        "mode": "light",
        "colors": [
          {
            "hex": "#040404",
            "name": "Armor Wash"
          }
        ],
        "resolution": {
          "width": 84,
          "height": 25,
          "aspect_ratio": 3.36
        },
        "type": "logo"
      }
    ],
    "backdrops": [
      {
        "url": "https://media.context.dev/cbfda606-244b-4fde-9aaf-6ccc9d597a20.png",
        "colors": [
          {
            "hex": "#3fa9d5",
            "name": "Summer Air"
          },
          {
            "hex": "#2c2554",
            "name": "Ceremonial Purple"
          },
          {
            "hex": "#d5c1d7",
            "name": "Tender Violet"
          }
        ],
        "resolution": {
          "width": 1500,
          "height": 500,
          "aspect_ratio": 3
        }
      },
      {
        "url": "https://media.context.dev/94e5b368-6d5b-4021-ac00-c2970ed6b53a.png",
        "colors": [
          {
            "hex": "#2b1c52",
            "name": "Pāua"
          },
          {
            "hex": "#77596a",
            "name": "Exotic Orchid"
          },
          {
            "hex": "#dddfed",
            "name": "Artemis Silver"
          }
        ],
        "resolution": {
          "width": 1200,
          "height": 627,
          "aspect_ratio": 1.91
        }
      },
      {
        "url": "https://media.context.dev/59118ae5-3db4-4e6e-97f4-d914d53981c6.png",
        "colors": [
          {
            "hex": "#1c6ad7",
            "name": "Flickr Blue"
          },
          {
            "hex": "#edb638",
            "name": "Baklava"
          },
          {
            "hex": "#53442e",
            "name": "Deep Bronze"
          }
        ],
        "resolution": {
          "width": 1128,
          "height": 191,
          "aspect_ratio": 5.91
        }
      }
    ],
    "address": {
      "street": "140 2nd Street",
      "city": "San Francisco",
      "country": "United States",
      "country_code": "US",
      "state_province": "California",
      "state_code": "CA",
      "postal_code": "94105"
    },
    "socials": [
      {
        "type": "x",
        "url": "https://x.com/loom"
      },
      {
        "type": "facebook",
        "url": "https://facebook.com/useloom"
      },
      {
        "type": "linkedin",
        "url": "https://linkedin.com/company/useloom"
      },
      {
        "type": "youtube",
        "url": "https://youtube.com/channel/ucnqj2rfvx8v0t377wcojyoa"
      }
    ],
    "stock": null,
    "phone": "3017125913",
    "is_nsfw": false,
    "industries": {
      "eic": [
        {
          "industry": "Technology",
          "subindustry": "Software (B2B)"
        }
      ]
    },
    "links": {
      "careers": null,
      "terms": "https://loom.com/legal",
      "contact": "https://loom.com/connect/enterprise",
      "privacy": null,
      "blog": "https://loom.com/newsroom",
      "pricing": "https://loom.com/pricing"
    }
  },
  "code": 200
}
```

<Card title="Quick Start" icon="bolt" href="/guides/get-started/quickstart">
  Get started in 5 minutes or less by following this one page guide
</Card>

## Built for Scale & Reliability

* **Fast**: \~250ms response times for most domains, p50 of 10 seconds for cold hits.
* **Reliable**: Automatic retries and fallback strategies
* **Scalable**: Supports startups through enterprise scale

## SDK

We've developed these SDKs for easy usage

* [Typescript SDK](https://www.npmjs.com/package/context.dev)
* [Python SDK](https://pypi.org/project/context.dev/)
* [Ruby SDK](https://rubygems.org/gems/context.dev)

## Available APIs

<CardGroup cols={2}>
  <Card title="Brand API" icon="swatchbook" href="/api-reference/retrieve-brand/retrieve-brand-data-by-domain">
    Retrieve brand data for any domain.
  </Card>

  <Card title="Transaction Identifier API" icon="money-check-dollar" href="/api-reference/retrieve-brand/identify-brand-from-transaction-data">
    Retrieve brand data for a transaction.
  </Card>

  <Card title="NAICS Classification API" icon="filter-list" href="/api-reference/industry-classification/retrieve-naics-code-for-any-brand">
    NAICS Classification for any domain.
  </Card>

  <Card title="Styleguide API" icon="fill-drip" href="/api-reference/screenshot-styleguide/extract-design-system-and-styleguide-from-website">
    Get the styleguide for any website (colors, fonts, components)
  </Card>

  <Card title="Screenshot API" icon="camera-viewfinder" href="/api-reference/screenshot-styleguide/take-screenshot-of-website">
    Get a screenshot of any website
  </Card>
</CardGroup>

***

<Tip>
  Need help implementing a specific use case? [Contact our
  team](mailto:hello@context.dev) for personalized guidance.
</Tip>
