Core APIs
...
Core Requests
Trends
4 min
google trends parameters get get /search?engine=google\&search type=trends the google trends parameters are applicable when making a request with search type=trends to retrieve google's interest over time trend or interest by subregion trend results for a given search term the search term is specified in the q parameter the trend is specified with the data type parameter localizing google trends requests to localize trends requests you should use the trends geo request parameter for a list of all available trends geo values see the https //docs trajectdata com/serpwow/search api/reference/google trends geos multiple trends keywords you can request comparative trends results for up to 5 keywords in one request specify multiple trends keywords in comma seperated notation in the q parameter for example, to replicate the request shown in the screenshot below the q parameter would be q=pizza,burger,chips,sausages,bread to request trends results for the keyword pizza , worldwide (i e without a trends geo parameter), the request would be http https //api serpwow\ com/live/search?api key=demo\&search type=trends\&q=pizza\&data type=interest over timecurl l get https //api serpwow\ com/live/search \\ d api key="demo" \\ d q="pizza" \\ d search type="trends"\\ d data type="interest over time"const axios = require('axios'); // set up the request parameters const params = { api key "demo", q "pizza", search type "trends", data type "interest over time" } // make the http get request axios get('https //api serpwow\ com/live"/search', { params }) then(response => { // print the json response console log(json stringify(response data, 0, 2)); }) catch(error => { // catch and print the error console log(error); })import requests import json \# set up the request parameters params = { 'api key' 'demo', 'q' 'pizza', 'search type' 'trends', 'data type' 'interest over time' } \# make the http get request api result = requests get('https //api serpwow\ com/live/search', params) \# print the json response print(json dumps(api result json()))\<?php \# set up the request parameters $querystring = http build query(\[ 'api key' => 'demo', 'q' => 'pizza', 'search type' => 'trends', 'data type' => 'interest over time' ]); \# make the http get request $ch = curl init(sprintf('%s?%s', 'https //api serpwow\ com/live/search', $querystring)); curl setopt($ch, curlopt returntransfer, true); curl setopt($ch, curlopt followlocation, true); \# the following options are required if you're using an outdated openssl version \# more details https //www openssl org/blog/blog/2021/09/13/letsencryptrootcertexpire/ curl setopt($ch, curlopt ssl verifyhost, false); curl setopt($ch, curlopt ssl verifypeer, false); curl setopt($ch, curlopt timeout, 180); $api result = curl exec($ch); curl close($ch); \# print the json response echo $api result; ?> google trends parameters the following parameters are available for all requests made when search type=trends true left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type next steps https //docs trajectdata com/serpwow/search api/results/google/trends