YepAPI
Business & Trends

Google Trends

Get Google Trends interest over time for up to 5 keywords.

POST/v1/seo/trends
$0.02/call

Usage

const res = await fetch('https://api.yepapi.com/v1/seo/trends', {
  method: 'POST',
  headers: {
    'x-api-key': 'YOUR_API_KEY',
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    "keywords": ["react", "vue", "svelte"],
    "location": "us"
  }),
});
const { data } = await res.json();
console.log(data);
curl -X POST https://api.yepapi.com/v1/seo/trends \
  -H "x-api-key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"keywords":["react","vue","svelte"],"location":"us"}'

Request Body

ParameterTypeRequiredDescriptionDefault
keywordsstring[]YesKeywords to compare (max 5)
locationstringNoCountry codeus

Response

{
  "ok": true,
  "data": {
    "keywords": ["react", "vue", "svelte"],
    "timeline": [
      { "date": "2026-03-01", "values": [85, 22, 12] },
      { "date": "2026-04-01", "values": [88, 21, 14] }
    ],
    "averages": [86, 22, 13]
  }
}

Response Fields

FieldTypeDescription
okbooleanWhether the request succeeded
data.keywordsstring[]The keywords that were compared
data.timelinearrayInterest over time data points
data.timeline[].datestringDate of the data point
data.timeline[].valuesnumber[]Interest values for each keyword (0-100, relative to peak)
data.averagesnumber[]Average interest values for each keyword over the time period
Under the Hood

Real-time Google Trends data. Compare up to 5 keywords over time.

On this page