# Sample API doc of SabaSports Data ## WebSite |LangKey| WebSite | URL | |-------|---------|-----| |1|CN|https://www.thesabanewscn.com| |2|EN|https://www.thesabamynews.com| |3|TH|https://www.sabanews-th.com| |4|ID|https://www.thesabasportsindo.com| |5|IN|https://www.cricsabasportsin.com| ## Post_list This API provides basic information about the article list. Order by PostModified. ### Endpoint Example https://saba-admin.bvg.tw/api/?act=post_list&LangKey=1&Subject=0&Category=3 https://saba-admin.bvg.tw/api/?act=post_list&LangKey=1&Subject=0&Category=3&StartPostTimestamp=1673778240 ### Request | Parameter | Format | Description | | -------- | -------- | -------- | | StartPostTimestamp | integer |Timestamp for search | | Category | integer | Bulletin:2<br>News:3<br>Video:4<br>All: 0 | | Subject | integer | All:0<br>Soccer:2<br>basketball:3<br>Cricket:4<br>Tennis:81 | | LangKey | integer | ZH:1<br>EN:2<br>TH:3<br>ID:4<br>IN:5 | | Limit | integer | Default:10 | ### Response | Parameter | Format | Description | | ------------------- | ---------------- | -------------------- | | PostId | integer | | | Title | string | | | PublishDate | string($date-time)| Time zone:GMT+8 | | PostModified | string($date-time)| Time zone:GMT+0 | | Image | string | | | Timestamp | integer | Post Modified Date | | Category | integer | | | AllCategory | Array | | | UrlSlug | string | Post URL | | Status | string | publish , trash | | StartPostTimestamp | integer | *Return the timestamp of the first Post* | | LastPostTimestamp | integer | *Return the timestamp of the last Post* | ```json= { "PostId": 0, "Title": "string", "PublishDate": "2024-03-07 09:00:00", "PostModified": "2024-03-07 01:00:00", "Image": "string", "Timestamp": 0, "Category": 0, "AllCategory": [], "UrlSlug": "string", "Status" : "publish", "StartPostTimestamp": 0, "LastPostTimestamp": 0 } ``` <br> --- ## Post_detail_content Base on Post_list API's PostId, this API provides the detail content of the article ### Endpoint Example https://saba-admin.bvg.tw/api/?act=post_detail_content&LangKey=5&PostId=33948 ### Request | Parameter | Format | Description | | -------- | -------- | -------- | | PostId | integer | | | LangKey | integer | ZH:1<br>EN:2<br>TH:3<br>ID:4<br>IN:5 | ### Response | Parameter | Format | Description | | ----------- | ------------------ | ---------------------------------- | | PostId | integer | | | Title | string | | | PublishDate | string($date-time) | Time zone:GMT+8 | | Subjects | Object | | | EditorId | integer | Author ID | | Content | string | | | Tags | Object | hashtag | | Category | integer | | | UrlSlug | string | Post URL| | YoutubeUrl | string | Youtube url | | SabaVideoContent | string | Video url | <br> * Subjects | Parameter | Format | Description | | -------- | -------- | -------- | | Id | integer | Subject ID | | Name | string | Subject Name | * Tags | Parameter | Format | Description | | -------- | -------- | -------- | | Tag | string | hashtag in this post | ```json= { "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", "YoutubeUrl":"string", "SabaVideoContent": "string" } ```