mirror of
https://github.com/Shineii86/AniKotoAPI.git
synced 2026-10-22 10:55:10 +00:00
docs: Update all documentation for v2.2.0 — 38 endpoints, streaming resolver, proxy
README.md: - Version badge: 2.1.0 → 2.2.0 - Endpoint count: 33 → 38 - Feature table: added stream URL resolution, M3U8 proxy, season/epMin/epMax filters - Streaming section: added /stream/resolve, /stream/qualities, /stream/proxy docs - Project structure: updated controller/extractor/helper file lists - Dependencies: removed cors, updated dep list - Changelog highlights: added v2.2.0 entry - Completed checklist: added 38 endpoints, streaming resolver, proxy, diagnostic sweep docs/endpoints.md: - Added 8 new endpoint sections: upcoming, top-rankings, recently-updated, completed, stream/resolve, stream/qualities, stream/proxy, stream/ts-proxy docs/streaming.md: - Added Stream URL Resolution section (Step 4) - Added M3U8 quality parsing docs - Added M3U8 proxy docs with CORS-free playback explanation - Updated troubleshooting table docs/architecture.md: - Updated project structure with all new files (streamResolver, parseListItem, etc.) - Updated streaming flow diagram with resolver/proxy steps - Updated dependencies table docs/examples.md: - Added curl examples for upcoming, top-rankings, recently-updated, completed - Added stream resolver, qualities, proxy examples CHANGELOG.md: - Updated v2.2.0 entry with M3U8/TS proxy, mirror fix, all bug fixes agents/: - Updated api-tester.md: 36 → 38 endpoints - Updated technical-writer.md: 36 → 38 endpoints - Updated performance-benchmarker.md: 36 → 38 endpoints
This commit is contained in:
+59
-1
@@ -251,7 +251,65 @@ player.source = {
|
||||
| "No episodes found" | Check the anime ID is correct (use `/api/search` first to find slug, then use animeId) |
|
||||
| "No servers found" | The `server_ids` may be invalid, try another episode |
|
||||
| Stream URL 403 | Some servers require specific referrer headers |
|
||||
| CORS error | Use a proxy or access from server-side |
|
||||
| CORS error | Use `/api/stream/proxy` endpoint to proxy M3U8 playlists |
|
||||
|
||||
---
|
||||
|
||||
## Stream URL Resolution (v2.2.0)
|
||||
|
||||
The `/api/stream` endpoint returns an **embed URL** (e.g., `vidtube.site/stream/...`). To get the **actual video URL** (m3u8/mp4), use the resolver:
|
||||
|
||||
### Step 4: Resolve Embed URL to Video URL
|
||||
|
||||
```bash
|
||||
# Resolve embed URL to actual stream URL
|
||||
curl "https://anikototvapi.vercel.app/api/stream/resolve?id=MTF1dkFtaW9BRTZPbzJJRElFZUZr..."
|
||||
```
|
||||
|
||||
```json
|
||||
{
|
||||
"success": true,
|
||||
"results": {
|
||||
"url": "https://vid-tube.site/hls/b32de9d4a3230c95f52948373e6e1549.m3u8",
|
||||
"type": "hls",
|
||||
"server": "HD-1",
|
||||
"subtitles": []
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
### Get Quality Options
|
||||
|
||||
```bash
|
||||
curl "https://anikototvapi.vercel.app/api/stream/qualities?url=https://example.com/playlist.m3u8"
|
||||
```
|
||||
|
||||
```json
|
||||
{
|
||||
"success": true,
|
||||
"results": {
|
||||
"qualities": [
|
||||
{ "url": "https://example.com/360.m3u8", "quality": "360p", "width": 640, "height": 360 },
|
||||
{ "url": "https://example.com/720.m3u8", "quality": "720p", "width": 1280, "height": 720 }
|
||||
]
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
### M3U8 Proxy (CORS-Free Playback)
|
||||
|
||||
Browser video players often can't fetch M3U8 playlists directly due to CORS. Use the proxy:
|
||||
|
||||
```bash
|
||||
# Proxy rewrites all relative URLs to go through our API
|
||||
curl "https://anikototvapi.vercel.app/api/stream/proxy?url=https://example.com/playlist.m3u8"
|
||||
```
|
||||
|
||||
The proxy:
|
||||
1. Fetches the M3U8 playlist
|
||||
2. Rewrites relative `.m3u8` URLs → `https://anikototvapi.vercel.app/api/stream/proxy?url=...`
|
||||
3. Rewrites `.ts` segment URLs → `https://anikototvapi.vercel.app/api/stream/ts-proxy?url=...`
|
||||
4. Returns the rewritten M3U8 content with CORS headers
|
||||
|
||||
---
|
||||
|
||||
|
||||
Reference in New Issue
Block a user