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

> ## Agent Instructions
> Brandfetch returns real company logos, brand data, and brand context. It does not design, generate, or edit logos.
> To show a logo in a user interface, use the Logo API as an image URL in an <img> tag, such as https://cdn.brandfetch.io/domain/{domain}?c={CLIENT_ID}. The client ID is public and belongs in frontend code. Never download, proxy, re-host, or optimize these images on a server, because requests that look programmatic are redirected with automated_traffic. In Next.js, this means next/image needs a custom loader or the unoptimized prop.
> To turn a company name that a user types into a domain, use the Brand Search API with the same client ID, and keep only the domain the user picks.
> For colors, fonts, downloadable logo files, and company data as JSON, call the Brand API from a server with the header Authorization: Bearer {API_KEY}, reading the key from an environment variable and never exposing it to the browser. Prefer typed routes such as /v2/brands/domain/{domain} and /v2/brands/ticker/{ticker} over the auto-detect route /v2/brands/{identifier}.
> Use the Brand Context API for a written summary of what a company does, who it sells to, and how it sounds, and the Transaction API to identify the merchant behind a card or bank transaction label.
> When a request fails, branch on the x-bf-error header code rather than on the status code or the message text. Every code, and what to do about it, is listed at https://docs.brandfetch.com/concepts/errors.
> Requests for brandfetch.com are free on the Brand API and Brand Context API, so use that domain in tests and examples.
> Brand API responses can be cached for up to 30 days, while Logo API images must be hotlinked rather than stored and Brand Search results must not be stored at all. See https://docs.brandfetch.com/concepts/caching.
> If the user has no credentials yet, https://brandfetch.com/auth.md explains how they get a client ID and an API key. An agent without an account can pay $0.10 per Brand API, Brand Context API, or Transaction API request with x402 or MPP, as described at https://docs.brandfetch.com/agents/pay-per-request.

# Migrate from Firecrawl branding to the Brandfetch Brand API

> Replace a Firecrawl branding scrape with one Brand API lookup, and map Firecrawl's logo, colors, and fonts to Brandfetch response fields.

Firecrawl's `branding` format renders a page and extracts a logo, color palette, fonts, typography, and spacing from its HTML. The Brandfetch [Brand API](https://docs.brandfetch.com/brand-api/overview.md) returns a brand's logos, colors, and fonts from a record that is already indexed and verified, so moving over means replacing a scrape with a lookup. This guide shows the request change, where each piece of Firecrawl's output lives in the Brand API response, and what to do about the parts that don't carry over.

> [!TIP]
>
> Still deciding whether to scrape or look up brand data? The [Brandfetch vs Firecrawl comparison](https://brandfetch.com/developers/compare/firecrawl-alternative) covers coverage, speed, and cost.

> [!NOTE]
>
> This guide covers Firecrawl's branding output only. If you also use Firecrawl for page content, markdown, or crawling, keep it for that, since Brandfetch has no scraping or crawling API.

**1. Get an API key**

The Brand API authenticates with an [API key](https://docs.brandfetch.com/concepts/authentication.md#api-key) sent from your server, the same way you call Firecrawl. You can get one for free in the [developer dashboard](https://developers.brandfetch.com/register), and requests for `brandfetch.com` don't use any quota while you build.

**2. Replace the scrape with a lookup**

Firecrawl takes a URL and renders it, while the Brand API takes the domain and returns the stored record:

**Firecrawl**

```python theme={null}
from firecrawl import Firecrawl

firecrawl = Firecrawl(api_key="FIRECRAWL_API_KEY")
result = firecrawl.scrape(url="https://nike.com", formats=["branding"])
print(result.branding.logo)
```

**Brandfetch**

```python theme={null}
import os, requests

res = requests.get(
    "https://api.brandfetch.io/v2/brands/domain/nike.com",
    headers={"Authorization": f"Bearer {os.environ['BRANDFETCH_API_KEY']}"},
)
brand = res.json()
print(brand["logo"])
```

If you only had a full page URL, send the domain from it. The Brand API also accepts a stock ticker, ISIN, or crypto symbol through [other routes](https://docs.brandfetch.com/concepts/identifiers.md).

**3. Read the fields you used**

Point the code that read Firecrawl's output at the Brand API fields in the table below.

## Where Firecrawl's output lives in the Brand API

| Firecrawl branding output | Brand API field | Notes |
| - | - | - |
| Logo | `logo`, or `logos` for every version | `logo` is the best single logo as an image URL, and `logos` lists each type (`logo`, `symbol`, `icon`) in each theme and format, SVG included |
| Favicon or `og:image` | `icon`, `banner`, or `images` | `icon` is the square brand icon, and `banner` is the brand's cover image |
| Color palette | `colors` | Accent, brand, dark, and light colors. Add `palette=true` for the [full color palette](https://docs.brandfetch.com/brand-api/color-palette.md) |
| Fonts | `fonts` | The fonts for each role, with origin, weights, and license. See [typography](https://docs.brandfetch.com/brand-api/typography.md) |
| Typography | `fonts` with `typography=true` | Returns the [type scale](https://docs.brandfetch.com/brand-api/typography.md#type-scale) |
| Spacing | No equivalent | Brandfetch describes the brand, not one page's layout, so keep spacing values in your own design tokens |

The same response also carries data a branding scrape doesn't return, such as the company description, social links, and company details like industry, employee count, and location, all documented in the [API reference](https://docs.brandfetch.com/reference/brand-api-domain.md).

## What changes in your pipeline

A Firecrawl scrape renders the page on each request, so its result depends on what the page shows at that moment. A Brand API lookup returns the same record every time for the same brand, so the validation and "wrong logo" handling you built around page extraction can go. Keep retries for temporary failures, because a brand that isn't indexed yet is [crawled live during the request](https://docs.brandfetch.com/concepts/real-time-indexing.md), and when that crawl outlasts the request the API answers `404` with `x-bf-error: crawl_queued` and returns the brand on a retry a minute or two later. Keep a placeholder as well, since `logo`, `symbol`, `icon`, and `banner` are `null` when the brand has no image of that kind. [`cachedOnly`](https://docs.brandfetch.com/concepts/real-time-indexing#skip-the-crawl-with-cachedonly) skips the live crawl when you need a fast answer.

Image URLs in the response carry a client ID signed for your key, so you can put them straight into an `<img>` tag without downloading and hosting the files yourself. When all you need is the logo image, the [Logo API](https://docs.brandfetch.com/logo-api/overview.md) skips the JSON entirely and serves `https://cdn.brandfetch.io/nike.com?c=BRANDFETCH_CLIENT_ID` directly.

## FAQ

> [accordion] Does the Brand API scrape the page I send?
>
> No. It looks up the brand behind the domain in Brandfetch's dataset, and only crawls when the brand isn't indexed yet. That's why it returns the same answer for every page on the same domain.

> [accordion] How many requests does the free plan include?
>
> The Brand API includes [100 free brand fetches](https://docs.brandfetch.com/concepts/limits-and-billing.md) to try it, and the Logo API serves up to 1,000,000 image requests a month for free.

> [accordion] Can I look up many brands at once?
>
> Yes, [batch lookups](https://docs.brandfetch.com/brand-api/batch.md) return up to 100 brands in one request.

## Get started

> [card] [Brand API overview](https://docs.brandfetch.com/brand-api/overview.md)
>
> Everything a brand record contains and how to query it.

> [card] [Get your API key](https://developers.brandfetch.com/register)
>
> Free account, no credit card required.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.