---
title: "Get Account by Username"
method: GET
path: "/live/{platform}/accounts/username/{username}"
tags: ["Live Data"]
---

# Get Account by Username

`GET /live/{platform}/accounts/username/{username}`

## Request

- Base URL: `https://viral.app/api/v1`
- URL: `https://viral.app/api/v1/live/{platform}/accounts/username/{username}`
- Auth: API key in header `x-api-key`

Fetches an account by its handle, with or without a leading @.

| Platform | Notes |
| --- | --- |
| TikTok | |
| Instagram | the post total is best effort and can be null |
| YouTube | the channel handle |
| Facebook | pages and public profiles; some profiles come without a bio |
| Snapchat | public profiles only; a personal account without one is refused |

Examples:
- `GET /live/instagram/accounts/username/nike`
- `GET /live/snapchat/accounts/username/nike`

Fields a platform does not publish are null. `region` is a hint: TikTok uses it as the country the lookup is made from, the other platforms ignore it.

Optional live endpoint. You do not need this endpoint for normal API integrations; prefer tracked accounts, tracked videos, analytics, projects, and Creator Hub endpoints when working with viral.app data.

⚠️ Consumes extra credits: 3 credits per request. Additional charges may apply.

Headers:
- X-Viral-Credits-Consumed
- X-Viral-Credits-Meter
- X-Viral-Credits-Benefited-Remaining
- X-Viral-Credits-Can-Purchase-Extra
- Retry-After (on 429 responses)

A page past the only one of a one-page lookup costs nothing: it carries X-Viral-Credits-Consumed: 0 and X-Viral-Credits-Meter, without the two balance headers.

## Path parameters

- `platform` 'facebook' | 'instagram' | 'tiktok' | 'youtube' | 'snapchat', required: Social media platform (facebook, instagram, tiktok, youtube, snapchat)
- `username` string, required: Platform username without a leading @ prefix

## Query parameters

- `region` string, nullable: Region code (2-letter ISO country code)

## Response `200`

OK

- object
  - `platform` 'facebook' | 'instagram' | 'tiktok' | 'youtube' | 'snapchat', required: Social media platform (facebook, instagram, tiktok, youtube, snapchat)
  - `platform_account_id` string, nullable, required: Native platform account id
  - `account_username` string, nullable, required
  - `account_display_name` string, nullable, required
  - `account_profile_picture_url` string, nullable: URL
  - `is_verified` boolean, nullable
  - `is_private` boolean, nullable
  - `follower_count` integer, nullable
  - `following_count` integer, nullable
  - `video_count` integer, nullable
  - `bio` string, nullable
  - `region` string, nullable: Region code (2-letter ISO country code)

## Other responses

- `400`: 400
- `401`: 401
- `402`: 402
- `403`: 403
- `404`: 404
- `408`: 408
- `429`: 429
- `500`: 500
- `502`: 502

---

[API](https://skmtc.dev/viral/apis/viral-app-api.md) · [All operations](https://skmtc.dev/viral/apis/viral-app-api/llms.txt) · [OpenAPI document](https://skmtc.dev/viral/apis/viral-app-api/revisions/31e97fa79ef1?raw)
