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 978131
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T04:00:47+00:00 2026-05-16T04:00:47+00:00

i read your post on simple php script to retrieve google keyword search completion

  • 0

i read your post on

simple php script to retrieve google keyword search completion

and i was wondering how would you go ‘echo’ the next page?
here’s my script..

$search = ‘query’;

$x = json_decode( file_get_contents(
‘http://ajax.googleapis.com/ajax/services/search/web?v=1.0&q=‘
. urlencode( $search ) ) );

echo
$x->responseData->results[0]->url;

i was able to ‘echo’ out the url, i am stucked in going to the next page and ‘echo’ out the next url’s

thanks sir

  • 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-16T04:00:47+00:00Added an answer on May 16, 2026 at 4:00 am

    You change the index:

    echo $x->responseData->results[1]->url;
    

    To loop through all:

    foreach ($x->responseData->results as $r) {
        echo $r->url, "\n";
    }
    

    You can inspect the complete result with var_dump($x);.

    To retrieve another page of results, you can use the start parameter, e.g.:

    $x = json_decode(
        file_get_contents(
        'http://ajax.googleapis.com/ajax/services/search/web?v=1.0&start=4&q='
        . urlencode( $search )));
    

    You can request 8 results instead of 4 with rsz=large.

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

Sidebar

Related Questions

I would like to read about your different strategies. For example, if you have
I read your reply regarding the jQuery validator where you outline a method to
You always read in changelogs when your system or browser or any program updates
I have read about dynamically loading your class files when needed in a function
I have read that you should keep the number of connections in your database
I read this article on how to use keytool to generate CSRs for your
Much I've read talks about the advantages of setting your UI up in IB.
I have read this article about 400% boost of your website . This is
My buddy read an OpenGL book that said interleaving your vertex pointers and the
How do I read the URL which is shown when move your mouse over

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.