# YouTube / YouTube Video Info

Fetch public stats for a video or Short by id.

```
GET /api/v1/youtube/video
```

Auth: `Authorization: Bearer <SOCIFY_KEY>`  
Credits: 1 credit per request

## Parameters

| Name | Required | Description | Example |
|------|----------|-------------|---------|
| `id` | yes | YouTube video or Short id. | `9lhtFHpNfms` |

## Example

```bash
curl -s 'https://trysocify.com/api/v1/youtube/video?id=9lhtFHpNfms' \
  -H "Authorization: Bearer $SOCIFY_KEY"
```

## Response fields

| Field | Type | Description |
|-------|------|-------------|
| `likeButton.likeButtonRenderer.likeCount` | number | Like count, when available. |
| `viewCount` | string | View count text, when present. |
## Sample response

Successful lookups wrap the payload in `{ ok, platform, resource, params, data, meta }`. `data` is shown below.

```json
{
  "ok": true,
  "platform": "youtube",
  "resource": "video",
  "params": {
    "id": "9lhtFHpNfms"
  },
  "data": {
    "likeCount": 85000,
    "title": "Example video",
    "videoId": "9lhtFHpNfms",
    "viewCount": "1200000"
  },
  "meta": {
    "credits_charged": 1,
    "latency_ms": 420,
    "platform": "youtube",
    "resource": "video",
    "path": "/api/v1/youtube/video"
  }
}
```

## Links

- HTML docs: https://trysocify.com/docs/api/youtube/video
- SEO page: https://trysocify.com/youtube/video
- OpenAPI: https://trysocify.com/openapi.json
- Catalog: https://trysocify.com/catalog.json
