x-fran / g-trends

Google Trends API for PHP
https://tarlabs.es
MIT License
113 stars 47 forks source link

interestOverTime() Method does not return any data #14

Closed hakkikonu closed 5 years ago

hakkikonu commented 5 years ago

I tried many keywords but it returns noting.

Test:

print_r("\n\n <h1>GTrends interestOverTime</h1>\n ");
print_r($gt->interestOverTime('Taylor Swift'));
print_r("\n\n");

Returns : null

Expected: interestOverTime Array with related data.

@x-fran

ghost commented 5 years ago

Same for me. Any idea what is going on?

x-fran commented 5 years ago

I will try to take a look as soon as I can. Meanwhile, any push request is more than welcome.

x-fran commented 5 years ago

Works for me.

GTrends interestOverTime

 Array
(
    [0] => Array
        (
            [time] => 1562886900
            [formattedTime] => Jul 12, 2019 at 12:15 AM
            [formattedAxisTime] => 12:15 AM
            [value] => Array
                (
                    [0] => 0
                )

            [hasData] => Array
                (
                    [0] => 
                )

            [formattedValue] => Array
                (
                    [0] => 0
                )

        )
.............
.............

Please make sure the parameters you're using are good.