Jobs DVU Count API
Instructions of how to use Jobs DVU Count API.
Use this API to measure job usage for billing or monitoring.
This API retrieves the DVU count for executed jobs. Results can be grouped either by DataSource or JobId (default), depending on the parameter group_by
.
The API returns up to 500 records per request.
If there are not usage metrics to display for all Job IDs sent, the endpoint can return a Not Found response.
Examples
Jobs DVU Count
curl --request POST \
--url https://api.platform.datastreamer.io/api/v2/customer-usage/jobs \
--header 'apikey: <apikey>' \
--header 'Content-Type: application/json' \
--data '{
"job_ids": [
"f129988c-2e39-422b-a203-72b5db1e1310",
"bf9e4547-874f-4b94-9ee7-03bdd1e720ac"
]
}'
Response
{
"jobs": [
{
"job_id": "f129988c-2e39-422b-a203-72b5db1e1310",
"dvu_count": 7
},
{
"job_id": "bf9e4547-874f-4b94-9ee7-03bdd1e720ac",
"dvu_count": 28
}
]
}
Jobs DVU Count - Group by DataSource
curl --request POST \
--url https://api.platform.datastreamer.io/api/v2/customer-usage/jobs \
--header 'apikey: <apikey>' \
--header 'Content-Type: application/json' \
--data '{
"group_by": "DataSource",
"job_ids": [
"f129988c-2e39-422b-a203-72b5db1e1310",
"bf9e4547-874f-4b94-9ee7-03bdd1e720ac"
]
}'
Response
{
"jobs": [
{
"job_id": "f129988c-2e39-422b-a203-72b5db1e1310",
"dvu_count": 7,
"data_source": "vetric_instagram_user_reels"
},
{
"job_id": "bf9e4547-874f-4b94-9ee7-03bdd1e720ac",
"dvu_count": 28,
"data_source": "vetric_instagram_hashtag_feed_sections"
}
]
}
Updated 10 days ago