javasearchdirectoryalexa-internet

How to increase Alexa search results using Alexa API


I am creating a Java application which performs URL search for site:

http://www.alexa.com/topsites/category

User enters a category name and my application displays all URL's and performs some operations.

I am using this Alexa API for URL search.

http://docs.amazonwebservices.com/AlexaWebInfoService/2005-07-11/ApiReference_CategoryListingsAction.html

This API doesn't give all results. For example, if I search for the category "Health", this API gives only 6 results but when I visit on site I get more than 500 results.

I tried to increase result by increasing count=500 and also checked by giving Start parameter in API but I am not getting all results.

Could you please suggest me that how I can increase the results? Is there any other API which works as same Alexa API and gives all results?

I got some suggestion that DMOZ API also uses same

http://www.dmoz.org/World/Esperanto/Ludoj/Komputilaj/

but could not get the link for DMOZ search API.

Could you please provide me a link to DMOZ search API.


Solution

  • If you'll notice, there is a Start parameter in addition to Count.
    Start evidently changes the first result number returned. So:

    To get the first 50 answers:

    ...
    &Start=1
    &Count=50
    ...
    

    To get the next 50:

    ...
    &Start=51
    &Count=50
    ...
    

    And so forth, until you get an empty return (which is what is returned when Start > total # answers).