{"_id":"55776b78a042551900b0034d","parentDoc":null,"user":"546d17e2eb9cfd1400dd4529","version":{"_id":"55773a5ba042551900b002ce","project":"55773a5ba042551900b002cb","__v":17,"createdAt":"2015-06-09T19:11:23.764Z","releaseDate":"2015-06-09T19:11:23.764Z","categories":["55773a5ca042551900b002cf","55773a6ce6063e0d00481380","55773ab007e7110d001043ec","55773abaa042551900b002d5","55773ac207e7110d001043ed","55773acb07e7110d001043ee","55773ad3a042551900b002d6","55773adce6063e0d00481383","55773ae4a042551900b002d7","55773af307e7110d001043ef","55773af907e7110d001043f0","55773b0407e7110d001043f1","563a4f7ad25e8919005f3f39","563a4fcaa19edf0d00972321","564a70dc4cd0521700523edf","564b797bcc472d0d00da9435","564b855b766d4923004e1fd1"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":true,"codename":"Motherboard","version_clean":"1.0.0","version":"1"},"category":{"_id":"55773ae4a042551900b002d7","pages":["55776b78a042551900b0034d","564b87fd7a18b00d00a21bf6","564b882d82c0c90d00ea8b69","564b8859d768500d0088b715","564b886cd768500d0088b718","564b888982c0c90d00ea8b6b","564b889b68ec9a17004e721c","564b88b98341ec0d00a7d589","564b88d382c0c90d00ea8b6d","564b891b68ec9a17004e721f","564b89280a68360d00a3a53d","564b894b7a18b00d00a21bfb","564b8962844edc170025d0af","564b897d68ec9a17004e7222"],"project":"55773a5ba042551900b002cb","version":"55773a5ba042551900b002ce","__v":14,"sync":{"url":"","isSync":false},"reference":true,"createdAt":"2015-06-09T19:13:40.679Z","from_sync":false,"order":6,"slug":"content-api","title":"Content API"},"project":"55773a5ba042551900b002cb","__v":21,"updates":[],"next":{"pages":[],"description":""},"createdAt":"2015-06-09T22:40:56.524Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"results":{"codes":[]},"settings":"","auth":"required","params":[],"url":""},"isReference":true,"order":0,"body":"The **Content API** provides access to all of the International Triathlon Union's media content. Using the API you can gain all content that is available on the [media.triathlon.org](http://media.triathlon.org) website.\n[block:image]\n{\n  \"images\": [\n    {\n      \"image\": [\n        \"https://files.readme.io/Qu8xAdsgRlOo5gVBmFt5_ITUSDMenbyCruse1290wtmk.JPG\",\n        \"ITUSDMenbyCruse1290wtmk.JPG\",\n        \"1024\",\n        \"678\",\n        \"#7389c3\",\n        \"\"\n      ]\n    }\n  ]\n}\n[/block]\n\n[block:api-header]\n{\n  \"type\": \"basic\",\n  \"title\": \"Basic Image Object\"\n}\n[/block]\nWhen images are returned for API calls a basic image object is returned which will always confirm to the following specification. Image use is always restricted as outlined in the [terms and conditions](http://media.triathlon.org/terms_and_conditions).\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"{\\n   \\\"entry_id\\\":90163,\\n   \\\"entry_title\\\":\\\"2015 ITU World Triathlon Cape Town\\\",\\n   \\\"entry_slug\\\":\\\"2015_itu_world_triathlon_cape_town\\\",\\n   \\\"entry_channel\\\":3,\\n   \\\"image_id\\\":48529,\\n   \\\"image_filename\\\":\\\"del_4853.jpg\\\",\\n   \\\"image_extension\\\":\\\"jpg\\\",\\n   \\\"image_date\\\":\\\"2015-04-25\\\",\\n   \\\"image_width\\\":1183,\\n   \\\"image_height\\\":787,\\n   \\\"image_filesize\\\":\\\"269.60kB\\\",\\n   \\\"image_title\\\":\\\"Del 4853\\\",\\n   \\\"image_slug\\\":\\\"del-4853\\\",\\n   \\\"image_credit\\\":\\\"International Triathlon Union\\\\/Delly Carr\\\",\\n   \\\"image_url\\\":\\\"http:\\\\/\\\\/www.triathlon.org\\\\/uploads\\\\/webgalleries\\\\/90163\\\\/del_4853.jpg\\\",\\n   \\\"image_thumbnail\\\":\\\"http:\\\\/\\\\/www.triathlon.org\\\\/uploads\\\\/webgalleries\\\\/90163\\\\/del_4853__small.jpg\\\"\\n}\",\n      \"language\": \"json\"\n    }\n  ]\n}\n[/block]\n\n[block:api-header]\n{\n  \"type\": \"basic\",\n  \"title\": \"Basic Video Object\"\n}\n[/block]\nWhen video listings are returned for API calls a basic video object is returned which will always confirm to the following specification.\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"{\\n   \\\"video_id\\\":104414,\\n   \\\"video_title\\\":\\\"Science Triathlon Conference 2015 - 16  Scott Murray Eng\\\",\\n   \\\"video_slug\\\":\\\"science_triathlon_conference_2015_-_16_scott_murray_eng\\\",\\n   \\\"video_entry_date\\\":\\\"2016-03-31T04:37:22Z\\\",\\n   \\\"video_thumbnail\\\":\\\"http:\\\\/\\\\/www.triathlon.org\\\\/images\\\\/news_thumbs\\\\/science_2015_murray.png\\\",\\n   \\\"video_caption\\\":\\\"Science Triathlon Conference 2015 - 16  Scott Murray Eng\\\",\\n   \\\"youtube_url\\\":\\\"https:\\\\/\\\\/www.youtube.com\\\\/embed\\\\/h_5ALcmva5I\\\",\\n   \\\"video_url\\\":\\\"http:\\\\/\\\\/www.triathlon.org\\\\/multimedia\\\\/video\\\\/science_triathlon_conference_2015_-_16_scott_murray_eng\\\",\\n   \\\"video_api_url\\\":\\\"https:\\\\/\\\\/api.triathlon.org\\\\/content\\\\/videos\\\\/104414\\\",\\n   \\\"video_categories\\\":[\\n      {\\n         \\\"cat_name\\\":\\\"Science and Triathlon\\\",\\n         \\\"cat_id\\\":431,\\n         \\\"cat_parent_id\\\":0\\n      }\\n   ]\\n}\",\n      \"language\": \"json\"\n    }\n  ]\n}\n[/block]\n\n[block:api-header]\n{\n  \"type\": \"basic\",\n  \"title\": \"Basic News Object\"\n}\n[/block]\nWhen news articles are returned for API calls a basic news object is returned which will always confirm to the following specification.\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"{  \\n   \\\"entry_id\\\":100552,\\n   \\\"title\\\":\\\"Merle marvels to win U23 World Championship\\\",\\n   \\\"slug\\\":\\\"merle_marvels_to_win_u23_world_championship\\\",\\n   \\\"entry_date\\\":\\\"2015-09-18 18:06\\\",\\n   \\\"status\\\":\\\"open\\\",\\n   \\\"excerpt\\\":\\\"A finish that came down to the wire, the 2015 Women\\\\u2019s Under23 World Championship title went to Audrey Merle after she outran her French compatriot on the blue carpet. \\\",\\n   \\\"thumbnail\\\":\\\"http:\\\\/\\\\/www.triathlon.org\\\\/images\\\\/news_thumbs\\\\/DEL_3672.JPG\\\",\\n   \\\"tab_image\\\":\\\"http:\\\\/\\\\/www.triathlon.org\\\\/images\\\\/news_thumbs\\\\/DEL_36721.JPG\\\",\\n   \\\"multipurpose_image\\\":\\\"http:\\\\/\\\\/www.triathlon.org\\\\/images\\\\/news_thumbs\\\\/DEL_36722.JPG\\\",\\n   \\\"url\\\":\\\"http:\\\\/\\\\/www.triathlon.org\\\\/news\\\\/article\\\\/merle_marvels_to_win_u23_world_championship\\\"\\n}\",\n      \"language\": \"json\"\n    }\n  ]\n}\n[/block]\n\n[block:api-header]\n{\n  \"type\": \"basic\",\n  \"title\": \"Basic Download Object\"\n}\n[/block]\n\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"{\\n   \\\"download_id\\\":102996,\\n   \\\"download_title\\\":\\\"2014 Financial Statements\\\",\\n   \\\"download_slug\\\":\\\"2014_financial_statements\\\",\\n   \\\"download_edit_date\\\":\\\"2015-12-18T20:05:29+00:00\\\",\\n   \\\"download_file\\\":\\\"http:\\\\/\\\\/www.triathlon.org\\\\/uploads\\\\/docs\\\\/Audit_report_2014_-_ITU_(with_2_signatures).pdf\\\",\\n   \\\"download_external_link\\\":\\\"\\\",\\n   \\\"download_order\\\":null,\\n   \\\"download_author\\\":null,\\n   \\\"download_categories\\\":[\\n      {\\n         \\\"cat_name\\\":\\\"General ITU Documents\\\",\\n         \\\"cat_id\\\":77,\\n         \\\"cat_parent_id\\\":0\\n      },\\n      {\\n         \\\"cat_name\\\":\\\"Financial\\\",\\n         \\\"cat_id\\\":428,\\n         \\\"cat_parent_id\\\":77\\n      }\\n   ]\\n}\",\n      \"language\": \"json\"\n    }\n  ]\n}\n[/block]","excerpt":"","slug":"content-api-overview","type":"basic","title":"Content API Overview"}

Content API Overview


The **Content API** provides access to all of the International Triathlon Union's media content. Using the API you can gain all content that is available on the [media.triathlon.org](http://media.triathlon.org) website. [block:image] { "images": [ { "image": [ "https://files.readme.io/Qu8xAdsgRlOo5gVBmFt5_ITUSDMenbyCruse1290wtmk.JPG", "ITUSDMenbyCruse1290wtmk.JPG", "1024", "678", "#7389c3", "" ] } ] } [/block] [block:api-header] { "type": "basic", "title": "Basic Image Object" } [/block] When images are returned for API calls a basic image object is returned which will always confirm to the following specification. Image use is always restricted as outlined in the [terms and conditions](http://media.triathlon.org/terms_and_conditions). [block:code] { "codes": [ { "code": "{\n \"entry_id\":90163,\n \"entry_title\":\"2015 ITU World Triathlon Cape Town\",\n \"entry_slug\":\"2015_itu_world_triathlon_cape_town\",\n \"entry_channel\":3,\n \"image_id\":48529,\n \"image_filename\":\"del_4853.jpg\",\n \"image_extension\":\"jpg\",\n \"image_date\":\"2015-04-25\",\n \"image_width\":1183,\n \"image_height\":787,\n \"image_filesize\":\"269.60kB\",\n \"image_title\":\"Del 4853\",\n \"image_slug\":\"del-4853\",\n \"image_credit\":\"International Triathlon Union\\/Delly Carr\",\n \"image_url\":\"http:\\/\\/www.triathlon.org\\/uploads\\/webgalleries\\/90163\\/del_4853.jpg\",\n \"image_thumbnail\":\"http:\\/\\/www.triathlon.org\\/uploads\\/webgalleries\\/90163\\/del_4853__small.jpg\"\n}", "language": "json" } ] } [/block] [block:api-header] { "type": "basic", "title": "Basic Video Object" } [/block] When video listings are returned for API calls a basic video object is returned which will always confirm to the following specification. [block:code] { "codes": [ { "code": "{\n \"video_id\":104414,\n \"video_title\":\"Science Triathlon Conference 2015 - 16 Scott Murray Eng\",\n \"video_slug\":\"science_triathlon_conference_2015_-_16_scott_murray_eng\",\n \"video_entry_date\":\"2016-03-31T04:37:22Z\",\n \"video_thumbnail\":\"http:\\/\\/www.triathlon.org\\/images\\/news_thumbs\\/science_2015_murray.png\",\n \"video_caption\":\"Science Triathlon Conference 2015 - 16 Scott Murray Eng\",\n \"youtube_url\":\"https:\\/\\/www.youtube.com\\/embed\\/h_5ALcmva5I\",\n \"video_url\":\"http:\\/\\/www.triathlon.org\\/multimedia\\/video\\/science_triathlon_conference_2015_-_16_scott_murray_eng\",\n \"video_api_url\":\"https:\\/\\/api.triathlon.org\\/content\\/videos\\/104414\",\n \"video_categories\":[\n {\n \"cat_name\":\"Science and Triathlon\",\n \"cat_id\":431,\n \"cat_parent_id\":0\n }\n ]\n}", "language": "json" } ] } [/block] [block:api-header] { "type": "basic", "title": "Basic News Object" } [/block] When news articles are returned for API calls a basic news object is returned which will always confirm to the following specification. [block:code] { "codes": [ { "code": "{ \n \"entry_id\":100552,\n \"title\":\"Merle marvels to win U23 World Championship\",\n \"slug\":\"merle_marvels_to_win_u23_world_championship\",\n \"entry_date\":\"2015-09-18 18:06\",\n \"status\":\"open\",\n \"excerpt\":\"A finish that came down to the wire, the 2015 Women\\u2019s Under23 World Championship title went to Audrey Merle after she outran her French compatriot on the blue carpet. \",\n \"thumbnail\":\"http:\\/\\/www.triathlon.org\\/images\\/news_thumbs\\/DEL_3672.JPG\",\n \"tab_image\":\"http:\\/\\/www.triathlon.org\\/images\\/news_thumbs\\/DEL_36721.JPG\",\n \"multipurpose_image\":\"http:\\/\\/www.triathlon.org\\/images\\/news_thumbs\\/DEL_36722.JPG\",\n \"url\":\"http:\\/\\/www.triathlon.org\\/news\\/article\\/merle_marvels_to_win_u23_world_championship\"\n}", "language": "json" } ] } [/block] [block:api-header] { "type": "basic", "title": "Basic Download Object" } [/block] [block:code] { "codes": [ { "code": "{\n \"download_id\":102996,\n \"download_title\":\"2014 Financial Statements\",\n \"download_slug\":\"2014_financial_statements\",\n \"download_edit_date\":\"2015-12-18T20:05:29+00:00\",\n \"download_file\":\"http:\\/\\/www.triathlon.org\\/uploads\\/docs\\/Audit_report_2014_-_ITU_(with_2_signatures).pdf\",\n \"download_external_link\":\"\",\n \"download_order\":null,\n \"download_author\":null,\n \"download_categories\":[\n {\n \"cat_name\":\"General ITU Documents\",\n \"cat_id\":77,\n \"cat_parent_id\":0\n },\n {\n \"cat_name\":\"Financial\",\n \"cat_id\":428,\n \"cat_parent_id\":77\n }\n ]\n}", "language": "json" } ] } [/block]