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

# Quickstart

> Make your first request to The Data City API in under five minutes.

This guide walks you from zero to a working API call against The Data City v2 API.

## 1. Get an API key

API keys are issued manually by The Data City. Email [support@thedatacity.com](mailto:support@thedatacity.com) to request one. See [Authentication](https://docs.thedatacity.com/api-reference/guides/authentication.md) for the full flow.

## 2. Make your first request

Every request needs an `Authorization: Bearer <token>` header. Try fetching details for a UK company by its Companies House number:

```bash cURL theme={null}
curl -X GET 'https://product-api.thedatacity.com/api/v2/companies/12345678' \
  -H 'Authorization: Bearer YOUR_API_KEY'
```

```python Python theme={null}
import requests

response = requests.get(
    "https://product-api.thedatacity.com/api/v2/companies/12345678",
    headers={"Authorization": "Bearer YOUR_API_KEY"},
)
response.raise_for_status()
print(response.json())
```

```javascript Node.js theme={null}
const response = await fetch(
  "https://product-api.thedatacity.com/api/v2/companies/12345678",
  { headers: { Authorization: "Bearer YOUR_API_KEY" } },
);
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
console.log(await response.json());
```

The Node.js example uses the built-in `fetch` (Node.js 18 or later) and top-level `await`, so save it as an `.mjs` file.

A successful response is a JSON object with the company's classification, financials, and metadata. If you get `{"message":"Unauthenticated."}`, the token is missing or wrong.

## 3. Explore from there

> [card] [API reference](https://docs.thedatacity.com/api-reference.md)
>
> Every endpoint, with a live playground.

> [card] [Authentication](https://docs.thedatacity.com/api-reference/guides/authentication.md)
>
> How tokens work and what to do if yours stops.

> [card] [Filtering](https://docs.thedatacity.com/api-reference/guides/filtering.md)
>
> Build a list of companies that match RTICs, CICs, or your own criteria.

> [card] [Batching](https://docs.thedatacity.com/api-reference/guides/batching.md)
>
> Bulk endpoints and company-number sets for large lists.

<Snippet file="need-help.mdx" />


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