Error with Alexa's API for domains without Alexa Rank

154 Views Asked by At

I am using Alexa's API (the URLInfo function) to check the Alexa Rank of some domains. This works well for most URLs, however when I use a URL that is too new to have an alexa rank, it instead returns to me the alexa rank of the main domain.

For example, when checking http://example.blogspot.com or http://example.wordpress.com, etc, If the domain does not have an Alexa rank, it instead returns the Alexa rank of http://wordpress.com and http://blogspot.com respectively.

Is there any way to avoid this from happening?

0

There are 0 best solutions below