google-trends-api - npm

文章推薦指數: 80 %
投票人數:10人

an API layer on top of google trends. Latest version: 4.9.2, last published: 2 years ago. Start using google-trends-api in your project by ... google-trends-api4.9.2 • Public • Published2yearsagoReadmeExploreBETA0Dependencies11Dependents42Versions google-trends-api v3tov4 Bigchanges!Theoldgoogle-trendsendpointsaredeprecatedandareheavilythrottledsothislibraryhaschangedsignificantly.Youcanchoosetodownloadtheoldversionvianpminstallgoogle-trends-api@3.0.2butitisdiscouraged. Introduction ThislibraryprovidesanAPIlayertogoogletrendsdata.DuetoCORSrestrictions,thislibraryisintendedtobeusedinnode.Itisconstantlybeingexpandedandimprovedsopleasecheckbackfrequently.Also,pleasefeelfreetocontributetomakethelibraryevenbetter!🐶 Syntax constgoogleTrends=require('google-trends-api'); googleTrends.apiMethod(optionsObject,[callback]) Parameters optionsObject Anobjectwiththefollowingoptionskeys: keywordTargetsearchterm(s)stringorarrayifyouwishtocomparesearchtermsrequired startTimeStartoftimeperiodofinterest(newDate()object).IfstartTimeisnotprovided,adateofJanuary1,2004isassumed(thisistheoldestavailablegoogletrendsdata) endTimeEndoftimeperiodofinterest(newDate()object).IfendTimeisnotprovided,thecurrentdateisselected. geoLocationofinterest(stringorarrayifyouwishtoprovideseparatelocationsforeachkeyword). hlPreferredlanguage(stringdefaultstoenglish) timezoneTimezone(numberdefaultstothetimezonedifference,inminutes,fromUTCtocurrentlocale(hostsystemsettings)) categoryCategorytosearchwithin(numberdefaultstoallcategories) propertyGooglepropertytofilteron.Defaultstowebsearch.(enumeratedstring['images','news','youtube'or'froogle']wherefroogleisGoogleShoppingresults) resolutionGranularityofthegeosearch(enumeratedstring['COUNTRY','REGION','CITY','DMA']).resolutionisspecifictotheinterestByRegionmethod. granularTimeResolutionBooleanthatdictatesiftheresultsshouldbegiveninafinertimeresolution(ifstartTimeandendTimeislessthanoneday,thisshouldbesettotrue) callback Optionalcallbackfunctionwherethefirstparameterisanerrorandthesecondparameteristheresult.Ifnocallbackisprovided,thenapromiseisreturned. Tableofcontents Installation API Promises Callbacks ProxyServer Examples APIMethods autoComplete dailyTrends interestOverTime interestByRegion realTimeTrends relatedQueries relatedTopics Geohelp Listofcategories BigThanks Installation Toinstallthispackage,clonethisgitrepositoryandincludeitinyourproject'snode_modulesorsimply: npminstallgoogle-trends-api Requiregoogle-trends-apiinyourscriptandgiveitavariablename: constgoogleTrends=require('google-trends-api'); YouwillnowbeabletoaccessmethodsongoogleTrends.SeetheAPIMethodssectionbelowtoseethemethodsavailableandtheirsyntax. backtotop API Promises Bydefault,alltheAPI'sreturnapromisefortheresults.Example: googleTrends.interestOverTime({keyword:'Women\'smarch'}) .then(function(results){ console.log('Theseresultsareawesome',results); }) .catch(function(err){ console.error('Ohnotherewasanerror',err); }); Callbacks AllAPImethodscanalternativelytakeacallbackfunctionasthesecondparameter.Forexample: googleTrends.interestOverTime({keyword:'Women\'smarch'},function(err,results){ if(err)console.error('therewasanerror!',err); elseconsole.log('mysweetsweetresults',results); }) ProxyServer Aproxyservercanbeusedbyspecifyinganhttpagentaspartofthequery.Thisexampleuseshttps-proxy-agent constHttpsProxyAgent=require('https-proxy-agent'); letproxyAgent=newHttpsProxyAgent('http://proxy-host:8888/'); letquery={ keyword:'Women\'smarch', agent:proxyAgent }; googleTrends.interestOverTime(query) .then(function(results){ console.log('Theseproxiedresultsareincredible',results); }) .catch(function(err){ console.error('Ohnotherewasanerror,doublecheckyourproxysettings',err); }); MultipleKeywords Comparemultiplekeywordswithanyoftheapimethodsbysupplyinganarrayinsteadofasinglestring googleTrends.interestOverTime({keyword:['Women\'smarch','TrumpInauguration']}) .then(function(results){ console.log('Theseresultsareawesome',results); }) .catch(function(err){ console.error('Ohnotherewasanerror',err); }); Examples ThereareexamplesavailableforeachAPImethodintherootdirectoryofthemodule.Note:Eachexampleinexamples.jsneedstobeuncommented. APIMethods ThefollowingAPImethodsareavailable: autoComplete:Returnstheresultsfromthe"Addasearchterm"inputboxinthegoogletrendsUI.Theseresults(Topics)canthenbeusedintheotherAPImethods.Note:SearchtermsandTopicsaremeasureddifferently,sorelatedTopicswillnotworkwithcomparisonsthatcontainbothSearchtermsandTopics. dailyTrends:DailySearchTrendshighlightssearchesthatjumpedsignificantlyintrafficamongallsearchesoverthepast24hoursandupdateshourly.Thesesearchtrendsshowthespecificqueriesthatweresearched,andtheabsolutenumberofsearchesmade.20dailytrendingsearchresultsarereturned.Youcansearchretroactivelyforupto15daysinthepast. interestOverTime:Numbersrepresentsearchinterestrelativetothehighestpointonthechartforthegivenregionandtime.Avalueof100isthepeakpopularityfortheterm.Avalueof50meansthatthetermishalfaspopular.Likewiseascoreof0meansthetermwaslessthan1%aspopularasthepeak.Ifyouusemultiplekeywordsforacomparison,thereturndatawillalsocontainanaverageresultforeachkeyword. interestByRegion:Seeinwhichlocationyourtermwasmostpopularduringthespecifiedtimeframe.Valuesarecalculatedonascalefrom0to100,where100isthelocationwiththemostpopularityasafractionoftotalsearchesinthatlocation,avalueof50indicatesalocationwhichishalfaspopular,andavalueof0indicatesalocationwherethetermwaslessthan1%aspopularasthepeak. Note:Ahighervaluemeansahigherproportionofallqueries,notahigherabsolutequerycount.Soatinycountrywhere80%ofthequeriesarefor"bananas"willgettwicethescoreofagiantcountrywhereonly40%ofthequeriesarefor"bananas". realTimeTrends:RealtimeSearchTrendshighlightstoriesthataretrendingacrossGooglesurfaceswithinthelast24hours,andareupdatedinrealtime.ThesestoriesareacollectionofKnowledgeGraphtopics,Searchinterest,trendingYouTubevideos,and/orGoogleNewsarticlesdetectedbyGoogle'salgorithms.13realtimetrendingstoriesarereturned. relatedQueries:Userssearchingforyourtermalsosearchedforthesequeries.Thefollowingmetricsarereturned: Top-Themostpopularsearchqueries.Scoringisonarelativescalewhereavalueof100isthemostcommonlysearchedquery,50isaquerysearchedhalfasoften,andavalueof0isaquerysearchedforlessthan1%asoftenasthemostpopularquery. Rising-Querieswiththebiggestincreaseinsearchfrequencysincethelasttimeperiod.Resultsmarked"Breakout"hadatremendousincrease,probablybecausethesequeriesarenewandhadfew(ifany)priorsearches. relatedTopics:Userssearchingforyourtermalsosearchedforthesetopics.Thefollowingmetricsarereturned: Top-Themostpopulartopics.Scoringisonarelativescalewhereavalueof100isthemostcommonlysearchedtopic,avalueof50isatopicsearchedhalfasoften,andavalueof0isatopicsearchedforlessthan1%asoftenasthemostpopulartopic. Rising-Relatedtopicswiththebiggestincreaseinsearchfrequencysincethelasttimeperiod.Resultsmarked"Breakout"hadatremendousincrease,probablybecausethesetopicsarenewandhadfew(ifany)priorsearches. backtotop autoComplete Resultsfromthe"addasearchterm"inputboxinthegoogletrendsUI* Syntax googleTrends.autoComplete({keyword:string},cbFunc) Requiresanobjectasthefirstparameterwiththefollowingkeys: keyword-required-typestring-thesearchtermofinterest hl-optional-typestring-preferredlanguagecodeforresults(defaultstoenglish) Optionalcallbackfunctionasthesecondparameter(otherwisereturnsapromise) Example Returningtheauto-completeresultsfor'BacktoSchool' Input googleTrends.autoComplete({keyword:'BacktoSchool'}) .then(function(results){ console.log(results); }) .catch(function(err){ console.error(err); }) Output {"default":{"topics":[{"mid":"/m/0414j6","title":"BacktoSchool","type":"1986film"},{"mid":"/m/068pw8","title":"Backtoschool","type":"Topic"},{"mid":"/m/04vwgn","title":"FightBacktoSchool","type":"1991film"},{"mid":"/m/05357_","title":"Taxholiday","type":"Holiday"},{"mid":"/m/02pb6kt","title":"FightBacktoSchoolII","type":"1992film"}]}} Note:YoucanthenusetheseresultsintheotherAPImethods.Forexample,ifyouwantedinterestOverTimefor'BacktoSchool'wherethetypeis'Topic',youwouldthenuse: googleTrends.interestOverTime({keyword:'/m/068pw8'}) backtotop dailyTrends DailySearchTrendshighlightssearchesthatjumpedsignificantlyintrafficamongallsearchesoverthepast24hoursandupdateshourly.Thesesearchtrendsshowthespecificqueriesthatweresearched,andtheabsolutenumberofsearchesmade.20dailytrendingsearchresultsarereturned Syntax googleTrends.dailyTrends({geo:string},cbFunc) Requiresanobjectasthefirstparameterwiththefollowingkeys: geo-required-typestring-geocodeforacountry.Forexample,geo:'US'willtargetUnitedStatesorgeo:'FR'willtargetFrance. hl-optional-typestring-preferredlanguagecodeforresults(defaultstoenglish). timezone-optional-typenumber-preferredtimezone(defaultstothetimezonedifference,inminutes,fromUTCtocurrentlocale(hostsystemsettings)) trendDate-optional-typeDateobject-thedateyouareinterestinginretrievingtrendsinformationfor(defaultstothecurrentdate).Notethatqueryingforadatemorethan15daysinthepastwillresultinanerror. Optionalcallbackfunctionasthesecondparameter(otherwisereturnsapromise) Example ReturningrealtimetrendingstoriesfortheUnitedStatesregion. Input googleTrends.dailyTrends({ trendDate:newDate('2019-01-10'), geo:'US', },function(err,results){ if(err){ console.log(err); }else{ console.log(results); } }); Output { default:[Object]{ trendingSearchesDays:[Array] [0]:[Object]{ date:String formattedDate:String trendingSearches:[Array]{ [0]:[Object]//Firsttrendingresult } [1]:[Object]{ date:String formattedDate:String trendingSearches:[Array]{ [0]:[Object]//firsttrendingresult ... [19]:[Object]//20thtrendingresult } } } endDateForNextRequest:String, rssFeedPageUrl:String, } } backtotop interestOverTime Searchinterestrelativetothehighestpointonthechartforthegivenregionandtime(100isthepeakpopularityfortheterm) Syntax googleTrends.interestOverTime({keyword:string,startTime:Date,endTime:Date,geo:string},cbFunc) Requiresanobjectasthefirstparameterwiththefollowingkeys: keyword-required-typestringorarray-thesearchterm(s)ofinterest startTime-optional-typeDateobject-thestartofthetimerangeofinterest(defaultstonewDate('2004-01-01')ifnotsupplied) endTime-optional-typeDateobject-theendofthetimerangeofinterest(defaultstonewDate(Date.now())ifnotsupplied) geo-optional-typestringorarray-geocode(s)foracountry,region,orDMAdependingonthegranularityrequired(defaultstoworldwide).Forexample,geo:'US-CA-800'willtargettheBakersfield,California,UnitedStatesorgeo:'US'willjusttargettheUS.Passinggeo:['US-CA,US-VA'],keyword:['wine','peanuts']willsearchforwineinCaliforniaandpeanutsinVirginia. hl-optional-typestring-preferredlanguagecodeforresults(defaultstoenglish) timezone-optional-typenumber-preferredtimezone(defaultstothetimezonedifference,inminutes,fromUTCtocurrentlocale(hostsystemsettings)) category-optional-typenumber-anumbercorrespondingtoaparticularcategorytoquerywithin(defaultstoallcategories),seethecategorywikiforacompletelist granularTimeResolution-optional-typeboolean-iftrue,willtrytoreturnresultstoafinertimeresolution(onlyrelevantforstartTimeandendTimelessthanoneweek) Optionalcallbackfunctionasthesecondparameter(otherwisereturnsapromise) Theresolutionofthesearchchangesautomaticallydependingonthesearchduration.Thewiderthedurationwindow,theworsetheresolution(forexample,asearchdurationwithastartTimeandendTimethatendsyearsapartwillreturnaresolutioninmonths,whileasearchdurationwithastartTimeandendTimeafewhoursapartwillreturnaresolutioninminutes). Example1 Returningthesearchinterestovertimefor'ValentinesDay'(bydefaultfrom2004-01-01totoday) Input googleTrends.interestOverTime({keyword:'ValentinesDay'}) .then(function(results){ console.log(results); }) .catch(function(err){ console.error(err); }); Output {"default":{"timelineData":[{"time":"1072915200","formattedTime":"Jan2004","formattedAxisTime":"Jan1,2004","value":[26],"formattedValue":["26"]},{"time":"1075593600","formattedTime":"Feb2004","formattedAxisTime":"Feb1,2004","value":[74],"formattedValue":["74"]}, ... {"time":"1483228800","formattedTime":"Jan2017","formattedAxisTime":"Jan1,2017","value":[18],"formattedValue":["18"]},{"time":"1485907200","formattedTime":"Feb2017","formattedAxisTime":"Feb1,2017","value":[72],"formattedValue":["72"]}],"averages":[]}} Example2 Returningthesearchinterestovertimefor'ValentinesDay'fromthepastfourhours.Notethattheresolutionisbyminutesinceourquerydurationisshorter. Input googleTrends.interestOverTime({keyword:'ValentinesDay',startTime:newDate(Date.now()-(4*60*60*1000))},function(err,results){ if(err)console.log('ohnoerror!',err); elseconsole.log(results); }); Output {"default":{"timelineData":[{"time":"1487026800","formattedTime":"Feb13,2017at6:00PM","formattedAxisTime":"6:00PM","value":[49],"formattedValue":["49"]},{"time":"1487026860","formattedTime":"Feb13,2017at6:01PM","formattedAxisTime":"6:01PM","value":[50],"formattedValue":["50"]}, ... {"time":"1487040180","formattedTime":"Feb13,2017at9:43PM","formattedAxisTime":"9:43PM","value":[88],"formattedValue":["88"]},{"time":"1487040240","formattedTime":"Feb13,2017at9:44PM","formattedAxisTime":"9:44PM","value":[81],"formattedValue":["81"]}],"averages":[]}} backtotop interestByRegion Seeinwhichlocationyourtermwasmostpopularduringthespecifiedtimeframe.Valuesarecalculatedonascalefrom0to100,where100isthelocationwiththemostpopularityasafractionoftotalsearchesinthatlocation. Syntax googleTrends.interestByRegion({keyword:string,startTime:Date,endTime:Date,geo:string,resolution:string},cbFunc) Requiresanobjectasthefirstparameterwiththefollowingkeys: keyword-required-typestringorarray-thesearchterm(s)ofinterest startTime-optional-typeDateobject-thestartofthetimerangeofinterest(defaultstonewDate('2004-01-01')ifnotsupplied) endTime-optional-typeDateobject-theendofthetimerangeofinterest(defaultstonewDate(Date.now())ifnotsupplied) geo-optional-typestringorarray-geocode(s)foracountry,region,orDMAdependingonthegranularityrequired(defaultstoworldwide).Forexample,geo:'US-CA-800'willtargettheBakersfield,California,UnitedStatesorgeo:'US'willjusttargettheUS.Passinggeo:['US-CA,US-VA'],keyword:['wine','peanuts']willsearchforwineinCaliforniaandpeanutsinVirginia. resolution-optional-typeenumeratedstringeitherCOUNTRY,REGION,CITYorDMA.Resolutionisselectedbydefaultotherwise.Tryingtoselectaresolutionlargerthanaspecifiedgeowillreturnanerror. hl-optional-typestring-preferredlanguagecodeforresults(defaultstoenglish) forresults(defaultstoenglish) timezone-optional-typenumber-preferredtimezone(defaultstothetimezonedifference,inminutes,fromUTCtocurrentlocale(hostsystemsettings)) category-optional-typenumber-anumbercorrespondingtoaparticularcategorytoquerywithin(defaultstoallcategories),seethecategorywikiforacompletelist Optionalcallbackfunctionasthesecondparameter(otherwisereturnsapromise) Example1 Returningthesearchinterestbycitiesaroundtheworldfor'DonaldTrump'fromFebruary01,2017toFebruary06,2017. Input googleTrends.interestByRegion({keyword:'DonaldTrump',startTime:newDate('2017-02-01'),endTime:newDate('2017-02-06'),resolution:'CITY'}) .then((res)=>{ console.log(res); }) .catch((err)=>{ console.log(err); }) Output {"default":{"geoMapData":[{"coordinates":{"lat":18.594395,"lng":-72.3074326},"geoName":"Port-au-Prince","value":[100],"formattedValue":["100"],"maxValueIndex":0},{"coordinates":{"lat":43.467517,"lng":-79.6876659},"geoName":"Oakville","value":[90],"formattedValue":["90"],"maxValueIndex":0}, ... {"coordinates":{"lat":40.9312099,"lng":-73.8987469},"geoName":"Yonkers","value":[69],"formattedValue":["69"],"maxValueIndex":0}]}} Example2 ReturningthesearchinterestbycitiesinCaliforniafor'DonaldTrump'fromFebruary01,2017toFebruary06,2017. Input googleTrends.interestByRegion({keyword:'DonaldTrump',startTime:newDate('2017-02-01'),endTime:newDate('2017-02-06'),geo:'US-CA'}) .then((res)=>{ console.log(res); }) .catch((err)=>{ console.log(err); }) Output {"default":{"geoMapData":[{"geoCode":"807","geoName":"SanFrancisco-Oakland-SanJoseCA","value":[100],"formattedValue":["100"],"maxValueIndex":0},{"geoCode":"828","geoName":"Monterey-SalinasCA","value":[100],"formattedValue":["100"],"maxValueIndex":0}, ... {"geoCode":"811","geoName":"RenoNV","value":[12],"formattedValue":["12"],"maxValueIndex":0},{"geoCode":"813","geoName":"Medford-KlamathFallsOR","value":[4],"formattedValue":["4"],"maxValueIndex":0}]}} backtotop realtimeTrends RealtimeSearchTrendshighlightstoriesthataretrendingacrossGooglesurfaceswithinthelast24hours,andareupdatedinrealtime.13realtimetrendingstoriesarereturned Syntax googleTrends.realTimeTrends({geo:string},cbFunc) Requiresanobjectasthefirstparameterwiththefollowingkeys: geo-required-typestring-geocodeforacountry.Forexample,geo:'US'willtargetUnitedStatesorgeo:'FR'willtargetFrance. hl-optional-typestring-preferredlanguagecodeforresults(defaultstoenglish) forresults(defaultstoenglish) timezone-optional-typenumber-preferredtimezone(defaultstothetimezonedifference,inminutes,fromUTCtocurrentlocale(hostsystemsettings)) category-optional-typestring-astringcorrespondingtoaparticularcategorytoquerywithin(defaultstoallcategories): All:'all' Entertainment:'e' Business:'b' Science/Tech:'t' Health:'m' Sports:'s' TopStories:'h' Optionalcallbackfunctionasthesecondparameter(otherwisereturnsapromise) Example ReturningrealtimetrendingstoriesfortheUnitedStatesregion. Input googleTrends.realTimeTrends({ geo:'US', category:'all', },function(err,results){ if(err){ console.log(err); }else{ console.log(results); } }); Output { featuredStoryIds:[Array],//Empty trendingStoryIds:[Array],//300trendingstoryIDs storySummaries:[Object] { featuredStories:[Array],//Empty trendingStories:[Array],//13toptrendingstories }, date:"Date-String", hideAllImages:Boolean, } backtotop relatedQueries Userssearchingforyourtermalsosearchedforthesequeries. Syntax googleTrends.relatedQueries({keyword:string,startTime:Date,endTime:Date,geo:string},cbFunc) Requiresanobjectasthefirstparameterwiththefollowingkeys: keyword-required-typestringorarray-thesearchterm(s)ofinterest startTime-optional-typeDateobject-thestartofthetimerangeofinterest(defaultstonewDate('2004-01-01')ifnotsupplied) endTime-optional-typeDateobject-theendofthetimerangeofinterest(defaultstonewDate(Date.now())ifnotsupplied) geo-optional-typestringorarray-geocode(s)foracountry,region,orDMAdependingonthegranularityrequired(defaultstoworldwide).Forexample,geo:'US-CA-800'willtargettheBakersfield,California,UnitedStatesorgeo:'US'willjusttargettheUS.Passinggeo:['US-CA,US-VA'],keyword:['wine','peanuts']willsearchforwineinCaliforniaandpeanutsinVirginia. hl-optional-typestring-preferredlanguagecodeforresults(defaultstoenglish) forresults(defaultstoenglish) timezone-optional-typenumber-preferredtimezone(defaultstothetimezonedifference,inminutes,fromUTCtocurrentlocale(hostsystemsettings)) category-optional-typenumber-anumbercorrespondingtoaparticularcategorytoquerywithin(defaultstoallcategories),seethecategorywikiforacompletelist Optionalcallbackfunctionasthesecondparameter(otherwisereturnsapromise) Example Returningtoprelatedqueriesfor'WestminsterDogshow'withdefaultstartTime,endTime,andgeocategories Input googleTrends.relatedQueries({keyword:'WestminsterDogShow'}) .then((res)=>{ console.log(res); }) .catch((err)=>{ console.log(err); }) Output {"default":{"rankedList":[{"rankedKeyword":[{"query":"dogshow2016","value":100,"formattedValue":"100","link":"/"},{"query":"2016westminsterdogshow","value":95,"formattedValue":"95","link":"/"}, ... {"query":"dogs","value":20,"formattedValue":"20","link":"/"}]},{"rankedKeyword":[{"query":"dogshow2016","value":836500,"formattedValue":"Breakout","link":"/"},{"query":"2016westminsterdogshow","value":811550,"formattedValue":"Breakout","link":"/"}, ... {"query":"whowonthewestminsterdogshow","value":59000,"formattedValue":"Breakout","link":"/"}]}]}} backtotop relatedTopics Userssearchingforyourtermalsosearchedforthesetopics Syntax googleTrends.relatedTopics({keyword:string,startTime:Date,endTime:Date,geo:string},cbFunc) Requiresanobjectasthefirstparameterwiththefollowingkeys: keyword-required-typestringorarray-thesearchterm(s)ofinterest startTime-optional-typeDateobject-thestartofthetimerangeofinterest(defaultstonewDate('2004-01-01')ifnotsupplied) endTime-optional-typeDateobject-theendofthetimerangeofinterest(defaultstonewDate(Date.now())ifnotsupplied) geo-optional-typestringorarray-geocode(s)foracountry,region,orDMAdependingonthegranularityrequired(defaultstoworldwide).Forexample,geo:'US-CA-800'willtargettheBakersfield,California,UnitedStatesorgeo:'US'willjusttargettheUS.Passinggeo:['US-CA,US-VA'],keyword:['wine','peanuts']willsearchforwineinCaliforniaandpeanutsinVirginia. hl-optional-typestring-preferredlanguagecodeforresults(defaultstoenglish) forresults(defaultstoenglish) timezone-optional-typenumber-preferredtimezone(defaultstothetimezonedifference,inminutes,fromUTCtocurrentlocale(hostsystemsettings)) category-optional-typenumber-anumbercorrespondingtoaparticularcategorytoquerywithin(defaultstoallcategories),seethecategorywikiforacompletelist Optionalcallbackfunctionasthesecondparameter(otherwisereturnsapromise) Example Returningtoprelatedtopicsfor'Chipotle'fromJanuary1st,2015toFebruary10th,2017. Input googleTrends.relatedTopics({keyword:'Chipotle',startTime:newDate('2015-01-01'),endTime:newDate('2017-02-10')}) .then((res)=>{ console.log(res); }) .catch((err)=>{ console.log(err); }) Output {"default":{"rankedList":[{"rankedKeyword":[{"topic":{"mid":"/m/01b566","title":"ChipotleMexicanGrill","type":"Restaurantcompany"},"value":100,"formattedValue":"100","link":"/"},{"topic":{"mid":"/m/02f217","title":"Chipotle","type":"Jalape\u00f1o"},"value":5,"formattedValue":"5","link":"/"}, ... {"topic":{"mid":"/m/01xg7s","title":"Chorizo","type":"Topic"},"value":0,"formattedValue":"0","link":"/"}]},{"rankedKeyword":[{"topic":{"mid":"/m/09_yl","title":"E.coli","type":"Bacteria"},"value":40700,"formattedValue":"Breakout","link":"/"}, ... {"topic":{"mid":"/m/0dqc4","title":"Caridea","type":"Animal"},"value":40,"formattedValue":"+40%","link":"/"}]}]}} backtotop Geohelp Unfortunatelysupportisnotofferedforzipcodesatthistime.Theusermustenteracountrycode,region(orstate)code,and/orDMA(DesignatedMarketArea)code. Alistofcountrycodescanbefoundhere:countrycodelist AlistofDMAscanbefoundhere:DMAlist Alistofavailablelanguagescanbefoundhere:languagecodes BigThanks Todreyco676fortheheadsuponthedeprecatedroutesandnewendpoints.Checkoutthepythongoogletrends backtotop KeywordsgoogletrendsAPIkeywordsearchgoogle-trendsInstallnpmigoogle-trends-apiRepositoryGitgithub.com/pat310/google-trends-apiHomepagegithub.com/pat310/google-trends-api#readmeDownloadsWeeklyDownloads2,284Version4.9.2LicenseMITUnpackedSize58.5kBTotalFiles9Lastpublish2yearsagoCollaboratorsTryonRunKitReportmalware



請為這篇文章評分?