Posts
Get posts
get/posts
Request
- Base URL: https://api.yani.tv
- URL: https://api.yani.tv/posts
- Auth: none declared
Query parameters
status'published' | 'checking' | 'rejected'
Filter posts by status (admin only)
user_idinteger
Get posts created by specific user
anime_idinteger
Get posts for specific anime
category'anime_news' | 'site_news' | 'articles' | 'interview'
limitinteger
skipinteger
sort'new' | 'old' | 'best'
Response
Success response
Example response
{
"response": [
{
"title": "Post title",
"preview_image": "https://example.com/preview.webp",
"id": 123,
"content_preview": "Text of the post, first 200-300 symbols",
"user": {
"id": 1,
"nickname": "nickname",
"about": "About text",
"banned": false,
"ids": {
"shikimori": {
"id": 1,
"nickname": "shiki_nickname"
},
"tg_nickname": "tg_nickname",
"vk": 12345
},
"avatars": {
"big": "https://example.com/big.webp",
"full": "https://example.com/full.avif",
"small": "https://example.com/small.webp"
},
"bdate": 1104537600,
"last_online": 1104537600,
"sex": 0,
"roles": [
"editorPlus"
],
"register_date": 1104537600,
"texts": {
"color": 123,
"left": "left text",
"right": "right text"
},
"banner": {
"cropped": "https://example.com/cropped.webp",
"full": "https://example.com/full.avif"
}
},
"category": {
"id": 1,
"title": "новости сайта",
"uri": "site_news"
},
"created_at": 123455644
}
]
}Changes
No recorded changes to this operation across all 1 revision of this API.