Get legacy posts feed​
Retrieve a paginated feed of posts using legacy query parameters for backward compatibility
Query Parameters
Default value: OR
Default value: OR
Default value: 1
Default value: newest
Default value: 20
- 200
- 400
- 401
- 500
Legacy feed retrieved successfully
Schema
- Array [
- Array [
- Array [
- ]
- ]
- Array [
- ]
- ]
posts object[] required
Array of legacy posts
Post ID
Post body content
Number of likes
Whether post is a draft
Published date
Room ID
Whether post is global
Whether post is editable
Whether post is deletable
Whether post is reportable
Whether post is restorable
Citation texts
Custom last updated date
Detected translation ID
Number of views
Group name
Group link
Number of comments
Trimmed citation texts
Number of public comments
Created date
Featured date
Room post status
Estimated reading time in minutes
Whether post is liked by current user
Whether post is saved by current user
Social media post title
Twitter post prefill text
WhatsApp post prefill text
Whether author is verified
Whether post is hidden
Post language
author object
Author ID
Author username
Author display name
Author first name
Author last name
Whether author is verified
Author profile image URL
Whether user is followed by current user
Original profile image URL
List of rooms
Author display name
User type
filters object[] required
Post filters
Filter ID
Surah number
From verse
To verse
Filter indicator text
chapter object
Chapter ID
Chapter name
Chapter number
Number of verses in chapter
citation_names object[] required
Citation names for this chapter
Citation name ID
Citation name
Language ID
Translation ID
Whether this is the default citation name
Whether this is the default for filter
tags object[] required
Post tags
Tag ID
Tag name
Tag language
{
"posts": [
{
"id": 123,
"body": "This is a reflection on the verse...",
"likes": 5,
"draft": false,
"published_at": "2023-12-01T10:00:00Z",
"room_id": 1,
"global": true,
"editable": null,
"deletable": null,
"reportable": null,
"restorable": false,
"citation_texts": {
"0": [
"Quran 2:1-5"
]
},
"custom_last_updated": "2023-12-01T10:00:00Z",
"detected_translation": 2,
"views": 10,
"group": "Study Group",
"group_link": "study-group",
"comments_count": 3,
"trimmed_citation_texts": {
"0": [
[
"Quran 2:1-5"
]
]
},
"public_comments_count": 3,
"created_at": "2023-12-01T10:00:00Z",
"featured_at": "2023-12-01T10:00:00Z",
"room_post_status": "public",
"estimated_reading_time": 2,
"liked": false,
"saved": false,
"social_media_post_title": "John Doe on Quran 2:1-5",
"twitter_post_prefill": "Check out this reflection...",
"whatsapp_post_prefill": "Check out this reflection...",
"verified": true,
"hidden": false,
"language": "ENGLISH",
"author": {
"id": 123,
"username": "john_doe",
"name": "John Doe",
"first_name": "John",
"last_name": "Doe",
"verified": true,
"profile_img": "https://example.com/avatar.jpg",
"followed": false,
"original_profile_img": "https://example.com/avatar-large.jpg",
"rooms_list": [],
"display_name": "John Doe",
"user_type": "student"
},
"filters": [
{
"id": 2001005000,
"surah_number": 2,
"from": 1,
"to": 5,
"indicator_text": "surah-2-1:5",
"chapter": {
"id": 2,
"name": "Al-Baqarah",
"number": 2,
"size": 286,
"citation_names": [
{
"id": 1,
"name": "Al-Baqarah",
"language_id": 2,
"translation_id": 1,
"default": true,
"default_for_filter": true
}
]
}
}
],
"tags": [
{
"id": 1,
"name": "reflection",
"language": "ENGLISH"
}
]
}
]
}
Invalid query parameters
Unauthorized - authentication required
Internal server error