List All Sections
See a list of available sections in your channel.
URL
GET https://news-api.apple.com/channels/{channelId}/sectionsPath Parameters
| Name | Type | Description |
|---|---|---|
channelId Required | string | The UUID of the channel. You can get your channel ID from News Publisher. See Use your CMS with News Publisher in News Publisher User Guide. |
Response Codes
| Status | Reason | Type | Description |
|---|---|---|---|
| 200 | OK Content-Type: application/json | SectionResponse | The request was successful. |
| 400 | Bad Request Content-Type: application/json | Error |
|
| 401 | Unauthorized Content-Type: application/json | Error | You didn’t include the |
| 403 | Forbidden Content-Type: application/json | Error | You tried to access a channel your API key doesn’t have permission to access. Key path: None. |
| 404 | Not Found Content-Type: application/json | Error |
|
Discussion
A List All Sections request returns a list of all sections for a channel. A section is a grouping of articles on a particular topic; for example, Sports, Silicon Valley, or Politics.
You create sections in News Publisher. Sections aren’t created via the API; they are set up separately in News Publisher. See Add and manage sections in News Publisher User Guide. Every channel has a default section, even if no other sections are defined. The default section URL is included in the Read Channel Information response.