# Importly > Importly turns any video or audio link into files, transcripts and metadata. One API for your app, and your AI agent can build it in over MCP. It handles any media URL (YouTube, TikTok, X, Instagram, podcasts, and 1000+ other sites) and keeps working from production servers where downloads usually get blocked, without the bot checks or breakage you'd hit running it yourself. New accounts get $3.00 in free credits with no card required: https://www.importly.io/login?mode=signup. The API key is at https://www.importly.io/dashboard/api-key. ## Set up with your agent To have a coding agent set Importly up end to end (connect it, get the key in place without pasting it into chat, then build it into the app or run a test call), follow https://www.importly.io/setup.md. ## Connect via MCP The MCP server's main job is helping a coding agent build Importly into the user's app: get_integration_guide returns working code for their stack, and the media tools run the same jobs as the REST endpoints, so the agent can test real calls with the key the app will use. Hosted MCP server (Streamable HTTP): https://mcp.importly.io/mcp. Nothing to install. Coding agents authenticate with the API key as an `Authorization: Bearer ` header. Claude.ai, ChatGPT, and Claude Desktop add the URL as a custom connector and sign in with OAuth instead (no key). Claude Code: ```bash claude mcp add --transport http importly https://mcp.importly.io/mcp --header "Authorization: Bearer your_key" ``` Cursor and other clients that accept a remote URL and headers (JSON config; field names vary by client, e.g. Cline also needs `"type": "streamableHttp"`): ```json { "mcpServers": { "importly": { "url": "https://mcp.importly.io/mcp", "headers": { "Authorization": "Bearer your_key" } } } } ``` Tools: import_media / check_import (download to hosted storage, returns a direct media URL), transcribe_media / check_transcription (timestamped transcript, usually in one call: captions, or AI speech-to-text when there are none), get_metadata / check_metadata (formats, uploader, stats), get_basic_metadata / check_basic_metadata (fast title/duration/thumbnail), check_balance, get_integration_guide (code for building Importly into the user's app; no credits). Submit tools return a jobId; poll the matching check tool. ## Integrate Importly into an app When a user asks you to add Importly to their application, use the REST API at https://api.importly.io: - Auth: `Authorization: Bearer $IMPORTLY_API_KEY`. Read the key from an environment variable on the server; never hardcode it or ship it to the browser. - Jobs are async: `POST /import`, `POST /transcribe`, or `POST /metadata` with `{ "url": "..." }` returns `{ "success": true, "data": { "jobId": "..." } }`. - Results by webhook: pass `webhookUrl` to receive one POST when the job finishes. On success, result fields are flattened into `data` (e.g. `data.mediaUrl`, `data.text`), not nested under `result`. A failed job sends one webhook with `success: false` and `data.code` and `data.message`, so check `success` first. Deliveries aren't retried, so keep a polling fallback. - Results by polling: `GET /import/status?id=` (likewise `/transcribe/status`, `/metadata/status`) until `status` is `completed` or `failed`. Completed jobs nest fields under `result` (e.g. `result.mediaUrl`). - Errors: 401 bad key, 402 insufficient credits, 429 rate limited (back off and retry). Status endpoints allow 3,600 requests per hour per key (about 1/second), so poll every few seconds rather than in a tight loop. - Transcripts: send `"mode": "auto"` to `POST /transcribe` to use the captions, or speech-to-text when a video has none (cap it with `maxCostDollars`). Add `"wait": true` to get the finished transcript in the response when it's ready within 30 seconds; otherwise you get the `jobId` as usual. - Optional: deliver files straight to the user's own S3 bucket (see the S3 storage page below). - Pricing: $0.003 per metadata call or caption transcript, $0.01/min for speech-to-text, and about $2 per GB downloaded (a 10-minute 720p video is about $0.15). New accounts get $3 free credit. See https://www.importly.io/pricing. ## Guides - [Video downloads blocked on your server? Use a hosted API instead](https://www.importly.io/blog/downloads-blocked-on-server-hosted-api): why downloads fail on VPS, cloud and serverless hosts, the free fixes, and the one-request API version with code. - [Instagram reel download API](https://www.importly.io/blog/instagram-reel-download-api): let users paste a public reel link and get the video file in your app, with a webhook handler and the limits. - [TikTok video download API](https://www.importly.io/blog/tiktok-video-download-api): get the MP4 from any public TikTok link in your app, with the request, the webhook result, audio-only and the cost. - [Best YouTube transcript API](https://www.importly.io/blog/youtube-transcript-api): free library, transcript-only APIs and Importly compared, with prices and when each one fits. - [Video automation with n8n](https://www.importly.io/blog/video-automation-n8n): transcripts and file imports from an n8n workflow with the HTTP Request node. - [Why coding agents in cloud sandboxes can't download videos](https://www.importly.io/blog/coding-agent-sandbox-video-download): sandbox network rules and datacenter IP blocks, and what the app the agent builds should call instead. Full docs as a single markdown file: https://www.importly.io/docs/llms-full.txt ## Comparisons - [Supadata Alternatives in 2026: Transcript, Data and Download APIs Compared](https://www.importly.io/blog/supadata-alternatives): Seven options side by side, with sourced, dated prices: which ones return the video file, which handle videos without captions, and where each one wins. - [Cobalt Alternative: A Hosted Media API You Can Build On](https://www.importly.io/blog/cobalt-alternative): cobalt's hosted API isn't meant for third-party projects, so the real choice is self-hosting vs a hosted API. When to self-host cobalt, and when a hosted download API with S3 delivery, webhooks and transcripts fits. - [Importly vs Tornado API: Pricing and Scope](https://www.importly.io/blog/importly-vs-tornado): Tornado is cheaper per GB for bulk file delivery; Importly adds transcripts, metadata and an MCP server on one key, priced per task. Free to try, no card. - [api.video Alternative for URL-to-Media Workflows](https://www.importly.io/blog/api-video-alternative): Comparing api.video and Importly for teams focused on URL-to-media ingestion rather than broad video-platform scope. - [Best Apify Alternative for URL-to-Media Workflows](https://www.importly.io/blog/apify-alternative): Why a specialized ingestion API ships faster and stays more stable than broad crawling tools for media workflows. - [Importly vs Supadata: When You Need the Media, Not Just the Transcript](https://www.importly.io/blog/supadata-alternative): Importly vs Supadata, head to head: when a transcript-only API fits, and when your app or agent also needs the file, S3 delivery and webhooks. - [TranscriptAPI Alternative: Any Site, No Captions Needed](https://www.importly.io/blog/transcriptapi-alternative): When YouTube-only captions are enough, and when you need other sites, caption-less audio or the media file. Prices checked Nov 2026. - [ScrapeCreators Alternative: The Media File, Not Just the Data](https://www.importly.io/blog/scrapecreators-alternative): When social data and cheap caption transcripts fit, and when you need the video file in your bucket or caption-less audio transcribed. Prices checked Nov 2026. - [youtube-transcript.io Alternative: Pay per Transcript, Any Site](https://www.importly.io/blog/youtube-transcript-io-alternative): YouTube transcripts at $0.003 each with no monthly plan, plus other sites, caption-less audio and the media file. Prices checked Nov 2026. - [Mux Alternative for URL-Based Media Import](https://www.importly.io/blog/mux-alternative): When platform scope matters less than workflow fit — comparing Mux and Importly for URL-to-media ingestion. - [Shotstack Alternative for Media Ingestion](https://www.importly.io/blog/shotstack-alternative): If ingestion reliability and implementation speed are the priority, Importly is often the better-fit layer. - [Best Video Download APIs for Developers in 2026](https://www.importly.io/blog/video-downloader-api): Seven options compared with sourced, dated prices: which work from servers, which sites they cover, file or transcript, and where each one wins. ## Site guides - [YouTube Shorts Transcript API: Get the Text From a Shorts Link](https://www.importly.io/blog/youtube-shorts-transcript-api): Shorts links trip up watch-link parsers, many have only auto-generated captions and some have none. Get a timestamped transcript from any Shorts link in one call. - [Facebook Video Transcript API: Get the Text From a Video Link](https://www.importly.io/blog/facebook-video-transcript-api): The Graph API has no transcript endpoint and only covers videos your token can read. Get a timestamped transcript from any public Facebook video link in one call. - [Instagram Reel Transcript API: Get the Text From a Reel Link](https://www.importly.io/blog/instagram-reel-transcript-api): Instagram's API has no transcript field and a reel's caption isn't what was said. Get a timestamped transcript from any public reel link in one call. - [X (Twitter) Video Transcript API: Get the Text From a Post Link](https://www.importly.io/blog/twitter-video-transcript-api): The X API has no transcript endpoint. Get a timestamped transcript for any public X video post in one call, captions or not. - [TikTok Transcript API: Get the Text From Any TikTok Link](https://www.importly.io/blog/tiktok-transcript-api): What TikTok's own APIs cover, and one call that returns a timestamped transcript for any public TikTok, captions or not. - [Pinterest Video Download API: Get the File From a Pin Link](https://www.importly.io/blog/pinterest-video-download-api): Pinterest's API only returns video_url with restricted access. What the official route needs, and one Importly call that turns a video pin link into an MP4 and a transcript. - [Kick Clip Download API: Get the Video From a Clip Link](https://www.importly.io/blog/kick-clip-download-api): Kick's public API has no clips or videos endpoint. What it does cover, and one Importly call that turns a Kick clip link into an MP4 and a transcript. - [LinkedIn Video Download API: Get the File From a Post Link](https://www.importly.io/blog/linkedin-video-download-api): What LinkedIn's Videos API can fetch (only videos you own), why post pages hit a login wall on servers, and one API call for public post links. - [Loom Video Download API: Transcript or File From a Share Link](https://www.importly.io/blog/loom-video-download-api): What Loom's own SDKs cover, and one API call that turns a public Loom share link into a timestamped transcript or the video file. - [Facebook Video Download API: Get the File From a Link](https://www.importly.io/blog/facebook-video-download-api): What the Graph API can and can't fetch, why Facebook downloads hit a login wall on servers, and one API call for public video links. - [Dailymotion Video Download API: Get the File From a Link](https://www.importly.io/blog/dailymotion-video-download-api): Dailymotion's Data API returns stream URLs only to a video's owner and partners. The official route for your own videos, and one Importly call for any public link. - [Twitch Clip and VOD Download API: Get the Video From a Link](https://www.importly.io/blog/twitch-clip-download-api): Twitch's API returns clip files only to the channel's own broadcaster or editors, and VODs expire. The official route for your own channel, and one Importly call for any public clip or VOD. - [SoundCloud Download API: Audio and Transcripts From a Link](https://www.importly.io/blog/soundcloud-download-api): SoundCloud streams tracks in segments and keeps originals behind sign-in. The official route for your own tracks, and one Importly call for the audio and a transcript. - [Reddit Video Download API: Video With Sound From Any Link](https://www.importly.io/blog/reddit-video-download-api): Why Reddit downloads come out silent or 403 from servers, the free fix if you control the machine, and one API call for post, share and v.redd.it links. - [X (Twitter) Video Download API: Get the MP4 From a Post Link](https://www.importly.io/blog/twitter-video-download-api): The official API route if you have access, why scraping breaks on servers, and one API call for the MP4, audio or transcript of any X post. ## Docs ### Get started - [Introduction](https://www.importly.io/docs/introduction.md): Turn any video or audio link into files, transcripts and metadata. One API for your app, and your AI agent can build it in over MCP. - [Have your agent build Importly into your app](https://www.importly.io/docs/integrations/mcp.md): Connect Claude Code, Cursor, or any MCP client to Importly's hosted MCP server, and your agent builds downloads, transcripts, and metadata into your app with the same API key. - [Quick start](https://www.importly.io/docs/quick-start.md): Get a key, get a transcript back in one request, then import a file with cURL, Node.js, or Python and collect the result. - [Authentication](https://www.importly.io/docs/authentication.md): Bearer API key auth, keeping keys server-side, and rotating keys. - [Pricing & credits](https://www.importly.io/docs/billing.md): Pay-as-you-go prices for imports, metadata, and transcription, how charges and refunds work, and what happens at low balance. - [Changelog](https://www.importly.io/docs/changelog.md): Changes to the Importly API, the MCP server, and prices. ### Features - [Download media](https://www.importly.io/docs/features/downloads.md): Download video or audio from a public URL at the quality you choose and get a direct link, or have it copied to your own S3 bucket. - [Transcripts](https://www.importly.io/docs/features/transcripts.md): Get a timestamped transcript for any public video or audio URL. Importly uses the video's own captions when it has them and AI speech-to-text when it doesn't. - [Metadata](https://www.importly.io/docs/features/metadata.md): Read a video's title, duration, uploader, thumbnails, view counts, and available formats without downloading it. - [Deliver to your bucket](https://www.importly.io/docs/s3-storage.md): Deliver imports to your own S3, R2, B2, or Spaces bucket: bucket and IAM setup, usage, and troubleshooting. - [Webhooks](https://www.importly.io/docs/webhooks.md): Get job results pushed to your URL instead of polling: payload shape per job type, the failure webhook, signature verification, single delivery, and handler tips. - [Supported sites](https://www.importly.io/docs/features/supported-sites.md): Which URLs Importly can fetch: public videos and audio on YouTube, TikTok, X, Instagram, Vimeo, podcasts, and 1000+ other sites, plus direct media file links. ### Guides - [Add transcripts to a Next.js app](https://www.importly.io/docs/integrations/nextjs.md): A working Next.js App Router recipe: a user pastes a video link and gets the transcript back, with route handlers for the API call, polling, and a webhook for production. - [Add transcripts to a Python app](https://www.importly.io/docs/integrations/python.md): A working FastAPI recipe: a user sends a video link and gets the transcript back, with endpoints for the API call, polling, and a webhook for production. The same calls work in Flask or Django. - [Use Importly from n8n](https://www.importly.io/docs/integrations/n8n.md): Get transcripts, video files and metadata from any link in an n8n workflow with the built-in HTTP Request node: a Header Auth credential, a one-node transcript, and a file import with a webhook or a polling loop. - [Use Importly from Make](https://www.importly.io/docs/integrations/make.md): Get transcripts, video files and metadata from any link in a Make scenario with the built-in HTTP app: one module for a transcript, and a file import collected by a custom webhook. - [Use Importly from Zapier](https://www.importly.io/docs/integrations/zapier.md): Get transcripts, video files and metadata from any link in a Zap with Webhooks by Zapier: one Custom Request step for a transcript, and a file import collected by a Catch Hook Zap. - [Use Importly from Pipedream](https://www.importly.io/docs/integrations/pipedream.md): Get transcripts, video files and metadata from any link in a Pipedream workflow: one Node.js code step for a transcript, and a file import collected by an HTTP trigger. - [Save downloaded videos to your own bucket](https://www.importly.io/docs/integrations/save-to-bucket.md): A backend recipe in TypeScript: connect your S3, R2, B2 or Spaces bucket once, then every import your app starts lands in it, with a webhook that records where the file went. - [Import a batch of video links from your backend](https://www.importly.io/docs/integrations/batch-imports.md): A backend recipe in TypeScript for importing hundreds of video or audio links: a cost cap per file, a steady send rate, webhooks plus a sweep for missed ones, and which errors to retry. ### Recipes - [Download a TikTok video in Node](https://www.importly.io/docs/recipes/tiktok-video-node.md): Node.js code that takes a TikTok link, gets the MP4 through the Importly API and saves it to disk, with polling, error handling and the response you get back. - [Get a YouTube transcript in Next.js](https://www.importly.io/docs/recipes/youtube-transcript-nextjs.md): One Next.js App Router route handler that takes a YouTube link and returns the transcript text and timestamped segments, including videos with no captions. - [Download an Instagram reel in Python](https://www.importly.io/docs/recipes/instagram-reel-python.md): Python code that takes a public Instagram reel link, gets the MP4 through the Importly API and saves it, with polling, error handling and the response you get back. - [Show a preview for any video link in Node](https://www.importly.io/docs/recipes/video-link-preview-node.md): An Express route that turns a pasted video link into a preview card: title, thumbnail, length and whether it's live, with polling, caching and the errors to handle. - [Transcribe new podcast episodes from an RSS feed in Python](https://www.importly.io/docs/recipes/podcast-rss-transcripts-python.md): A Python script you run on a schedule: it reads a podcast's RSS feed, sends each new episode to speech-to-text with a cost cap, and stores the transcript and timestamps in SQLite, once per episode. ### AI agents - [MCP tools](https://www.importly.io/docs/integrations/mcp-tools.md): Every tool on Importly's MCP server: what it does, its inputs, what it costs, and how an agent collects the result of an async job. - [Build with your agent](https://www.importly.io/docs/integrations/build-with-your-agent.md): Have your coding agent build Importly downloads, transcripts, or metadata into your app over the MCP server, with the same API key. - [Use Importly from Lovable, Bolt or Replit](https://www.importly.io/docs/integrations/app-builders.md): Add video downloads, transcripts or metadata to an app you're building in Lovable, Bolt or Replit: store the API key as a secret and call the REST API from a backend function. ### Errors & limits - [Errors & rate limits](https://www.importly.io/docs/error-handling.md): Status codes, error shapes, per-key rate limits, rate-limit headers, and when to retry. ### Error codes - [Unauthorized](https://www.importly.io/docs/errors/unauthorized.md): The request had no API key, or the key isn't valid. HTTP 401, code UNAUTHORIZED. - [Insufficient credits](https://www.importly.io/docs/errors/insufficient-credits.md): Your balance is too low to start the job, or to pay for the whole download. HTTP 402, code INSUFFICIENT_BALANCE or FILE_TOO_LARGE. - [Rate limited](https://www.importly.io/docs/errors/rate-limited.md): You sent more requests than your hourly limit allows, or have too many jobs in progress. HTTP 429, code RATE_LIMITED. - [Invalid URL](https://www.importly.io/docs/errors/invalid-url.md): The url is missing, malformed, not a media page, or a playlist. HTTP 400 or a failed job, code INVALID_URL or PLAYLIST_NOT_SUPPORTED. - [Invalid request](https://www.importly.io/docs/errors/invalid-request.md): A parameter is missing or has a value Importly can't use. HTTP 400, code INVALID_REQUEST. - [Not found](https://www.importly.io/docs/errors/not-found.md): No job with that ID belongs to your API key, there are no saved settings, or the path isn't an endpoint. HTTP 404, code NOT_FOUND. - [Media unavailable](https://www.importly.io/docs/errors/media-unavailable.md): The job was accepted, but the media can't be fetched: it's private, deleted, age-restricted, region-locked, needs a login, or is still live. - [Source throttled](https://www.importly.io/docs/errors/source-throttled.md): The platform refused the request for a moment. Retrying a little later usually works. Code SOURCE_THROTTLED on a failed job. - [Source unreachable](https://www.importly.io/docs/errors/source-unreachable.md): The source didn't respond in time, so the job was stopped. Try again later. Code SOURCE_UNREACHABLE on a failed job. - [Source response too large](https://www.importly.io/docs/errors/source-response-too-large.md): The page at the link sent far more data than a media page does, so the job was stopped. Check the link. Code SOURCE_RESPONSE_TOO_LARGE on a failed job. - [Transcription needs speech-to-text](https://www.importly.io/docs/errors/transcription-provider-required.md): The video has no captions and no provider was set, so the job stopped with a price quote instead of charging you. Code TRANSCRIPTION_PROVIDER_REQUIRED. - [Over your cost cap](https://www.importly.io/docs/errors/max-cost-exceeded.md): The job would cost more than the maxCostDollars you set, so it was turned down before downloading. Code MAX_COST_EXCEEDED. - [Server error](https://www.importly.io/docs/errors/server-error.md): Something failed on Importly's side. HTTP 500 or a failed job, code INTERNAL_ERROR, BILLING_UNAVAILABLE, or UNKNOWN_ERROR. Retry with backoff. ### Using the API - [API reference](https://www.importly.io/docs/api-reference.md): Base URL, Bearer authentication, the response envelope, status codes, and the async job model of the Importly REST API. ### Media - [Import media](https://www.importly.io/docs/endpoints/import.md): Download media from a URL to hosted storage or your S3 bucket, with quality options, optional transcript, and status polling. - [Get import status](https://www.importly.io/docs/endpoints/import-status.md): Poll an import job until it's completed or failed. Completed jobs carry the download link, file details, and cost. ### Transcripts - [Transcribe media](https://www.importly.io/docs/endpoints/transcribe.md): Transcribe any media URL: source captions, built-in AI speech-to-text, or your own provider key; timestamped segments. - [Get transcription status](https://www.importly.io/docs/endpoints/transcribe-status.md): Poll a transcription job until it's completed or failed. Completed jobs carry the text and timestamped segments. ### Metadata - [Get metadata](https://www.importly.io/docs/endpoints/metadata.md): Full media metadata (formats, uploader, thumbnails, stats) without downloading. - [Get metadata status](https://www.importly.io/docs/endpoints/metadata-status.md): Poll a metadata job until it's completed or failed. Completed jobs carry the source's full metadata. - [Get basic metadata](https://www.importly.io/docs/endpoints/basic-metadata.md): Fast title, duration, and thumbnail lookup for a URL. - [Get basic metadata status](https://www.importly.io/docs/endpoints/basic-metadata-status.md): Poll a basic metadata job until it's completed or failed. Completed jobs carry the title, duration, and thumbnail. - [Get metadata (GET form)](https://www.importly.io/docs/endpoints/metadata-get.md): Start a full metadata job with the URL as a query parameter. Same as POST /metadata, without a webhook. - [Get basic metadata (GET form)](https://www.importly.io/docs/endpoints/basic-metadata-get.md): Start a basic metadata job with the URL as a query parameter. Same as POST /metadata/basic, without a webhook. ### Account - [Get balance](https://www.importly.io/docs/endpoints/balance.md): Check your remaining Importly credit balance via the API. ### Account settings - [Get S3 storage settings](https://www.importly.io/docs/endpoints/get-s3-storage.md): Read your saved S3-compatible storage settings. The secret access key is never returned. - [Save S3 storage settings](https://www.importly.io/docs/endpoints/save-s3-storage.md): Save the bucket and credentials that imports with store: true upload to. The connection is tested before saving. - [Delete S3 storage settings](https://www.importly.io/docs/endpoints/delete-s3-storage.md): Remove your saved S3 storage settings. Imports with store: true stop uploading to your bucket. - [Test S3 storage settings](https://www.importly.io/docs/endpoints/test-s3-storage.md): Check bucket credentials by uploading a small test file, without saving them. - [List transcription provider keys](https://www.importly.io/docs/endpoints/list-transcription-providers.md): List the speech-to-text providers you've saved a key for. Keys are never returned. - [Save a transcription provider key](https://www.importly.io/docs/endpoints/save-transcription-provider.md): Store your AssemblyAI, Deepgram, or OpenAI key so transcriptions with that provider don't need apiKey. - [Delete a transcription provider key](https://www.importly.io/docs/endpoints/delete-transcription-provider.md): Remove a saved speech-to-text provider key. ### Webhook payloads - [Import completed webhook](https://www.importly.io/docs/endpoints/webhooks/import.md): The payload Importly POSTs to your webhookUrl when an import succeeds. - [Transcription completed webhook](https://www.importly.io/docs/endpoints/webhooks/transcribe.md): The payload Importly POSTs to your webhookUrl when a transcription succeeds. - [Metadata completed webhook](https://www.importly.io/docs/endpoints/webhooks/metadata.md): The payload Importly POSTs to your webhookUrl when a metadata job succeeds. - [Basic metadata completed webhook](https://www.importly.io/docs/endpoints/webhooks/basic-metadata.md): The payload Importly POSTs to your webhookUrl when a basic metadata job succeeds.