GET/ articles/
List article
You can return a list of all of your articles.
Results are paginated: follow next to get the next page (see Response pagination).
Request
- cURL
- JavaScript
- PHP
- Python
curl -X GET "https://<your_app_subdomain>.user.com/api/public/articles/" \
-H "Authorization: Token <your_64_char_api_key>" \
-H "Accept: */*; version=2"
const response = await fetch(
"https://<your_app_subdomain>.user.com/api/public/articles/",
{
method: "GET",
headers: {
Authorization: "Token <your_64_char_api_key>",
Accept: "*/*; version=2",
},
},
);
const data = await response.json();
console.log(data);
<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://<your_app_subdomain>.user.com/api/public/articles/",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Token <your_64_char_api_key>",
"Accept: */*; version=2",
],
]);
$response = curl_exec($curl);
curl_close($curl);
echo $response;
import requests
response = requests.get(
"https://<your_app_subdomain>.user.com/api/public/articles/",
headers={
"Authorization": "Token <your_64_char_api_key>",
"Accept": "*/*; version=2",
},
)
print(response.json())
Response examples
- 200 OK
{"count": 1,"next": null,"previous": null,"results": [{"id": 1,"title": "Example title","slug": "test","content": "Example content","author": ,3 fields"url": "Example url","intro_text": "","categories": [],"views": 1,"created_at": "2025-12-05T10:23:26.428800Z","updated_at": "2025-12-05T10:23:26.435802Z","rating": null,"translations": ,1 item"language": "en","tags": []}]}Response fields
Fields returned in the 200 OK response body.
- count
- Number of results across all pages. It can lag behind recent changes; see Response pagination.
- next
- URL of the next page of results. null on the last page.
- previous
- URL of the previous page of results. null on the first page.
- results
- Results on this page.
- results[].
id - ID of the article.
- results[].
title - A title of a web push message.
- results[].
slug - URL slug of the article's default translation.
- results[].
content - A content of a message sent to the user.
- results[].
author - A unique identifier of an agent who created a global variable. A visible author.
- results[].
author. id - ID of the agent who wrote the article.
- results[].
author. name - Full name of the agent who wrote the article.
- results[].
author. avatar - URL of the author's avatar; the app's default avatar if the agent has none.
- results[].
- results[].
url - A URL of a web push message.
- results[].
intro_text - Intro text of the article in the requested language.
- results[].
categories - A list of categories' ids.
- results[].
views - Number of times the article was viewed.
- results[].
created_at - When the article was created, ISO 8601.
- results[].
updated_at - When the article was last updated, ISO 8601.
- results[].
rating - Average reader rating from
1to5, as a string with two decimal places;nullif nobody has rated the article. - results[].
translations - Language versions of the article.
- results[].
translations[]. id - ID of the translation.
- results[].
translations[]. language - ISO 639-1 code of the language.
- results[].
translations[]. is_default - Whether this is the article's default translation.
- results[].
translations[]. status - Publication status of the translation:
0draft,1ready to publish,2published or3archived. - results[].
translations[]. label - Name of the translation's language, in English.
- results[].
- results[].
language - ISO 639-1 code of the language.
- results[].
tags - Names of the article's tags.
- results[].
note
Errors that can come from any endpoint (401, 429, 500, 502, 504) are described in HTTP response codes.