Skip to content

Quickstart: call the Future News API from Python

Sync

from futurenews import FutureNews

with FutureNews() as client:
    res = client.trending.list(limit=10)
    for item in res.items:
        print(item.model_dump())

Async

import asyncio
from futurenews import AsyncFutureNews


async def main():
    async with AsyncFutureNews() as client:
        print((await client.trending.list(limit=10)).items)


asyncio.run(main())

More endpoints: rank, events, calendar, Twitter, plus wallet and account (need a token).

Blocked by Cloudflare? See Errors & Cloudflare.

Automate it

Want a bot built on this data? Chipa bot development.

New here? Create your Future News account first.