Business & Trends
Google Trends
Get Google Trends interest over time for up to 5 keywords.
POST
$0.02/call/v1/seo/trendsUsage
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
| Parameter | Type | Required | Description | Default |
|---|---|---|---|---|
keywords | string[] | Yes | Keywords to compare (max 5) | — |
location | string | No | Country code | us |
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
| Field | Type | Description |
|---|---|---|
ok | boolean | Whether the request succeeded |
data.keywords | string[] | The keywords that were compared |
data.timeline | array | Interest over time data points |
data.timeline[].date | string | Date of the data point |
data.timeline[].values | number[] | Interest values for each keyword (0-100, relative to peak) |
data.averages | number[] | 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.