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

# Quickstart

> Get your API key and make your first request in under a minute.

## 1. Create an account

```bash theme={null}
curl -X POST "https://api.urltodata.ai/v1/auth/register" \
  -H "Content-Type: application/json" \
  -d '{"email": "you@example.com", "password": "your-password"}'
```

This returns your API key and 100 free credits to get started:

```json theme={null}
{
  "user": { "id": "...", "email": "you@example.com", "status": "active" },
  "freeCredits": 100,
  "apiKey": "mp_abc123_secret"
}
```

## 2. Make your first request

Use the `Authorization: Bearer` header with every request:

```bash theme={null}
curl -H "Authorization: Bearer mp_abc123_secret" \
  "https://api.urltodata.ai/v1/youtube/video?id=dQw4w9WgXcQ"
```

```json theme={null}
{
  "id": "dQw4w9WgXcQ",
  "title": "Rick Astley - Never Gonna Give You Up",
  "duration": 212,
  "channel": { "id": "UCuAXFkgsw1L7xaCfnd5JJOw", "name": "Rick Astley" },
  "viewCount": 1500000000,
  "likeCount": 16000000
}
```

## 3. Try a transcript

```bash theme={null}
curl -H "Authorization: Bearer mp_abc123_secret" \
  "https://api.urltodata.ai/v1/youtube/transcript?videoId=dQw4w9WgXcQ&text=true"
```

## 4. Try cross-platform

The same API works across YouTube, TikTok, Instagram, X/Twitter, and Facebook:

```bash theme={null}
# TikTok metadata
curl -H "Authorization: Bearer mp_abc123_secret" \
  "https://api.urltodata.ai/v1/metadata?url=https://www.tiktok.com/@user/video/123"

# Instagram transcript
curl -H "Authorization: Bearer mp_abc123_secret" \
  "https://api.urltodata.ai/v1/transcript?url=https://www.instagram.com/reel/ABC123/&text=true"
```

## Next steps

<CardGroup cols={2}>
  <Card title="Authentication" icon="key" href="/authentication">
    Manage API keys and check your credits.
  </Card>

  <Card title="Supported Platforms" icon="layer-group" href="/platforms">
    See all supported platforms and URL formats.
  </Card>

  <Card title="Async Jobs" icon="clock" href="/async-jobs">
    Learn how batch operations and polling work.
  </Card>

  <Card title="API Reference" icon="code" href="/api-reference">
    Explore every endpoint with interactive examples.
  </Card>
</CardGroup>
