Check Site Reachability

Check reachability of any site/webpage from any country in the world.
curl --request GET \
--url 'https://api.apilayer.com/reachability?url={url}' \
--header 'apikey: dq2TlGLIDrBh1OHx0o7umAtVyyhNzFrE'
{"ip_data":{"asn":{"asnum":9009,"org_name":"M247 Ltd"},"country":"AM","geo":{"city":"Yerevan","latitude":40.1817,"longitude":44.5099,"lum_city":"yerevan","lum_region":"er","postal_code":"","region":"ER","tz":"Asia\/Yerevan"},"ip":"158.46.183.223"},"response_headers":{"CF-Cache-Status":"DYNAMIC","CF-RAY":"5a01cf3d1b472924-OTP","Cache-Control":"private","Connection":"close","Content-Type":"text\/html; charset=utf-8","Date":"Mon, 08 Jun 2020 10:08:04 GMT","Expect-CT":"max-age=604800, report-uri=\"https:\/\/report-uri.cloudflare.com\/cdn-cgi\/beacon\/expect-ct\"","Expires":"Mon, 08 Jun 2020 10:08:04 GMT","Server":"cloudflare","Set-Cookie":"__cfduid=dd271daefb5028aa096849bfea4101ce21591610884; expires=Wed, 08-Jul-20 10:08:04 GMT; path=\/; domain=.apilayer.com; HttpOnly; SameSite=Lax; Secure","Transfer-Encoding":"chunked","alt-svc":"h3-27=\":443\"; ma=86400","cf-request-id":"0334ffda2d00002924e027e200000001","set-cookie":"__cfduid=dd271daefb5028aa096849bfea4101ce21591610884; expires=Wed, 08-Jul-20 10:08:04 GMT; path=\/; domain=.apilayer.com; HttpOnly; SameSite=Lax; Secure","vary":"Cookie"},"status":"Success","status_code":200}

What is the Reachability API?

If you wish to monitor your site’s availability frequently, or build your own HTTP site status service, this is the API you’ll need.

How it works

It will fetch the requested URL and return detailed information about the destination.

 

What is most important about this API is, you can specify the originating country as you wish. Just pass the country query parameter with the 2 character country code and viola! It will automatically assign an IP address from that country and fetch the URL.

This is especially useful for discovering network issues from different routes and build status pages accordingly.