API – News
Introduction
The news object includes news data published by University of Macau. The ‘common’ and ‘details’ are common and detailed information about the news. The earliest data tracks back to July 2003. The data is refreshed in at least 15 minutes.
Figure 1: Relationships between news, common and details
API Reference
News Data Dictionary
The earliest data tracks back to July 2003.
Field | Type | Indexed | Description | Example |
---|---|---|---|---|
itemId | integer | Yes | Unique ID for each news | "itemId": 44602 |
lastModified | date | Yes | Latest modified date time for the news | "lastModified": "2018-03-21T17:35:10+08:00" |
Common Data Dictionary
Information of the news which is common across different language, e.g. publishDate and imageUrls.
Field | Type | Indexed | Description | Example |
---|---|---|---|---|
publishDate | date | Yes | The date that the new is published | "publishDate": "2018-03-21T16:45:16+08:00" |
imageUrls | string[] | No | The URL for downloading the news photos | "imageUrls": ["http://news.umac.mo/nrs/faces/binary?id=jUbcIj_2FvQMB0OqCDY6ViWzSwwnkGxb9VfnRT_2FcPuKE4_3D","http://news.umac.mo/nrs/faces/binary?id=jUbcIj_2FvQMB0OqCDY6ViWzSwwnkGxb9Vxcy0r81MDLs_3D","http://news.umac.mo/nrs/faces/binary?id=jUbcIj_2FvQMB0OqCDY6ViWzSwwnkGxb9V_2Fhll7spm4rs_3D","http://news.umac.mo/nrs/faces/binary?id=jUbcIj_2FvQMB0OqCDY6ViWzSwwnkGxb9V_2Bm10yzxwxn8_3D"] |
Details Data Dictionary
Information of the news details in English, Chinese or Portuguese.
Field | Type | Indexed | Description | Example |
---|---|---|---|---|
locale | string | No | Language of the news details
| "locale": "en_US" |
title | string | Full Text Index (English only) | Title of the news | "title": "UM maritime big data team visits Pearl River Hydraulic Research Institute" |
content | string | Full Text Index (English only) | Content of the news | "content": "A research team specialised in maritime big data from the University of ..." |