Metrics

Create Task

When requesting data from the API, a task is created. This is done because the requested data might not be ready right away.

A postback_url can be supplied to send a HTTP request with the data once it is ready.

POST/metrics

Properties

domain
string
required The domain you want to process
market
string
required The market you wish to check the domain against
See available markets here
currency
string
optional The currency of the morningscore
See available currencies here
postback_url
string
optional The URL endpoint that will receive the data once ready

Request
Response
{
 	"domain": "morningscore.io",
 	"market": "da_dk",
 	"currency": "USD",
 	"postback_url": ""
}
{
    "status": "ok",
    "task": {
        "_id": "5f16de8ee67f8e002ca584db",
        "type": "metrics",
        "username": "admin",
        "parameters": {
            "domain": "morningscore.io",
            "market": "da_dk",
            "currency": "USD"
        },
        "state": "processing",
        "postback_url": "",
        "created_at": "2020-07-21T12:24:46.598Z",
        "__v": 0
    }
}

results matching ""

    No results matching ""