Examples
Update Settings
Configure YouTube Transcript Scraper settings
The v1 API, for batchesSquids, tasks and runs: many calls on a schedule, delivered where you work. For one call that answers in seconds, use the API v2.
POST
https://api.lobstr.io/v1/squids/{squid_hash}Configure your YouTube Transcript Scraper squid settings.
Headers
AuthorizationstringheaderrequiredYour API authentication token. Value: Token YOUR_API_KEY
Content-TypestringheaderrequiredMust be application/json. Value: application/json
Squid Parameters
| Parameter | Type | Default | Description |
|---|---|---|---|
| url | string | — | YouTube video, playlist, or channel URL |
| language | string | original | Caption language to download. 'original' uses the video's default language; 'en', 'fr', etc. downloads a specific language |
| include_auto_generated | boolean | true | Also download auto-generated (speech-to-text) tracks |
| max_results | integer | — | Maximum videos collected for a playlist or channel URL |
Code Examples
curl -X POST "https://api.lobstr.io/v1/squids/YOUR_SQUID_HASH" \ -H "Authorization: Token YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{"params": {"language": "en", "include_auto_generated": true, "max_results": 50}}'
Response
201
{"params": {"language": "en", "include_auto_generated": true, "max_results": 50}}