crawlfetch
Getting started

Quickstart

From zero to a stored video file in four steps.

1. Create an account#

Sign up for free. New accounts get 1,000 credits ($1), and the Free plan adds 500 every month. No card needed.

2. Create an API key#

In the dashboard, open API keys, create a key with the resolve scope and copy it. It is shown once. Store it on your server as CRAWLFETCH_KEY.

Keep keys on the server
Never put an API key in a browser, mobile app or public repository. Anyone with the key can spend your credits.

3. Make a request#

Call the endpoint for your platform with the video URL. The first request for a video can take a while because the file is fetched and stored, so use a timeout of about 300 seconds.

curl "https://api.crawlfetch.com/v1/youtube?url=https%3A%2F%2Fyoutu.be%2Faqz-KE-bpKQ" \
-H "Authorization: Bearer $CRAWLFETCH_KEY"

4. Read the response#

downloadUrl points at the stored file. credits tells you what the request cost. All fields are listed under ResolvedVideo.

response.json
200 OK
{
"service": "youtube",
"id": "aqz-KE-bpKQ",
"title": "Big Buck Bunny 60fps 4K - Official Blender Foundation Short Film",
"channel": "Blender",
"durationSec": 635,
"thumbnail": "https://i.ytimg.com/vi/aqz-KE-bpKQ/hqdefault.jpg",
"bestQuality": "720p",
"formats": [
{
"id": "r2_720p",
"label": "720p",
"container": "mp4",
"kind": "video",
"sizeMb": 18.4,
"url": "https://media.crawlfetch.com/grabcast/youtube/aqz-KE-bpKQ/720p.mp4"
}
],
"downloadUrl": "https://media.crawlfetch.com/grabcast/youtube/aqz-KE-bpKQ/720p.mp4",
"audioUrl": "",
"resolvedInMs": 9120
}