I have a PHP script that uses the Twitter Search API to find tweets matching a search but for some reason is no longer working and is not returning any results.
Does anyone know what is going wrong?
<?php
$search=json_decode(file_get_contents('https://search.twitter.com/search.json?q='.urlencode($_GET[q]).'%20vine.co%2Fv%2F&result_type=recent&include_entities=1&rpp=9&page='.$_GET[page]));
foreach($search->results as $result){
foreach($result->entities->urls as $url){
echo $url->expanded_url;
}
}
?>