Get All Levels Progress

get
Get All Levels Progress

https://api.bountyblok.io/v1/get_all_levels_progress
This endpoint allows you to retrieves all challenges and their progress grouped by their levels.
Request
Response
Request
Headers
Authorization
required
string
Bearer <<YOUR_API_KEY>>
Query Parameters
app_id
required
string
The app id you wish to retrieve the levels and challenges for.
account_name
required
string
The account name or username.
Response
200: OK
All levels and their progress successfully retrieved.
{
"levels": [{
"level_id": "4bfb5594-51b6-4126-9003-8e0c7d57e793",
"name": "Task Completion",
"description": "Badges awarded for completing tasks.",
"score": 0,
"challenges": [{
"challenge_id": "31b5760c-07b3-478e-a1ad-f7f9f9970c01",
"challenge_name": "Beginner Turk",
"challenge_score": 100,
"challenge_start": null,
"challenge_end": null,
"challenge_description": "Complete 5 tasks",
"challenge_rewards": [],
"tasks": [{
"task_id": "28a1d1cf-7f46-4d46-b19f-f29f1f2628d8",
"task_name": "Complete 5 tasks",
"quantity_required": 5.0000,
"quantity_completed": 0.0,
"is_valid": true,
"message": null
}
],
"tasks_required": 1,
"tasks_completed": 0,
"challenge_achievement": {
"achievement_id": "aa273121-454b-423e-9aad-c850aad9320f",
"title": "Beginner Turker",
"description": null,
"badge_url": "https://worker.effect.ai/static/badges/turker_beginner.svg"
},
"is_valid": true,
"message": null
}, {
"challenge_id": "ff6b3e44-62b7-4732-8870-8643ceecf3ea",
"challenge_name": "Novice Turker",
"challenge_score": 500,
"challenge_start": null,
"challenge_end": null,
"challenge_description": "Complete 2.500 tasks",
"challenge_rewards": [],
"tasks": [{
"task_id": "75c09c3e-d4d8-4549-86e4-bf217c5d2288",
"task_name": "Complete 2.500 tasks",
"quantity_required": 2500.0000,
"quantity_completed": 0.0,
"is_valid": true,
"message": null
}
],
"tasks_required": 1,
"tasks_completed": 0,
"challenge_achievement": {
"achievement_id": "54dbd010-31a6-45c4-bcfa-149312f416e0",
"title": "Novice Turker",
"description": null,
"badge_url": "https://worker.effect.ai/static/badges/turker_novice.svg"
},
"is_valid": true,
"message": null
}, {
"challenge_id": "f9475ea5-19da-471b-8a02-b36db9786387",
"challenge_name": "Super Turker",
"challenge_score": 1500,
"challenge_start": null,
"challenge_end": null,
"challenge_description": "Complete 35.000 tasks",
"challenge_rewards": [],
"tasks": [{
"task_id": "2ebb0d7a-889a-47f8-adbc-c7449979b798",
"task_name": "Complete 35.000 tasks",
"quantity_required": 35000.0000,
"quantity_completed": 0.0,
"is_valid": true,
"message": null
}
],
"tasks_required": 1,
"tasks_completed": 0,
"challenge_achievement": {
"achievement_id": "c0893432-fd88-4d87-ac34-2d71bb221be4",
"title": "Super Turker",
"description": null,
"badge_url": "https://worker.effect.ai/static/badges/turker_super.svg"
},
"is_valid": true,
"message": null
}, {
"challenge_id": "7f6375ad-cd63-44bd-8e75-41b31394ed18",
"challenge_name": "Master Turker",
"challenge_score": 10000,
"challenge_start": null,
"challenge_end": null,
"challenge_description": "Complete 200.000 tasks",
"challenge_rewards": [],
"tasks": [{
"task_id": "0f671b87-2149-41d5-b8d2-0d1ae49031da",
"task_name": "Complete 200.000 tasks",
"quantity_required": 200000.0000,
"quantity_completed": 0.0,
"is_valid": true,
"message": null
}
],
"tasks_required": 1,
"tasks_completed": 0,
"challenge_achievement": {
"achievement_id": "e58ac18a-16aa-4fba-9ec0-d727d097d368",
"title": "Master Turker",
"description": null,
"badge_url": "https://worker.effect.ai/static/badges/turker_master.svg"
},
"is_valid": true,
"message": null
}, {
"challenge_id": "c70002ba-7f8f-4aa0-aa43-12fd21cfaed8",
"challenge_name": "Expert Turker",
"challenge_score": 5000,
"challenge_start": null,
"challenge_end": null,
"challenge_description": "Complete 100.000 tasks",
"challenge_rewards": [],
"tasks": [{
"task_id": "d3f6a8ba-6f78-4142-9fa0-970da82b9961",
"task_name": "Complete 100.000 tasks",
"quantity_required": 100000.0000,
"quantity_completed": 0.0,
"is_valid": true,
"message": null
}
],
"tasks_required": 1,
"tasks_completed": 0,
"challenge_achievement": {
"achievement_id": "d00d92d2-7bdf-4014-bb7e-6ec4ff46c550",
"title": "Expert Turker",
"description": null,
"badge_url": "https://worker.effect.ai/static/badges/turker_expert.svg"
},
"is_valid": true,
"message": null
}
],
"is_valid": true,
"message": null
}, {
"level_id": "0c65dc6a-ab3a-41e4-b6bc-215ab71fdbb3",
"name": "Validator",
"description": "Badges awarded for validating other users.",
"score": null,
"challenges": [],
"is_valid": true,
"message": null
}
],
"is_valid": true,
"message": null
}
404: Not Found
{
"is_valid": false,
"message": "App not found for app_id: 8A205981-61C9-4C27-BEA7-ED42AB787040"
}
cURL
C#
Javascript
Python
PHP
cURL
curl --request GET
--url 'https://api.bountyblok.io/v1/get_all_levels_progress?app_id=8a205981-61c9-4c27-bea7-ed42ab787040&account_name=diminiko1234'
--header 'authorization: Bearer <<YOUR_API_KEY>>'
--data '{}'
C#
var client = new RestClient("https://api.bountyblok.io/v1/get_all_levels_progress?app_id=8a205981-61c9-4c27-bea7-ed42ab787040&account_name=diminiko1234");
var request = new RestRequest(Method.GET);
request.AddHeader("authorization", "Bearer <<YOUR_API_KEY>>");
request.AddParameter("application/json", "{}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Javascript
var data = "{}";
var xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener("readystatechange", function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open("GET", "https://api.bountyblok.io/v1/get_all_levels_progress?app_id=8a205981-61c9-4c27-bea7-ed42ab787040&account_name=diminiko1234");
xhr.setRequestHeader("authorization", "Bearer <<YOUR_API_KEY_HERE>>");
xhr.send(data);
Python
import http.client
conn = http.client.HTTPSConnection("api.bountyblok.io")
payload = "{}"
headers = { 'authorization': "Bearer <<YOUR_API_KEY>>" }
conn.request("GET", "/v1/get_all_levels_progress?app_id=8a205981-61c9-4c27-bea7-ed42ab787040&account_name=diminiko1234", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
PHP
<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => "https://api.bountyblok.io/v1/get_all_levels_progress?app_id=8a205981-61c9-4c27-bea7-ed42ab787040&account_name=diminiko1234",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_POSTFIELDS => "{}",
CURLOPT_HTTPHEADER => array(
"authorization: Bearer <<YOUR_API_KEY_HERE>>"
),
));
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}