Skip to content

1998code/isitdownorjustme-API

Repository files navigation

Getting Started

hero

Full Tutorial

https://1998design.medium.com/how-to-get-website-status-with-website-monitor-api-a396e945c007

First, run the development server:

npm run dev
# or
yarn dev

Open http://localhost:3000 with your browser to see the result.

[API routes] This endpoint can be edited in pages/api/public.js.

How to use

  1. METHOD: GET
  2. API Path: http://localhost:3000/api/public?url=<WEBSITE_URL>
    2a. Local API Sample: http://localhost:3000/api/public?url=https://apple.com or
    2b. Testing API Sample: https://monitor-api.vercel.app/api/public?url=https://apple.com
  3. Return: { "status": 200, "statusText": "OK", "isUP": true, "isDown": false }

Resp json

Questions?

  • Please open an issue or ask in discussion section.