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

  • Home
  • SEARCH
  • 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 894771
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T14:27:01+00:00 2026-05-15T14:27:01+00:00

How do I extract current top 10 twitter trends using CURL. All the php

  • 0

How do I extract current top 10 twitter trends using CURL. All the php tutorials I found seem to use the old twitter urls which have since changed..

Here is a new url I’m struggling with, the new date at the top seems to throw it http://search.twitter.com/trends/current.json

Any ideas how to echo the values?

e.g. output is

stdClass Object ( [trends] => stdClass Object ( [2010-07-03 15:00:00] => Array ( [0] => stdClass Object ( [name] => Mick Jagger [query] => Mick Jagger ) [1] => stdClass Object ( [name] => Leonardo DiCaprio [query] => Leonardo DiCaprio ) [2] => stdClass Object ( [name] => Lionel Messi [query] => Lionel Messi ) [3] => stdClass Object ( [name] => Maradona pelado [query] => Maradona pelado ) [4] => stdClass Object ( [name] => Lizzie McGuire Movie [query] => Lizzie McGuire Movie ) [5] => stdClass Object ( [name] => Thomas Muller [query] => Thomas Muller ) [6] => stdClass Object ( [name] => Gol Anulado [query] => Gol Anulado ) [7] => stdClass Object ( [name] => Serena Williams [query] => Serena Williams ) [8] => stdClass Object ( [name] => Felipe Melo [query] => Felipe Melo ) [9] => stdClass Object ( [name] => Last Airbender [query] => Last Airbender ) ) ) [as_of] => 1278168745 ) 
  • 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-15T14:27:02+00:00Added an answer on May 15, 2026 at 2:27 pm

    You can use json_decode to parse that source. This should work:

    $trends = file_get_contents("http://search.twitter.com/trends/current.json");
    
    print_r(json_decode($trends));
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Using Php I would like to extract the current Url of a page including
I'm trying to extract richard123 using php preg_replace but there are a lot of
Here's the current code I am using. <? header(Content-type: image/png); // example: <img src=gradient.php?height=600&width=100&start=00FF00&end=ff0000
I would like to extract the year from the current date using Python. In
I would like to extract the current path in a variable and use it
I want to take the current page's URL (using page:env(caller)) and extract a section
I want to extract all the sundays in the current month and have this
Is there a better way extract the current revision hash in Mercurial than hg
How to extract the number of current month-day in Cocoa? That's how I do
How to I extract a subdirectory in a tarball into the current directory? Example,

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.