Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Interest over time not matching google results #54

Open
JCarlo27 opened this issue Sep 20, 2022 · 0 comments
Open

Interest over time not matching google results #54

JCarlo27 opened this issue Sep 20, 2022 · 0 comments

Comments

@JCarlo27
Copy link

JCarlo27 commented Sep 20, 2022

Hi,

Im using the below:

`
$options = [
'hl' => 'en-US',
'tz' => -240,
'geo' => 'AE',
'time' => 'today 3-m',
'category' => 0,
];

    $gTrends = new GTrends($options);

    $testData = $gTrends->getInterestOverTime(['Majid Al Futtaim']);
    print_r($testData);

`

But results on google is not matching, the first 3 days below:
TIMESERIES: { widget: { request: { time: "2022-06-20 2022-09-20", resolution: "DAY", locale: "en-US", comparisonItem: { 0: { geo: { country: "AE" }, complexKeywordsRestriction: { keyword: { 0: { type: "BROAD", value: "Majid Al Futtaim" } } } } }, requestOptions: { property: "", backend: "IZG", category: "0" }, userConfig: { userType: "USER_TYPE_SCRAPER" } }, lineAnnotationText: "Search interest", showAverages: "", token: "APP6_UEAAAAAYyrl-Ity2-4aYnyu7c1kLu-SvTj-1dy3", id: "TIMESERIES", title: "Interest over time", version: "1" }, data: { timelineData: { 0: { time: "1655683200", formattedTime: "Jun 20, 2022", formattedAxisTime: "Jun 20", value: { 0: "24" }, hasData: { 0: "1" }, formattedValue: { 0: "24" } }, 1: { time: "1655769600", formattedTime: "Jun 21, 2022", formattedAxisTime: "Jun 21", value: { 0: "56" }, hasData: { 0: "1" }, formattedValue: { 0: "56" } }, 2: { time: "1655856000", formattedTime: "Jun 22, 2022", formattedAxisTime: "Jun 22", value: { 0: "30" }, hasData: { 0: "1" }, formattedValue: { 0: "30" } },

But the actual results on Google trends here - https://trends.google.com/trends/explore?date=today%203-m&geo=AE&q=Majid%20Al%20Futtaim

I have tried changing the 'tz', but the results of the data are not changing. Please help

Regards,
Carlo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant