Trending Search Terms
Retrieves the current trending search terms on Giphy. This node returns the most popular search queries being used right now, perfect for discovering what's currently viral and engaging.
Common Properties
- Name - The custom name of the node.
- Color - The custom color of the node.
- Delay Before (sec) - Waits in seconds before executing the node.
- Delay After (sec) - Waits in seconds after executing node.
- Continue On Error - Automation will continue regardless of any error. The default value is false.
info
If the ContinueOnError property is true, no error is caught when the project is executed, even if a Catch node is used.
Inputs
This node has no input parameters. It automatically retrieves current trending search terms.
Options
- API Key - Your Giphy API key credential for authentication. Required for all requests.
Output
- resp - API response object containing:
data- Array of trending search term stringsmeta- API status information
How It Works
- Retrieves authentication credentials
- Fetches current trending search terms from Giphy
- Returns terms ordered by popularity
- Updates frequently to reflect real-time trends
Example Usage
Display Trending Searches
// Get trending terms
// After execution:
let trendingTerms = msg.resp.data;
console.log(`Top trending: ${trendingTerms[0]}`);
Build Trending Section
// Create "Trending Now" section
let trendingChips = msg.resp.data.slice(0, 10).map(term =>
`<span class="trending-tag" onclick="search('${term}')">${term}</span>`
);
Track Trends Over Time
// Scheduled automation to log trends
let trends = {
timestamp: new Date().toISOString(),
terms: msg.resp.data
};
database.insert('trending_history', trends);
Auto-Search Trending
// Automatically search for top trending term
let topTrend = msg.resp.data[0];
msg.Q = topTrend;
// Run Search Gifs node
Common Use Cases
- Discovery Features - Show users what's trending to inspire their searches
- Content Strategy - Identify trending topics for timely content creation
- Trend Analysis - Track trending terms over time for insights
- Quick Access - Provide one-click access to popular searches
- SEO Insights - Understand current popular GIF-related topics
- Homepage Features - Display trending searches on landing pages
Response Structure
{
"data": [
"happy birthday",
"thank you",
"love you",
"good morning",
"congratulations",
"celebrate",
"excited",
"funny cat",
"dancing",
"omg"
],
"meta": {
"status": 200,
"msg": "OK",
"response_id": "..."
}
}
Tips
- Update Frequently - Refresh every 1-2 hours to keep trends current
- Display Prominently - Show trending terms in visible areas (homepage, search page)
- Make Clickable - Allow users to click terms to search immediately
- Track Clicks - Monitor which trending terms users engage with
- Cache Briefly - Cache for 30-60 minutes to reduce API calls
- Combine with Trending GIFs - Show both trending searches and trending GIFs
- Localization - Trends may vary by region; consider user location
Best Practices
- Cache trending terms for 30-60 minutes
- Display 5-10 terms for clean UI
- Update during peak traffic hours for freshest trends
- Make terms interactive (clickable to search)
- Track user engagement with trending terms
- Combine with analytics to understand user behavior
- Use as inspiration for content creation
UI Integration
// Create trending search widget
function displayTrendingSearches(terms) {
let widget = document.getElementById('trending-widget');
widget.innerHTML = `
<h3>Trending Searches</h3>
<div class="trending-tags">
${terms.slice(0, 8).map(term =>
`<button onclick="searchFor('${term}')">${term}</button>`
).join('')}
</div>
`;
}
Analytics Tracking
// Track trending term engagement
function trackTrendingClick(term, position) {
analytics.track('trending_term_clicked', {
term: term,
position: position,
timestamp: new Date().toISOString()
});
}