Skip to content

title: Future News rank API in Python: new, trending and ranked markets description: Use client.rank.list to fetch ranked Future News market lists (new, trending, by volume) from Python. Sync and async examples.


Rank list: rank.list

Fetches the ranked market lists behind the tabs on the Future News trending page (for example New or Trending). It is the same list shape as trending.list, with a few extra filters.

HTTP POST https://future.news/events/api/rank
Auth none
Returns RankResponse (.items, a list of entries; unknown fields kept)

Parameters

Pass them as keyword arguments or build a RankRequest.

Parameter Type Default Notes
rank_type str "trending" e.g. "new", "trending"
order_by str "volume24h" e.g. "create_timestamp" for newest first
limit int 100 1 to 100 (strict integer)
status list[str] ["active"]
categories, subcategories list[str] []
exclude_series bool False hide recurring series markets
exclude_tags list[str] [] tag ids to hide; omitted from the body when empty
market_status str \| None None omitted from the body when unset

Misspelled options raise ValueError before any request is sent.

Example (sync)

from futurenews import FutureNews

with FutureNews() as client:
    newest = client.rank.list(rank_type="new", order_by="create_timestamp", limit=20, exclude_series=True)
    for item in newest.items:
        print(item.model_dump())

Example (async)

import asyncio
from futurenews import AsyncFutureNews


async def main():
    async with AsyncFutureNews() as client:
        res = await client.rank.list(rank_type="new", limit=20)
        print(len(res.items))


asyncio.run(main())

Equivalent request

curl 'https://future.news/events/api/rank?from_app=future-web&os=web&app_lang=en-US' \
  -H 'content-type: application/json' \
  --data-raw '{"exclude_series":true,"rank_type":"new","categories":[],"subcategories":[],"status":["active"],"order_by":"create_timestamp","limit":100}'

The library adds the remaining query parameters (device_id, client_id, app_ver...) for you. If Cloudflare answers 403, see Errors & Cloudflare.


Related: Authentication · Errors & Cloudflare · All endpoints

Don't have a Future News account?

Sign up with our link. It's free for you and supports this library.

Build something with this data

Chipa dev team builds trading bots and tools: Bot development · ChipaX exchange · Chipa Editor · Discord