How to Use Trending Topics in HubSpot Content Planning
Use TrendsAGI trend signals with HubSpot topic clusters, Blog Research Agent outlines, signed webhooks and Python SDK calls in a repeatable workflow.

To use trending topics in HubSpot content planning, treat HubSpot as the place to organize, brief, publish, and review content; live trend data is an external input. HubSpot's developer platform supports APIs, apps, developer tooling, CMS, UI extensions, workflows, webhooks, custom actions and AI capabilities on its Smart CRM. The sources used here do not confirm an official HubSpot trending-topics API or a plan-specific real-time trend feed. The practical workflow: detect a trend in TrendsAGI, filter it against your topic clusters, write a one-page content brief, send the signal into HubSpot through a workflow, webhook or custom action, then use HubSpot's topic planning and Blog Research Agent to shape the page or post.
This walkthrough shows the exact TrendsAGI endpoints and SDK calls, the signed webhook path, and the editorial guardrails that keep you from publishing every spike. It also separates HubSpot's native keyword and topic-cluster features from real-time trend detection, because they answer different questions.
What HubSpot can and cannot do with trending topics
HubSpot Knowledge Base topic planning guidance says a topic's pillar page and subtopic content can be HubSpot-hosted pages or blog posts, or URLs hosted outside HubSpot. It also says internal links between pillar pages and subtopic content help search engines understand what a site is about and the importance of each page. That structure is what you feed with trend signals.
HubSpot's Blog Research Agent, documented in a January 2026 INSIDEA guide, is part of HubSpot's AI content assistant toolkit and suggests blog topics and outlines from keywords. That is useful for shaping a content brief after you have a trend. It is not confirmed to use real-time trend data, and its plan availability, quotas, export limits and API access are not confirmed in the sources used here.
The Topics SEO tool is described in a 2021 Impulse Creative guide as available only to Marketing Hub Professional and Enterprise accounts and CMS Hub Professional and Enterprise accounts; that guide says the tool shows Top Queries, meaning what people searched to find an article. The current 2026 UI path and availability are not confirmed, so verify the tool in your account before promising it to stakeholders.
No official HubSpot trending-topics API, endpoint, SDK method, MCP server or plan-specific trend-data feature is confirmed by the sources used here. There is also no confirmed native HubSpot integration with TrendsAGI. The integration below is an external trend signal feeding HubSpot surfaces that HubSpot documents: APIs, workflows, webhooks and custom actions.
Step 1: Write the trend-to-content rules before connecting anything
Start with a content brief template. This keeps the integration from turning into a firehose. Use the TrendsAGI fields that exist: trend name, category, volume, velocity, growth, AI summary, key themes, sentiment, audience and marketing angles. Velocity is a measured snapshot rate of posts per hour from stored snapshots, not a forecast or unique-user count. Recommendation confidence measures evidence completeness, not probability of success.
| Brief field | Why it matters | Source |
|---|---|---|
| Trend name and category | Gives the editor a clear signal to accept, watch or reject. | TrendsAGI trend record |
| Volume, velocity and growth | Shows measured attention and movement, not a forecast. | TrendsAGI trend record |
| AI summary, key themes, sentiment, audience, marketing angles | Explains the trend and gives usable angles for the draft. | TrendsAGI AI insights |
| Recommendation confidence | Shows evidence completeness, not chance of success. | TrendsAGI recommendation |
| Cluster fit | Connects the trend to a pillar and subtopic before writing. | HubSpot topic planning |
| Editor decision and review date | Forces human judgment and a follow-up checkpoint. | Your editorial process |
Add two human fields: editor decision (accept, watch, reject) and cluster fit (which pillar and subtopic it belongs to). If you cannot name the cluster, the trend is not ready for HubSpot.
Step 2: Pull live trend signals from TrendsAGI
Use the REST API for a quick check or the Python SDK for a repeatable job. Keep the key in an environment variable; never paste it into HubSpot notes or code.
curl -s 'https://api.trendsagi.com/api/trends?category=Technology&sort_by=velocity&limit=5' -H 'X-API-Key: $TRENDSAGI_API_KEY'
Then request AI insights for a trend ID returned by that call:
curl -s 'https://api.trendsagi.com/api/trends/$TREND_ID/ai-insights' -H 'Authorization: Bearer $TRENDSAGI_API_KEY'
The Python SDK path is cleaner for scheduled jobs. Install version 0.12.0 or later and use the agenttools if your team already runs agents; for this HubSpot workflow, stick to the REST API and Python SDK so the data path stays simple.
Step 3: Send the trend signal into HubSpot
HubSpot's developer platform supports workflows, webhooks and custom actions to automate the next step when data updates. Choose one pattern based on who owns the work. A no-code team can use a signed TrendsAGI webhook that calls a HubSpot workflow webhook or custom action. A RevOps team can poll the REST API and write a note or custom object through HubSpot's documented APIs. A developer team can build an app card that shows the trend brief beside a record.
The webhook path is fastest to test. Create a subscription with a URL you control, then send a test delivery before activating it. The delivery body field list is not fixed in this guide; send a test delivery and map fields from what actually arrives.
curl -s -X POST 'https://api.trendsagi.com/api/integrations/webhooks' -H 'X-API-Key: $TRENDSAGI_API_KEY' -H 'Content-Type: application/json' -d '{"url":"https://your-receiver.example.com/trendsagi","trigger_type":"trend_velocity","delivery_mode":"threshold","threshold_value":500,"cooldown_seconds":900}'
The response returns a one-time signing_secret. Store it in your receiver's secret manager. New subscriptions start paused, so send a test delivery and then activate the subscription explicitly.
curl -s -X POST 'https://api.trendsagi.com/api/integrations/webhooks/WEBHOOK_ID/test' -H 'X-API-Key: $TRENDSAGI_API_KEY'
curl -s -X PATCH 'https://api.trendsagi.com/api/integrations/webhooks/WEBHOOK_ID' -H 'X-API-Key: $TRENDSAGI_API_KEY' -H 'Content-Type: application/json' -d '{"is_active":true}'
Each delivery carries the header X-Webhook-Signature: the lowercase hex HMAC-SHA256 of the exact raw request body, keyed with the signing secret. Verify it against the unmodified raw bytes with a constant-time comparison.
import hashlib, hmac, os
def verify(raw_body, signature):
secret = os.environ['TRENDSAGI_WEBHOOK_SECRET'].encode()
expected = hmac.new(secret, raw_body, hashlib.sha256).hexdigest()
return hmac.compare_digest(expected, signature)
If you need to audit delivery attempts, list executions for the subscription:
curl -s 'https://api.trendsagi.com/api/integrations/webhooks/WEBHOOK_ID/executions' -H 'X-API-Key: $TRENDSAGI_API_KEY'
Step 4: Turn the signal into a HubSpot-ready brief
Use the Python SDK to pull trend records, insights, analytics and recommendations into one brief. Keep the key in an environment variable and treat the output as evidence, not as an instruction to publish.
import os
from trendsagi import TrendsAGIClient
client = TrendsAGIClient(api_key=os.environ['TRENDSAGI_API_KEY'])
trends = client.get_trends(category='Technology', sort_by='velocity', limit=5)
print(trends)
insights = client.get_ai_insights(TREND_ID)
analytics = client.get_trend_analytics(TREND_ID, period='7d')
recs = client.get_recommendations(limit=10, priority='high')
print(insights, analytics, recs)
Replace TREND_ID with an ID from the trends response. For a recurring theme, create a watchlist condition so the team sees movement without polling manually:
client.create_topic_interest(keyword='AI chips', alert_condition_type='volume_threshold', volume_threshold_value=500)
Then search insights by key theme when you need supporting context:
matches = client.search_insights(key_theme_contains='AI chips')
print(matches)
Write the content brief in HubSpot with these fields: trend name, category, volume, velocity, growth, AI summary, key themes, sentiment, audience, marketing angles, recommendation confidence, cluster fit, editor decision and review date. Recommendation confidence measures evidence completeness, not probability of success. Velocity is a measured snapshot rate, not a forecast or unique-user count.
Step 5: Connect the content brief to HubSpot topic planning
HubSpot Knowledge Base topic planning guidance says a topic's pillar page and subtopic content can be HubSpot-hosted pages or blog posts, or URLs hosted outside HubSpot. It also says internal links between pillar pages and subtopic content help search engines understand what a site is about and the importance of each page. Use that structure as your filter: if a trend does not fit a pillar and a subtopic, park it.
The Blog Research Agent, documented in a January 2026 INSIDEA guide, is part of HubSpot's AI content assistant toolkit and suggests blog topics and outlines from keywords. Feed it the accepted trend's keywords or theme after the editor accepts the trend. The Topics SEO tool, described in a 2021 Impulse Creative guide as showing Top Queries, can add query context, but the current 2026 UI path and availability are not confirmed in the sources used here.
For workflow automation, use HubSpot's documented workflows, webhooks and custom actions. For a simple first version, create a HubSpot task when a trend brief is accepted, then attach the content brief to the campaign or blog draft. Do not claim a native HubSpot trending-topics API; none is confirmed by the sources used here.
Step 6: Review performance without chasing every spike
Check trend analytics at 24 hours, 7 days and 30 days. Use the trend record as evidence for why the content brief existed, then measure the published asset with HubSpot's own content reporting. Keep the two questions separate: did the trend move, and did the content perform?
curl -s 'https://api.trendsagi.com/api/trends/TREND_ID/analytics?period=7d' -H 'X-API-Key: $TRENDSAGI_API_KEY'
Set a review rule: accept only trends with a named cluster, a clear audience and an editor who will own the draft. Reject duplicates by searching existing briefs before creating a new one. If the trend fades, keep the content brief as a record but do not force the publish date.
Practical use cases
- Blog planning: filter by category, sort by velocity, then map accepted trends to one pillar and one subtopic before writing.
- Social and campaign themes: use marketing angles from AI insights to write three post angles, then let an editor choose one.
- Demand generation: turn an accepted trend into a campaign theme and use released ad connectors for Google Ads, Meta Ads, TikTok Ads, LinkedIn Ads, Microsoft Ads, Pinterest Ads, Snapchat Ads or Reddit Ads. Ad changes are previewed before any explicit execution.
- Agency portals: run the same trend-to-brief template across multiple HubSpot portals, with a separate editor decision for each portal.
- RevOps and developer teams: build an app card that shows the content brief, or trigger a HubSpot workflow through a custom action when a webhook arrives.
- Slack-first teams: send accepted or high-priority trend alerts to Slack so an editor can decide before a content brief is created.
Troubleshooting
- 401 or 403 responses: confirm the header is X-API-Key or Authorization: Bearer, and create keys in the account profile. Do not paste keys into HubSpot notes.
- Empty trend list: widen the category, use the search parameter, or confirm category names first.
- Webhook never fires: new subscriptions start paused. Send POST /api/integrations/webhooks/{id}/test, then PATCH with is_active true, and check GET /api/integrations/webhooks/{id}/executions.
- Signature mismatch: verify against the exact raw request body, not parsed JSON, and use a constant-time comparison.
- Duplicate topics: search existing briefs and reject trends that repeat a cluster without a new audience or angle.
- Usage questions: check GET /api/user/api-usage before increasing polling frequency.
curl -s 'https://api.trendsagi.com/api/trends/categories' -H 'X-API-Key: $TRENDSAGI_API_KEY'
curl -s 'https://api.trendsagi.com/api/user/api-usage' -H 'X-API-Key: $TRENDSAGI_API_KEY'
Frequently asked questions
How do I find trending topics that fit a HubSpot content plan?
Start with TrendsAGI trend records filtered by category or search, then keep only trends that map to an existing pillar and subtopic. Use volume, velocity, growth and AI insights as evidence, and record why the editor accepted or rejected the trend.
Which HubSpot features help with blog topic research and SEO topic clusters?
HubSpot Knowledge Base topic planning guidance covers pillar pages and subtopic content, including HubSpot-hosted pages or external URLs. The Blog Research Agent, documented by INSIDEA, suggests blog topics and outlines from keywords, and the Topics SEO tool is described by Impulse Creative as showing Top Queries for accounts with the listed Professional or Enterprise plans.
How do I build pillar pages and subtopic clusters in HubSpot?
HubSpot's topic planning guidance says a pillar page and its subtopic content can be HubSpot-hosted pages or blog posts, or URLs hosted outside HubSpot. Link the pillar and subtopics internally so search engines understand the site's subject and page importance.
Which HubSpot plans include the Topics SEO tool?
A 2021 Impulse Creative guide says the Topics SEO tool is available only to Marketing Hub Professional and Enterprise accounts and CMS Hub Professional and Enterprise accounts. The current 2026 availability is not confirmed in the sources used here, so check your portal before relying on it.
Can HubSpot natively pull real-time trend data, or do I need an external trend API?
No official HubSpot trending-topics API, endpoint, SDK method, MCP server or plan-specific real-time trend feed is confirmed by the sources used here. Use an external trend source such as TrendsAGI, then bring the signal into HubSpot through its documented APIs, workflows, webhooks or custom actions.
How should I validate, publish and measure trend-driven content without chasing every spike?
Set a threshold and cooldown, require an editor decision, and reject trends that do not fit a cluster. After publishing, check TrendsAGI analytics for the trend with period 24h, 7d or 30d, and review HubSpot content performance separately; do not treat velocity as a forecast or a unique-user count.
How we researched this
Prepared by TrendsAGI Research. Facts checked on 6 December 2026 against the sources listed below.
We read the official HubSpot documentation listed below. The TrendsAGI steps and code use its documented REST API and Python SDK; confirm the HubSpot side against its current documentation, since third-party products change.
| Claim | Applies to | Source |
|---|---|---|
| HubSpot's developer platform provides APIs, apps, developer tooling and CMS for building on HubSpot's Smart CRM. | All plans | developers.hubspot.com |
| HubSpot's developer platform supports dashboards, app cards and custom interfaces through APIs and UI extensions. | All plans | developers.hubspot.com |
| HubSpot's developer platform supports workflows, webhooks and custom actions to automate the next step when data updates. | All plans | developers.hubspot.com |
| HubSpot's developer platform offers AI capabilities that connect a solution to data, decisions and actions. | All plans | developers.hubspot.com |
| HubSpot's topic planning guidance says a topic's pillar page and subtopic content can be HubSpot-hosted pages or blog posts, or URLs hosted outside HubSpot. | All plans | knowledge.hubspot.com |
| HubSpot's topic planning guidance says internal links between pillar pages and subtopic content help search engines understand what a site is about and the importance of each page. | All plans | knowledge.hubspot.com |
| A January 2026 INSIDEA guide states HubSpot's Blog Research Agent is part of HubSpot's AI content assistant toolkit and suggests blog topics and outlines from keywords. | All plans | insidea.com |
| A 2021 Impulse Creative guide states HubSpot's Topics SEO tool is accessible only to Marketing Hub Professional and Enterprise accounts and CMS Hub Professional and Enterprise accounts. | Marketing Hub Professional/Enterprise; CMS Hub Professional/Enterprise | impulsecreative.com |
| A 2021 Impulse Creative guide states HubSpot's Topics tool shows Top Queries, meaning what people searched to find an article. | Marketing Hub Professional/Enterprise; CMS Hub Professional/Enterprise | impulsecreative.com |
We re-research and rewrite this page at least every four months; the updated date only changes when the facts are re-checked.
Sources
- Create tomorrow's solutions today on HubSpot's Developer Platform. (HubSpot Developers) — developers.hubspot.com
- Create topics for SEO strategy (HubSpot Knowledge Base) — knowledge.hubspot.com
- How to Use the Blog Research Agent in HubSpot (INSIDEA) — insidea.com
- Use HubSpot’s Topics SEO Tool to Improve Content Marketing Strategy (Impulse Creative) — impulsecreative.com