Search Articles in a Channel
See a list of all articles in a channel that match the specified search criteria.
URL
GET https://news-api.apple.com/channels/{channelId}/articlesPath Parameters
| Name | Type | Description |
|---|---|---|
channelId Required | string | The UUID of the channel to search. |
Query Parameters
| Name | Type | Description |
|---|---|---|
fromDate Optional | string | If specified, the server only returns articles with a |
pageSize Optional | integer | The number of articles to return on each page. This value must be an integer between 1 and 100 (inclusive). |
pageToken Optional | string | An opaque token that specifies the page to view. The server returns links with the URL in each response. It also includes the |
sortDir Optional | string | Indicates whether to return oldest articles first ( |
toDate Optional | string | If specified, the server only returns articles with a |
Response Codes
| Status | Reason | Type | Description |
|---|---|---|---|
| 200 | OK Content-Type: application/json | SearchResponse | 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: N/A |
| 404 | Not Found Content-Type: application/json | Error |
|
| 429 | Too Many Requests Content-Type: application/json | Error | You exceeded the number of articles that you can search for in a channel within the specific time window. The response header |
Discussion
A Search Articles request returns a list of all articles in a channel that were created between fromDate and toDate. The results of this call are paginated, with a maximum page size of 100. Each response contains a link to the next page of results.