Python SDK
Python SDK
Official Python library for SupaCrawlX. Supports Python 3.8+ with full type hints and all API endpoints.
Installation
Quick Start
All Methods
Transcripts
client.transcript(url, lang=None, mode="auto", timestamps=False)→ TranscriptResponseclient.youtube.transcript(url, lang=None, mode="auto")→ TranscriptResponseclient.youtube.batch_transcript(urls, lang=None)→ List[BatchTranscriptItem]YouTube
client.youtube.search(q, limit=10)→ List[VideoResult]client.youtube.channel(url_or_id)→ ChannelResponseclient.youtube.playlist(url_or_id)→ PlaylistResponseWeb
client.web.scrape(url, format="markdown")→ ScrapeResponseclient.web.crawl(url, max_pages=10)→ Jobclient.web.map(url)→ MapResponseOther
client.metadata(url)→ MetadataResponseclient.video.analyze(url, prompt=None, schema=None)→ Jobclient.jobs.get(job_id)→ JobError Handling
Configuration
api_keystrYour SupaCrawlX API key (required)base_urlstrAPI base URL (default: https://api.supacrawlx.com)timeoutintRequest timeout in seconds (default: 30)