Skip to main content

Get product

Get All Product

Returns a paginated list of products for eLimu, including the available API endpoints and the core parameters used in product retrieval.

GET /edtech/v1/products
const webRequest = fetch(
"BASE_URL/edtech/v1/products?page=1&take=50&orderBy=DESC",
{
method: "GET",
headers: {
"x-client-api-key": "your-api-key",
},
}
).then((response) => response.json());

Response 200

RESPONSE

{
"statusCode": 200,
"description": "Successful: got product list",
"data": {
"total": 100,
"data": [
{
"id": "string",
"category": "LITERACY",
"chunks": {},
"description": "string",
"imgUrl": "string",
"logoImgUrl": "string",
"name": "string",
"previewUrl": "string",
"metrics": [
"coins"
]
}

]
}
}

Get A Product

Returns the details of the product which its id is passed in the query parameter,

GET /edtech/v1/products/:id
const webRequest = fetch(
"BASE_URL/edtech/v1/products/:id",
{
method: "GET",
headers: {
"x-client-api-key": "your-api-key",
},
}
).then((response) => response.json());

Response 200

Content type: application/json

RESPONSE

{
"statusCode": 200,
"description": "Successful: got product list",
"data": {
"id": "string",
"category": "LITERACY",
"chunks": {},
"description": "string",
"imgUrl": "string",
"logoImgUrl": "string",
"name": "string",
"previewUrl": "string",
"metrics": [
"coins"
]
}
}

Get A Product srcUrl

Returns the details of the product which its id is passed in the query parameter,

GET /edtech/v1/products/:id/play
const webRequest = fetch(
"BASE_URL/edtech/v1/products/:id/play",
{
method: "GET",
headers: {
"x-client-api-key": "your-api-key",
},
}
).then((response) => response.json());

Response 200

Content type: application/json

RESPONSE

{
"statusCode": 200,
"description": "Successful: got product url and data",
"data": {
"srcUrl": "",
"chunks": {
"": ""
}
}
}