I Built an AI-Powered Trend Analysis Tool Using the Virlo API (Here's How It Works)
Source: Dev.to
So here’s the thing
My friend was trying to grow his motivational page through trends. He kept telling me how he missed trends every time. By the time he noticed something was trending, it was already past its peak. He’d see creators hitting millions of views on a topic he was planning to cover, but by the time he posted, the moment had passed.
I started looking into how to catch trends earlier. The tools he was using just showed him what was already popular. They’d say “this hashtag has 2.3 million posts,” but that didn’t help him decide what to do next.
- Should he use it?
- Was it too competitive already?
- Was there a better angle?
The data never answered those questions.
The problem wasn’t a lack of data. It was a lack of meaning.
I don’t love theory. When something bothers me, I build things. So I decided to make something small that would actually help—a tool that turns trends into actionable next steps, rather than just showing numbers.
The gap between seeing trends and using them
Most tools that show you trending content do exactly that: they show you what’s trending. That’s it.
- Hashtag analytics platforms tell you which tags have the most posts.
- Video dashboards show you view counts.
- Trend aggregators surface topics with big spikes.
All useful information, but they stop there.
Most dashboards are built for looking at data, not for making decisions with it. They show rows, columns, and filters, but they don’t tell you what to do next.
Creators think differently. They want to know:
- What should I post today?
- What hashtags should I use?
- How can I connect this trend to my niche?
- When should I post for maximum reach?
I wanted something that behaved more like a thinking partner—something that would answer the question creators actually ask: what should I do next?
So I built the thing I wished existed
I called it ContentCompass. It helps you navigate trends. That’s it.
I built it with Python and Streamlit. The reason is simple: it’s fast!
Streamlit lets you build interactive web apps in Python without dealing with frontend frameworks. You write Python, you get a UI. For a side project, that’s perfect. I could build something functional in hours instead of days or weeks.
How it works
The app has four layers:
1. Awareness layer – The Trend Hub
- Shows what’s happening right now across platforms.
- Organises trends into three buckets: hottest, stable, and emerging.
- That categorisation matters because different trends require different strategies.

2. Context layer – The Video Vault
- Shows what’s actually winning with real embedded videos.
- You can watch them, see how they’re structured, and notice patterns.
- Includes the hashtags that made those videos successful.

3. Planning layer – The Weekly Blueprint
- Turns trends into a five‑day content plan.
- Suggests specific video ideas, hooks, hashtag strategies, and posting times.
- Instead of staring at a blank calendar, you get five starting points.

4. Execution layer – The Brief Creator
- Turns any trend or idea into a shareable brief.
- Includes why the trend matters, what format to use, which hashtags to choose, and when to post.
- The kind of document you’d send to an editor or client.

Each layer builds on the last:

Why AI?
Turning patterns into plans requires actual thinking. You can’t just automate trend detection, but you can automate the translation from “this is trending” to “here’s how to use it.”
I used Google’s Gemini 3 Flash model for the content‑generation parts (weekly plans and briefs)—the parts that need reasoning, not just data lookup.
What I deliberately didn’t automate
- Video selection
- Hashtag‑strategy selection
Those are judgment calls. The app gives you options, but you make the final decision. That restraint was intentional.
# Automation vs. Data
> “Much automation feels like a black box. Too little feels like a data dump.”
None of this works without good data underneath. This is where **Virlo** did the heavy lifting.
Where the data comes from
When I started building this, I had options:
- Scrape social platforms directly.
- Use multiple APIs and stitch them together.
- Build my own aggregation system.
All of those sounded painful.
- Scraping breaks constantly.
- Multiple APIs mean multiple integrations and multiple points of failure.
- Building my own aggregation system means maintaining infrastructure I don’t want to maintain.
What I actually needed was reliable trend data across platforms—trends that actually mean something, hashtag data that’s consistent, and video‑performance metrics I could trust. That’s what Virlo provides.
Finding Virlo’s API changed how I built this project.
Why Virlo?
- World’s largest short‑form data aggregator – analyzing 1.5 M videos across TikTok, YouTube Shorts, and Instagram Reels.
- 268+ trends emerging every 24 hours.
- 1,700+ teams worldwide rely on it.
This wasn’t just another API; it’s actual infrastructure.
Real data from real platforms
Virlo’s API connects to TikTok, YouTube, Instagram Reels, and more. You’re not getting scraped data or estimates—you’re getting actual trend signals that platforms are generating right now. The data refreshes twice daily.
- Trends endpoint → powers the Trend Hub.
- Hashtags endpoint → provides analytics and stats.
- Videos endpoint → surfaces top‑performing content.
Cross‑platform matters
Aggregating across TikTok, YouTube Shorts, and Instagram Reels helps avoid tunnel vision and gives a fuller picture of what’s resonating.
API usability
The API documentation is clear and straightforward. It uses a credit‑based pricing model:
- Trends cost more than hashtags.
- Videos cost more than niche lookups.
That structure forced me to design smarter: I couldn’t just refresh data constantly—I had to cache intelligently and only fetch what users actually need.
Bottom line for builders
If you’re working on anything that needs trend data or social analytics, Virlo is worth checking out.
What I learned building this
This wasn’t really about trends. It was about thinking clearly when everyone else is shouting numbers. Trends were just the excuse.
When you’re early on something—whether it’s a creator account or a side business—clarity is everything. But clarity doesn’t come from more data; it comes from better ways of processing data.
ContentCompass is just one way. Not the only way. Probably not even the best way. But it’s the one I needed.
If something feels fuzzy, don’t wait for clarity. Build a lens. Even a small one.
Because…
Clarity often shows up after you ship.
📝 Table of Contents
🧐 About
ContentCompass is a creator‑focused trend‑intelligence and content‑planning tool built with Python and Streamlit. It offers two operating modes:
| Mode | Description |
|---|---|
| Demo Mode | Uses locally‑generated JSON sample data; no external API calls. |
| Live Mode | Connects to the Virlo API with BYOK authentication for real‑time data. |
The app helps creators:
- Discover trending content and emerging topics.
- Optimize hashtag strategies.
- Generate actionable content briefs with Gemini AI.
Key Features
- Trend Hub – Explore the hottest, most stable, and emerging trends.
- Hashtag Lab – Generate strategic hashtag combinations (safe, high‑reach, niche, etc.).
- Content Scout – Identify niche ideas and top‑performing videos.
- Weekly Planner – Build a weekly content calendar with AI‑generated ideas.
- Brief Builder – Create professional briefs for teams, complete with copy, hashtags, and visual suggestions.
Try it out!
- Code:
- Live demo:
