1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.
  2. Better Analytics for WordPress Get It Free

How to use yahoo answer API instead of screen scraping?

Discussion in 'Yahoo API' started by komrad, Mar 25, 2008.

  1. #1
    Im trying to figure out how to use yahoo answer API since this is my first using yahoo API, from what I have observe in google API its very simple to use and they provide and detailed manual on how to use it and give you sample codes. In yahoo software development kit, the sample code is all about yahoo search, i can't find any related from yahoo answer.. Sorry im confuse about http://developer.yahoo.com/answers/. I don't know where to start. Any help? :confused:
     
    komrad, Mar 25, 2008 IP
  2. 2ct7

    2ct7 Peon

    Messages:
    245
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    0
    #2
    I can't offer help but this a great topic and I would love to know what you find out. Can you update it?
     
    2ct7, Apr 10, 2008 IP
  3. BooTCaT

    BooTCaT Active Member

    Messages:
    179
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    68
  4. freelancewebaz

    freelancewebaz Well-Known Member

    Messages:
    974
    Likes Received:
    23
    Best Answers:
    1
    Trophy Points:
    145
    #4
    Here's something to get you started using the API. It uses PHP and simplexml.

    
    <?php
    
    
    $url = "http://answers.yahooapis.com/AnswersService/V1/getByCategory?appid=YahooDemo&category_id=396545664";
    $data = file_get_contents($url);
    $answers = new SimpleXMLElement($data);
    
    
    foreach($answers as $answer)
    {
        echo $answer->Category."\n";
        echo $answer->Subject."\n";
        echo $answer->Content."\n";
        echo "\n";
    }
    
    
    ?>
    Code (markup):
     
    freelancewebaz, Aug 4, 2011 IP
  5. uleesgold

    uleesgold Member

    Messages:
    288
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    30
    #5
    I went to the URL in that example and it gives this response, nothing more:
    Request Rate Limited

    Could the API / site be down?

    this information is found at the bottom of the page about Y!A API.

    RATE LIMITS

    Yahoo! Web Search web services are limited to 5,000 queries per IP per day per API. See information on rate limiting and our Usage Policy to learn about acceptable uses and how to request additional queries.

    ERRORS

    The Yahoo! Answers Web Search services return the standard errors. There are no service-specific errors.
     
    uleesgold, Mar 2, 2012 IP