24ur-api
Unofficial 24ur API
Unofficial 24ur API
To install packages from this channel, you must first login at the command line:
anaconda loginYou can then use the channel temporarily with conda or add it to your .condarc file for configured ongoing access. Learn more
pip install 24ur-api
pip install 24ur-api[video]
nix build .#default
nix develop
from api_24ur import client
cl = client.Client()
# Get article by URL with 10 comments
article = await cl.get_article_by_url(url='<article_url>', num_comments=10)
# Download the first video of article with bitrate lower than 2000000b to current dir
await cl.download_video(stream_url=article.videos[0].url, download_path='.', max_bitrate=2000000)
# Or get bytes
await cl.download_video_bytes(stream_url=article.videos[0].url, max_bitrate=2000000)
Summary
Unofficial 24ur API
Last Updated
May 1, 2026 at 16:41
License
MIT