List coding tasks
curl --request GET \
--url https://interview.qode.world/api/v1/coding-tasks \
--header 'Authorization: Bearer <token>'import requests
url = "https://interview.qode.world/api/v1/coding-tasks"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://interview.qode.world/api/v1/coding-tasks', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://interview.qode.world/api/v1/coding-tasks",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://interview.qode.world/api/v1/coding-tasks"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://interview.qode.world/api/v1/coding-tasks")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://interview.qode.world/api/v1/coding-tasks")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"success": true,
"data": {
"items": [
{
"id": "123e4567-e89b-42d3-a456-426614174000",
"slug": "two-sum",
"title": "Two Sum",
"difficulty": "EASY",
"topics": [
{
"id": "7c1a9b2e-3d4f-4a5b-8c6d-9e0f1a2b3c4d",
"name": "Arrays",
"slug": "arrays",
"category": "DATA_STRUCTURE"
}
],
"languages": [
{
"id": "b0c1d2e3-f4a5-4b6c-8d7e-9f0a1b2c3d4e",
"slug": "python",
"name": "Python"
}
]
}
],
"total": 1,
"page": 1,
"size": 20
}
}{
"status": 401,
"errors": "Invalid API key"
}{
"status": 401,
"errors": "<string>"
}{
"status": 401,
"errors": "<string>"
}Coding Interviews
List coding tasks
List the coding task bank, filterable by difficulty, topic, and programming language. Paginated; size defaults to 20 and is capped at 100.
GET
/
coding-tasks
List coding tasks
curl --request GET \
--url https://interview.qode.world/api/v1/coding-tasks \
--header 'Authorization: Bearer <token>'import requests
url = "https://interview.qode.world/api/v1/coding-tasks"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://interview.qode.world/api/v1/coding-tasks', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://interview.qode.world/api/v1/coding-tasks",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://interview.qode.world/api/v1/coding-tasks"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://interview.qode.world/api/v1/coding-tasks")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://interview.qode.world/api/v1/coding-tasks")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"success": true,
"data": {
"items": [
{
"id": "123e4567-e89b-42d3-a456-426614174000",
"slug": "two-sum",
"title": "Two Sum",
"difficulty": "EASY",
"topics": [
{
"id": "7c1a9b2e-3d4f-4a5b-8c6d-9e0f1a2b3c4d",
"name": "Arrays",
"slug": "arrays",
"category": "DATA_STRUCTURE"
}
],
"languages": [
{
"id": "b0c1d2e3-f4a5-4b6c-8d7e-9f0a1b2c3d4e",
"slug": "python",
"name": "Python"
}
]
}
],
"total": 1,
"page": 1,
"size": 20
}
}{
"status": 401,
"errors": "Invalid API key"
}{
"status": 401,
"errors": "<string>"
}{
"status": 401,
"errors": "<string>"
}Authorizations
Provide the API key issued to you by your organization admin. Send it as Authorization: Bearer <api-key> on every request.
Query Parameters
Page index (1-based).
Required range:
x >= 1Number of tasks per page. Maximum is 100.
Required range:
1 <= x <= 100Filter by difficulty.
Available options:
EASY, MEDIUM, HARD Comma-separated list of topics to filter by — each a slug or name from GET /coding-topics.
Comma-separated list of programming languages to filter by — each a slug or name from GET /coding-languages.
Free-text search across task title and slug.