Build a trending widget
A small widget on your site or app that shows the assets the market talks about most today.
You need: an API key (opens in a new tab) and a place on your page for a small list.
Get an API key
Create a key on the API keys (opens in a new tab) page and keep it in an environment variable, not in your code. Each request uses credits.


Call the trending endpoint
Call
get_trendingfrom your server, not from the browser, so the key stays private.

Cache for an hour
Keep the answer for an hour and serve it to your visitors from the cache. This saves credits.
Show the top five
List the top five with their rank and a link to the asset page. Compare with the Assets (opens in a new tab) page to check that it matches.
What you will see
A widget with the top five assets by attention, refreshed every hour.
Data used
get_trendingthrough the API (opens in a new tab) with one key.Limits
- Keep the key on your server.
- Say that the list shows attention, not advice.
More use cases
Rank coins by attention
See which coins the market talks about most right now and how each one ranks.
Make a "most talked about this week" list
A simple weekly list of the assets the market talks about most, for a newsletter, a video or a post.
See where attention moves
Attention can shift from one coin to another before the narrative does.
Compare coins in a conversation
Ask your assistant to compare two to five coins by how much they are discussed and get the answer in a table.