Data from Report
When we request data from several reports, there will be a short delay while we process the results. The initial response will give us a Request ID, a result URL, and a state of the query.
Response (JSON)
{
"status": {
"requestId": "123456-7890-9876-5432101234",
"resultUrl": "mapi.placed.com/data/123456-7890-9876-5432101234",
"state": "PENDING"
}
}
In this case, we can retrieve data from the report once they are finished processing via this endpoint.
reportId
string
required
The ID of the report to pull from.
``200 200
object
result
object
lastUpdateDate
string
data
object
data object
``400 400
xxxxxxxxxx
curl --request POST \
--url https://mapi.placed.com/data/reportId \
--header 'accept: application/json' \
--header 'authorization: Basic ••••'
xxxxxxxxxx
{
"result": {
"lastUpdateDate": "2022-02-04",
"data": {
"columns": [
{
"name": "reportId",
"fieldType": "REPORT_ID"
},
{
"name": "impressions",
"fieldType": "METRIC"
},
{
"name": "reach",
"fieldType": "METRIC"
},
{
"name": "frequency",
"fieldType": "METRIC"
},
{
"name": "spend",
"fieldType": "METRIC"
},
{
"name": "cvr",
"fieldType": "METRIC"
},
{
"name": "visits",
"fieldType": "METRIC"
},
{
"name": "cpv",
"fieldType": "METRIC"
},
{
"name": "lift",
"fieldType": "METRIC"
},
{
"name": "liftConfidence",
"fieldType": "METRIC"
},
{
"name": "behavioralLift",
"fieldType": "METRIC"
},
{
"name": "behavioralLiftConfidence",
"fieldType": "METRIC"
}
],
"rows": [
{
"values": [
"demo-id-1",
543554,
23071,
23.56,
6526.91,
0.8252,
448516,
0.01,
0.5051,
0.99,
null,
null
]
}
]
}
}
}