Title: how to increase return size of yahoo related Suggestions php
Tags: php;api;yahoo
Question: I have this code that will return keyword suggestion from yahoo using the api.

```function suggestion($keyword,$keyid){
        $search_key= str_replace(' ','+',$keyword);
        $app ="D4FRJzjeHUCoJsYIeYV4E6XFUlJpX.o1TWALuI-";
        $search = "http://search.yahooapis.com/WebSearchService/V1/relatedSuggestion?appid=".$app."&amp;query=".$search_key."&amp;output=json";
        $content= file_get_contents($search);
        $json = json_decode($content); 
        foreach($json-&gt;ResultSet-&gt;Result as $string){
            //insert to database
                 echo $string."<br /&gt;";
        }
    }
```

but it only return 4 keyword suggestion.
I tried adding &amp;results=30 in the search, but no luck it still return 4 keyword suggestion only.
Thanks a lot.

Comment: This sounds like something to look for in the yahoo API documentation

Here is the accepted answer: read the docs, http://developer.yahoo.com/search/web/V1/relatedSuggestion.html

its being shut down in a month, why bother using it now.



{'source': 'StackExchangeDataset', 'subset': 'stackoverflow.com', 'metadata': {'AnswerCount': 1, 'CommentCount': 1, 'ContentLicense': 'CC BY-SA 2.5', 'CreationDate': '2011:00:02/21/11', 'FavoriteCount': None, 'PostTypeId': 1, 'Tags': '<php><api><yahoo>', 'Title': 'how to increase return size of yahoo related Suggestions php', 'ViewCount': 267, 'id': 5064917, 'user_AboutMe': '<p>PHP programmer with 4 years of experience\nStill Learning and Gaining Knowledge in dynamic PHP world.</p>\n<p>Thanks to Stack Overflow! #1 Code discussion site.</p>\n', 'user_AccountId': 223371.0, 'user_DisplayName': 'RicardO', 'user_Reputation': 1179.0, 'user_Views': 197.0, 'user_id': 482526.0}}