List monitors

You can retrieve all monitors using api.datanews.io/v1/monitors/list endpoint.

To retrieve a particular monitor by id, just pass monitor id as the path variable, such as api.datanews.io/v1/monitors/list/{id}

Request
curl -XGET 'api.datanews.io/v1/monitors/list' 
Response
[
  {
    "id": "d2f8d80bd615493sg380fd9614ee0655e",
    "query": "Starship",
    "webhook": "https://mywebhook.com",
    "active": true,
    "last_run_id": "2ab634b3bf8d4a80bs4f91fbf0d524ef",
    "last_run_time": "2020-08-09T11:49:08.702318"
  },
  {
    "id": "p1cemf6d46se42e187730ocd063dkd73",
    "query": "SpaceX",
    "webhook": "https://mywebhook.com",
    "active": true,
    "last_run_id": "d4eddd4757b349845ffs85v62ab53827",
    "last_run_time": "2020-08-09T11:39:04.092378"
  }
]