API Documentation
Call the parse endpoint with your auth key. The system auto-detects the platform and returns video/image URLs.Available to active subscribers only.
My API Key
Log in to view your API Key
Log InAfter copying, append the target URL after url= (encode non-ASCII URLs).
Online Test
Click a button above to start testing...
Basic Info
| Base URL | https://onccg.com/api/v1 |
|---|---|
| Method | GET |
| Authentication | URL parameter key (auth key) |
| Response Format | JSON |
API is available to active subscribers only. Quota follows the same rules as the website parser.
Supported Platforms
The API matches website parsing capabilities and supports 500+ platforms. Pass a post URL and the system routes by domain automatically.
China Platforms
Global Social / Short Video
Global Video / Live
AI / Other
Examples above are common platforms; actual coverage is broader. If a link fails, retry later or try another link.
1. Parse API
/api/v1/parseRequest Parameters
| Parameter | Required | Description |
|---|---|---|
key | Yes | Auth key (API Key) |
url | Yes | Target post URL, URL-encoded |
Platform Detection
No platform parameter is required. Routing is automatic by domain. See Supported Platforms above.
Request Example
curl "https://onccg.com/api/v1/parse?key=your_auth_key&url=https%3A%2F%2Fv.douyin.com%2Fxxxxx%2F"
Success Response
{
"code": 200,
"message": "success",
"data": {
"platform": "general",
"title": "Video title",
"type": "video",
"cover": "https://...",
"videoUrl": "https://...",
"videos": [
{
"video": "https://...",
"quality": "HD"
}
],
"images": []
}
}
videoUrl is the primary video URL from upstream; videos maps to upstream videodata with quality fields. type may be video, images, or mixed.
2. Quota API
/api/v1/quotaRequest Parameters
| Parameter | Required | Description |
|---|---|---|
key | Yes | Auth key (API Key) |
Request Example
curl "https://onccg.com/api/v1/quota?key=your_auth_key"
Success Response (subscriber example)
{
"code": 200,
"message": "success",
"data": {
"type": "subscription",
"plan_type": "monthly",
"remaining_quota": 1000,
"daily_limit": 100,
"today_usage": 3,
"daily_remaining": 97,
"expires_at": "2026-08-01 12:00:00"
}
}
Error Codes
| code | Description |
|---|---|
| 200 | Success |
| 40001 | Invalid or missing API Key |
| 40002 | Missing or invalid URL parameter |
| 40301 | Insufficient quota or daily limit reached |
| 40302 | Not a subscriber or subscription expired |
| 42901 | Too many requests |
| 50001 | Parse failed |
| 50002 | Upstream parse service error |
Usage Notes
- API is for active subscribers only. Free users cannot call it.
- Both successful and failed parses consume subscription quota, same as the website.
- Keep your auth key secure. Reset it on this page if leaked.
- Avoid Chinese characters or spaces in URLs; use a fully URL-encoded address.