cobalt

cobalt api

this directory includes the source code for cobalt api. it’s made with express.js and love!

running your own instance

if you want to run your own instance for whatever purpose, follow this guide. we recommend to use docker compose unless you intend to run cobalt for developing/debugging purposes.

accessing the api

there is currently no publicly available pre-hosted api. we recommend deploying your own instance if you wish to use the cobalt api.

you can read the api documentation here.

[!WARNING] the v7 public api (/api/json) will be shut down on november 11th, 2024. you can access documentation for it here.

supported services

this list is not final and keeps expanding over time. if support for a service you want is missing, create an issue (or a pull request πŸ‘€).

service video + audio only audio only video metadata rich file names
bilibili βœ… βœ… βœ… βž– βž–
bluesky βœ… βœ… βœ… βž– βž–
dailymotion βœ… βœ… βœ… βœ… βœ…
instagram βœ… βœ… βœ… βž– βž–
facebook βœ… ❌ βœ… βž– βž–
loom βœ… ❌ βœ… βœ… βž–
ok.ru βœ… ❌ βœ… βœ… βœ…
pinterest βœ… βœ… βœ… βž– βž–
reddit βœ… βœ… βœ… ❌ ❌
rutube βœ… βœ… βœ… βœ… βœ…
snapchat βœ… βœ… βœ… βž– βž–
soundcloud βž– βœ… βž– βœ… βœ…
streamable βœ… βœ… βœ… βž– βž–
tiktok βœ… βœ… βœ… ❌ ❌
tumblr βœ… βœ… βœ… βž– βž–
twitch clips βœ… βœ… βœ… βœ… βœ…
twitter/x βœ… βœ… βœ… βž– βž–
vimeo βœ… βœ… βœ… βœ… βœ…
vk videos & clips βœ… ❌ βœ… βœ… βœ…
youtube βœ… βœ… βœ… βœ… βœ…
emoji meaning
βœ… supported
βž– impossible/unreasonable
❌ not supported

additional notes or features (per service)

| service | notes or features | | :——– | :—– | | instagram | supports reels, photos, and videos. lets you pick what to save from multi-media posts. | | facebook | supports public accessible videos content only. | | pinterest | supports photos, gifs, videos and stories. | | reddit | supports gifs and videos. | | snapchat | supports spotlights and stories. lets you pick what to save from stories. | | rutube | supports yappy & private links. | | soundcloud | supports private links. | | tiktok | supports videos with or without watermark, images from slideshow without watermark, and full (original) audios. | | twitter/x | lets you pick what to save from multi-media posts. may not be 100% reliable due to current management. | | vimeo | audio downloads are only available for dash. | | youtube | supports videos, music, and shorts. 8K, 4K, HDR, VR, and high FPS videos. rich metadata & dubs. h264/av1/vp9 codecs. |

license

cobalt api code is licensed under AGPL-3.0.

this license allows you to modify, distribute and use the code for any purpose as long as you:

acknowledgements

ffmpeg

cobalt heavily relies on ffmpeg for converting and merging media files. it’s an absolutely amazing piece of software offered for anyone for free, yet doesn’t receive as much credit as it should.

you can support ffmpeg here!

ffmpeg-static

we use ffmpeg-static to get binaries for ffmpeg depending on the platform.

you can support the developer via various methods listed on their github page! (linked above)

youtube.js

cobalt relies on youtube.js for interacting with the innertube api, it wouldn’t have been possible without it.

you can support the developer via various methods listed on their github page! (linked above)

many others

cobalt also depends on:

…and many other packages that these packages rely on.