{"id":50733321,"url":"https://github.com/nitesht2/transcript-api","last_synced_at":"2026-06-10T11:01:21.949Z","repository":{"id":362573664,"uuid":"1214716432","full_name":"nitesht2/transcript-api","owner":"nitesht2","description":"API to transcribe TikTok and Instagram videos to text — paste a URL, get a transcript","archived":false,"fork":false,"pushed_at":"2026-06-04T21:35:45.000Z","size":5,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-06-04T23:12:35.511Z","etag":null,"topics":["api","fastapi","instagram","python","tiktok","transcription","whisper","yt-dlp"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nitesht2.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-04-19T00:24:26.000Z","updated_at":"2026-06-04T21:35:52.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/nitesht2/transcript-api","commit_stats":null,"previous_names":["nitesht2/transcript-api"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/nitesht2/transcript-api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nitesht2%2Ftranscript-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nitesht2%2Ftranscript-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nitesht2%2Ftranscript-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nitesht2%2Ftranscript-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nitesht2","download_url":"https://codeload.github.com/nitesht2/transcript-api/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nitesht2%2Ftranscript-api/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34149132,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-10T02:00:07.152Z","response_time":89,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["api","fastapi","instagram","python","tiktok","transcription","whisper","yt-dlp"],"created_at":"2026-06-10T11:01:21.130Z","updated_at":"2026-06-10T11:01:21.943Z","avatar_url":"https://github.com/nitesht2.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Transcript API\n\n**Paste a TikTok or Instagram video URL, get clean text back.** A small, self-hostable FastAPI service that downloads a short-form video and transcribes its audio locally with Whisper — no third-party transcription service, no per-minute fees.\n\n![FastAPI](https://img.shields.io/badge/FastAPI-009688?style=flat\u0026logo=fastapi\u0026logoColor=white)\n![Python](https://img.shields.io/badge/Python-3776AB?style=flat\u0026logo=python\u0026logoColor=white)\n![Whisper](https://img.shields.io/badge/faster--whisper-000000?style=flat\u0026logo=openai\u0026logoColor=white)\n![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)\n\n---\n\n## Architecture\n\n```mermaid\nflowchart LR\n    C[Client] --\u003e|POST /transcribe\u003cbr/\u003eX-API-Key| A[FastAPI app]\n    A --\u003e P{detect platform}\n    P --\u003e|tiktok / instagram| D[yt-dlp\u003cbr/\u003edownload audio]\n    D --\u003e W[faster-whisper\u003cbr/\u003etranscribe]\n    W --\u003e R[JSON: transcript,\u003cbr/\u003eword_count, platform]\n    R --\u003e C\n```\n\n## Endpoints\n\n| Method | Path | Description |\n|--------|------|-------------|\n| `POST` | `/transcribe` | Body `{ \"url\": \"...\" }` → returns the transcript, platform, word count, and method |\n| `GET` | `/health` | Liveness check → `{ \"status\": \"ok\" }` |\n\nAuth is via the `X-API-Key` header (set the `API_KEY` env var in production; defaults to `dev` locally).\n\n## Quick start\n\n```bash\ngit clone https://github.com/nitesht2/transcript-api.git\ncd transcript-api\npip install -r requirements.txt          # also needs ffmpeg + yt-dlp on PATH\n\nAPI_KEY=mykey uvicorn main:app --host 0.0.0.0 --port 8000\n```\n\nTranscribe a video:\n\n```bash\ncurl -X POST http://localhost:8000/transcribe \\\n  -H \"X-API-Key: mykey\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\"url\": \"https://www.tiktok.com/@user/video/123456789\"}'\n```\n\n```json\n{\n  \"url\": \"https://www.tiktok.com/@user/video/123456789\",\n  \"platform\": \"tiktok\",\n  \"transcript\": \"...\",\n  \"word_count\": 142,\n  \"method\": \"yt-dlp\"\n}\n```\n\n## Configuration\n\n| Env var | Default | Notes |\n|---------|---------|-------|\n| `API_KEY` | `dev` | Required header value in production |\n| `WHISPER_MODEL` | `base.en` | `tiny.en` for speed, `medium.en` for accuracy |\n\n## Tech stack\n\nFastAPI · Uvicorn · yt-dlp · faster-whisper · ffmpeg\n\nSupported platforms: TikTok and Instagram (Reels / video posts).\n\n## Deploy\n\n`deploy.sh` provisions the service on a Linux VPS — installs system + Python dependencies and registers a `systemd` unit so the API runs persistently and restarts on failure:\n\n```bash\nssh user@your-vps-ip\nAPI_KEY=yourkey bash deploy.sh\n```\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnitesht2%2Ftranscript-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnitesht2%2Ftranscript-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnitesht2%2Ftranscript-api/lists"}