Mobile API Documentation

News Articles

Overview: Gives list of articles for a subject, or from all subjects.
All parameters are mandatory with every API call.

Input Parameters

Parameter Description
app_name String, Application identifier + version, e.g. "idex-ios"
app_version String, Application version e.g. "1.2.1""
app_key String, Secret application key, string, e.g. "ABCDEFGAASFDA13456211233".
subject_id Integer, ID of subject, if not subject, to show news from any subject, set to null.
max_results Integer, number of maximum amount of articles to include. Max may be overridden on server side.

Sample Request Extended

HTTP JSON
Endpoint: https://mobapi.idexonline.com/news/api/v2.0/articlelist
{
	"app_name":"idex-ios",
	"app_version":"1.2.1",
	"app_key":"IMAStg24B",
	"subject_id": null,
	"max_results":4
}

Sample Response

JSON Data with HTTP Code 200
If all goes well, the response will be an HTTP 200 code and the response_code in the JSON will be 0.

{
	"result_info": {
		"response_code": 0,
		"response_description": ""
	},
	"results": {
		"items_included": 4,
		"articles": [
			{
				"item_id": 48912,
				"title": "De Beers and Botswana Sign Preliminary Agreements",
				"author": "John Jeffay",
				"release_date": "2023-10-01T10:00:00.0000000",
				"image_url": "",
				"short_content": "De Beers and the Botswana government today (1 October) said they had taken a significant step towards finalizing their new sales and mining deals, with the signing of Heads of Terms.",
				"item_url": "https://www.idexonline.com/FullArticle?Id=48912"
			},
			{
				"item_id": 48911,
				"title": "G7 Delegates Visit India Ahead of Sanctions on Russia",
				"author": "John Jeffay",
				"release_date": "2023-10-01T05:00:00.0000000",
				"image_url": "https://www.idexonline.com/image_bank/NewsRoom_FullArticle/locations/flags/g7%20flags.jpg",
				"short_content": "G7 representatives have completed a fact-finding mission to explore how India's diamond industry can comply with forthcoming sanctions on Russian stones.",
				"item_url": "https://www.idexonline.com/FullArticle?Id=48911"
			},
			{
				"item_id": 48906,
				"title": "Another Blow for Israel's Diamond Trade",
				"author": "John Jeffay",
				"release_date": "2023-09-28T10:00:00.0000000",
				"image_url": "https://www.idexonline.com/image_bank/NewsRoom_FullArticle/diamond%20exchanges/ide.jpg",
				"short_content": "Israel's diamond trade suffered another blow in August, with rough imports down 69 per cent year-on-year and rough exports down by 80 per cent. The figures were significantly worse than July",
				"item_url": "https://www.idexonline.com/FullArticle?Id=48906"
			},
			{
				"item_id": 48903,
				"title": "Hundreds Scour Surat Street for Diamonds",
				"author": "John Jeffay",
				"release_date": "2023-09-28T09:12:00.0000000",
				"image_url": "",
				"short_content": "Crowds gathered in Surat after reports that angry traders had emptied parcels of diamonds onto the street below, in protest at plunging lab grown prices.",
				"item_url": "https://www.idexonline.com/FullArticle?Id=48903"
			}
		]
	}
}
		


Test the API


Generate JSON Request



POST






© IDEX Online 2024   -   www.idexonline.com