Get Event Service Feeds

get
Get Event Service Feeds

https://environment.lvis.io/api/v2/events/:event_id/service_feeds/:service_type/:feed_id
Request
Response
Request
Path Parameters
event_id
required
string
Event ID.
service_type
required
string
Type of the service to fetch feeds from.
feed_id
required
string
Type of the feed to fetch from a service.
Headers
Authorization
required
string
Bearer JmsmU5gZb6xNVUgQGoKcQLvQjRhKAUSb
Content-Type
required
string
application/vnd.api+json
Response
200: OK
Response depends on type of the service.
{
"data": {
"id": "0873472f-5284-4f0f-926f-b9c17ff8f071",
"type": "service_feeds",
"attributes": {
"rounds": [
{
"round": "Round #1",
"segments": [
{
"name": "gender",
"values": [
{
"value": "female",
"data": {
"count": "26",
"sum": "2371"
}
},
{
"value": "male",
"data": {
"count": "17",
"sum": "1426"
}
}
]
},
{
"name": "age",
"values": [
{
"value": "25-34",
"data": {
"count": "21",
"sum": "1898"
}
},
{
"value": "35-44",
"data": {
"count": "10",
"sum": "871"
}
},
{
"value": "45-54",
"data": {
"count": "9",
"sum": "803"
}
},
{
"value": "55+",
"data": {
"count": "3",
"sum": "225"
}
}
]
}
]
},
{
"round": "Round #2",
"segments": [
{
"name": "gender",
"values": [
{
"value": "female",
"data": {
"count": "34",
"sum": "3246"
}
},
{
"value": "male",
"data": {
"count": "37",
"sum": "3562"
}
}
]
},
{
"name": "age",
"values": [
{
"value": "25-34",
"data": {
"count": "14",
"sum": "1082"
}
},
{
"value": "35-44",
"data": {
"count": "21",
"sum": "1371"
}
},
{
"value": "45-54",
"data": {
"count": "27",
"sum": "2498"
}
},
{
"value": "55+",
"data": {
"count": "23",
"sum": "1857"
}
}
]
}
]
}
]
}
}
}

Example

cURL
Response
cURL
curl --request GET \
--url https://environment.lvis.io/api/v2/events/4ba39f91-627f-4668-92be-9519a803e06d/service_feeds/demographics/results \
--header 'Authorization: Bearer JmsmU5gZb6xNVUgQGoKcQLvQjRhKAUSb' \
--header 'Content-Type: application/vnd.api+json'
Response
{
"data": {
"id": "0873472f-5284-4f0f-926f-b9c17ff8f071",
"type": "service_feeds",
"attributes": {
"rounds": [
{
"round": "Round #1",
"segments": [
{
"name": "gender",
"values": [
{
"value": "female",
"data": {
"count": "26",
"sum": "2371"
}
},
{
"value": "male",
"data": {
"count": "17",
"sum": "1426"
}
}
]
},
{
"name": "age",
"values": [
{
"value": "25-34",
"data": {
"count": "21",
"sum": "1898"
}
},
{
"value": "35-44",
"data": {
"count": "10",
"sum": "871"
}
},
{
"value": "45-54",
"data": {
"count": "9",
"sum": "803"
}
},
{
"value": "55+",
"data": {
"count": "3",
"sum": "225"
}
}
]
}
]
},
{
"round": "Round #2",
"segments": [
{
"name": "gender",
"values": [
{
"value": "female",
"data": {
"count": "34",
"sum": "3246"
}
},
{
"value": "male",
"data": {
"count": "37",
"sum": "3562"
}
}
]
},
{
"name": "age",
"values": [
{
"value": "25-34",
"data": {
"count": "14",
"sum": "1082"
}
},
{
"value": "35-44",
"data": {
"count": "21",
"sum": "1371"
}
},
{
"value": "45-54",
"data": {
"count": "27",
"sum": "2498"
}
},
{
"value": "55+",
"data": {
"count": "23",
"sum": "1857"
}
}
]
}
]
}
]
}
}
}