Create monitor

You can create new monitors by sending POST requests to api.datanews.io/v1/monitors/create endpoint.

Request
curl -XPOST 'api.datanews.io/v1/monitors/create'  -H 'Content-Type: application/json' -d '{"query": "Lego", "webhook": "mywebhook.com"}'
Response
{
    "id": "b5f8d80bd6154av0s80fds614ep0656e",
    "query": "Lego",
    "webhook": "mywebhook.com",
    "active": true,
    "last_run_id": "",
    "last_run_time": ""
}

Parameters

# Parameter Description
1 query Search query, may consist of any number of keywords.
2 webhook Url of the webhook, where the results will be sent, may be empty. In this case results would only be stored in the database.
Jump to