Skip to content

goknsh/down-or-what-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Down or What? API

Made with PHP

In production: Hawk

Visit the demo here

Usage

API is currently open to anyone and you don't need an API key.

STEPS:

  1. Just perform a POST or GET request to https://dow-api.herokuapp.com/?url=<site-name-entered-by-user>

  2. The Server will return JSON like this: (Ex: https://www.google.com)

{
  "status": "Up",
  "latency": 4668.242775,
  "code": 200,
  "size": 46680,
  "speed": 0.01,
  "lookup": 16.587,
  "establish": 20.562,
  "content": "text\/html; charset=ISO-8859-1",
  "ssl": "Google Internet Authority G2",
  "sslexp": "May 8 10:39:00 2018 GMT",
  "checkTime": "2018-03-01 17:26:04"
}
  1. All you have to do is parse the JSON.

If you are interested, check out the demo page and view the source code

Testing

To test if your site/API is working, you can do this: https://dow-api.herokuapp.com/test-codes?code=<any-reponse-code>

License

MIT LICENSE

Made with ❤️ and 🎧 by akaanksh

Releases

No releases published

Packages

No packages published

Languages