Skip to main content

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 strings
    • meta - API status information

How It Works

  1. Retrieves authentication credentials
  2. Fetches current trending search terms from Giphy
  3. Returns terms ordered by popularity
  4. Updates frequently to reflect real-time trends

Example Usage

// Get trending terms
// After execution:
let trendingTerms = msg.resp.data;
console.log(`Top trending: ${trendingTerms[0]}`);
// Create "Trending Now" section
let trendingChips = msg.resp.data.slice(0, 10).map(term =>
`<span class="trending-tag" onclick="search('${term}')">${term}</span>`
);
// Scheduled automation to log trends
let trends = {
timestamp: new Date().toISOString(),
terms: msg.resp.data
};
database.insert('trending_history', trends);
// Automatically search for top trending term
let topTrend = msg.resp.data[0];
msg.Q = topTrend;
// Run Search Gifs node

Common Use Cases

  1. Discovery Features - Show users what's trending to inspire their searches
  2. Content Strategy - Identify trending topics for timely content creation
  3. Trend Analysis - Track trending terms over time for insights
  4. Quick Access - Provide one-click access to popular searches
  5. SEO Insights - Understand current popular GIF-related topics
  6. 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

  1. Cache trending terms for 30-60 minutes
  2. Display 5-10 terms for clean UI
  3. Update during peak traffic hours for freshest trends
  4. Make terms interactive (clickable to search)
  5. Track user engagement with trending terms
  6. Combine with analytics to understand user behavior
  7. 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()
});
}