Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6005525
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T01:24:34+00:00 2026-05-23T01:24:34+00:00

hello i need somehow to get top Regional interest and interest over time from

  • 0

hello i need somehow to get top Regional interest and interest over time from

http://www.google.com/trends?q=lingerie+&ctab=0&geo=id&date=all&sort=0

or better

http://www.google.com/insights/search/#q=lingerie&geo=ID&cmpt=q

so i found out that we have to login to export data can anybody give me an example doing this with our google username and password? maybe using curl to export the data? or something else

Thanks for looking in

Adam Ramadhan

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T01:24:35+00:00Added an answer on May 23, 2026 at 1:24 am

    Just to be quick about it, I used my xhttp class which is a curl wrapper, and I think the code is easy enough to follow.

    <?php
    
    header('content-type: text/plain');
    
    // Set account login info
    $data['post'] = array(
      'accountType' => 'HOSTED_OR_GOOGLE',  // indicates a Google account
      'Email'       => '',  // full email address
      'Passwd'      => '',
      'service'     => 'trendspro', // Name of the Google service
      'source'      => 'codecri.me-example-1.0' // Application's name, e.g. companyName-applicationName-versionID
    );
    
    $response = xhttp::fetch('https://www.google.com/accounts/ClientLogin', $data);
    
    // Test if unsuccessful
    if(!$response['successful']) {
        echo 'response: '; print_r($response);
        die();
    }
    
    // Extract SID
    preg_match('/SID=(.+)/', $response['body'], $matches);
    $sid = $matches[1];
    
    // Erase POST variables used on the previous xhttp call
    $data = array();
    
    // Set the SID in cookies
    $data['cookies'] = array(
        'SID' => $sid
    );
    
    $response = xhttp::fetch('http://www.google.com/insights/search/overviewReport?q=lingerie&geo=ID&cmpt=q&content=1&export=1', $data);
    
    // CSV data in the response body
    echo $response['body'];
    
    ?>
    

    The result is at: http://codecri.me/apps/test/test.google.trends.php
    But I’m not sure if the result is what you are looking for.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Hello I need to make a chart like this : http://www.xe.com/currencycharts/?from=USD}&to=EUR Should I use
Hello i need to get this date value from php 1328569380 and convert it
Hello i need to create a progressView when i load data from my webservice.
hello i need to do the following: move a node from jstree to another
Hello i need to gater the data from db(MSSQL) in following way: <div id=slider>
Hello I need to sort cgridview data table by id DESC how can me
Hello I need to have multiple language support of my django admin application.I can
Hello I need to do something like this: UPDATE tbl SET pozn=CONCAT(pozn, '+attach_str+') WHERE
Hello :) I realy need your help here. I dynamically generate list of items
Hello friends i need a book/ tutorials for rails without using scoffold. All the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.