# API doc of SabaSports VN Data ## Post_list This API provides basic information about the article list. URL: https://www.sabavn.net/api/post/getlist ### Request - Headers | Key | Value | | ----------------- |:----------------------- | | Token | U0FCQSBTUE9SVFMgaMOyYSB2w6BvIGN14buZYyBjaMahaSE= | - Params | Parameter | Format | Description | | ----------------- |:----------------------- |:----------------------- | | LastTimestamp | integer |Timestamp for search(UTC time)| | Category | integer |News:3 <br> Video:4| | Subject | integer |All:0 <br> Soccer:2 <br> Basketball:3 <br>Tennis:81 | | LangKey | integer |VN: 3| |StartItem | integer| location of first item (default = 0) |RowLimit| interger| return the maximum value of the data. The default value is 100 and the maximum is 1000. ### Response | Parameter | Format | Description | | ----------------- |:----------------------- |:----------------------- | | PostId | integer || | Title | string || | PublishDate | string($date-time) |Time zone:GMT+8 | | Image | string || | Timestamp | string |PublishDate| | Category | integer || ```javascript=1 "PostId": 0, "Title": "string", "PublishDate": "2022-09-06T07:04:56.076Z", "Image": "string", "Timestamp": 0, "Category": 0"; ``` ## Post_detail_content Base on Post_list API’s PostId, this API provides the detail content of the article URL: https://www.sabavn.net/api/post/getdetail ### Request - Headers | Key | Value | | ----------------- |:----------------------- | | Token | U0FCQSBTUE9SVFMgaMOyYSB2w6BvIGN14buZYyBjaMahaSE= | - Params | Parameter | Format | Description | | ----------------- |:----------------------- |:----------------------- | | PostId | integer || | LangKey | integer |VN: 3| ### Response | PostId | Format | Description | | ----------------- |:----------------------- |:----------------------- | | PostId | integer || | Title | string || | PublishDate | string($date-time) |Time zone:GMT+8 | | Subjects | Object || | EditorId | string |Author ID| | Content | string || | Tags | Object |hashtag| | Content | string || | LikeCount | integer || | UrlSlug | string || | SabaVideoContent | string || - Subjects | Parameter | Format | Description | | ----------------- |:----------------------- |:----------------------- | | Id | integer |Subject ID| | Name | string |Subject Name| - Tags | Parameter | Format | Description | | ----------------- |:----------------------- |:----------------------- | | Tag | string |hashtag in this post| ```javascript=1 { "PostId": 0, "Title": "string", "PublishDate": "2022-09-06T07:04:56.083Z", "Subjects": [ { "Id": 0, "Name": "string" } ], "EditorId": 0, "Content": "string", "Tags": [ "string" ], "Category": 0, "LikeCount": 0, "UrlSlug": "string", "SabaVideoContent": "string" } ``` ## Post_deleted_list this API provides list post deleted URL: https://www.sabavn.net/api/post/GetDeletedPost ### Request - Headers | Key | Value | | ----------------- |:----------------------- | | Token | U0FCQSBTUE9SVFMgaMOyYSB2w6BvIGN14buZYyBjaMahaSE= | - Params | Parameter | Format | Description | | ----------------- |:----------------------- |:----------------------- | | LastTimestamp | integer | Timestamp for search(UTC time)| | LangKey | integer |VN: 3| ### Response | PostId | Format | Description | | ----------------- |:----------------------- |:----------------------- | | PostId | integer || ```javascript=1 [ 6991, 6600 ] ```