<!--
{
  "documentType" : "article",
  "framework" : "AppleNews",
  "identifier" : "/documentation/AppleNews/apple-news-api-tutorial",
  "metadataVersion" : "0.1.0",
  "role" : "collectionGroup",
  "title" : "Apple News API Tutorial"
}
-->

# Apple News API Tutorial

Request channel data and publish an article using the Apple News API.

## Discussion

In this tutorial, you’ll use Python to request channel data and publish an article to your channel. The tutorial assumes you’re familiar with basic Python programming constructs and techniques. Beginning programmers should be able to follow along and run this tutorial.

### Alternative Tutorial Code Languages

In addition to Python, the tutorial code is also available in Java, C#, and PHP. To get the code for all four, download the [Apple-News-API-Tutorial-Example-Code.zip](https://developer.apple.com/apple-news/download/Apple-News-API-Tutorial-Example-Code.zip) file.

### Requirements

Before beginning the tutorial, make sure you have the following information and installed software:

- Channel ID, Key ID, and Key Secret.  See [Use your CMS with News Publisher](https://support.apple.com/guide/news-publisher/apd88c8447e6) in News Publisher User Guide.
- [Python](https://www.python.org). Ensure that you have `PIP` installed. `PIP` is automatically installed if you have Python 3.4+. See [Installing Python Modules](https://docs.python.org/3/installing/index.html#installing-index).
- Python’s [Requests](https://pypi.org/project/requests/) library.

If you are not familiar with Apple News API endpoints, see [`Apple News API`](/documentation/AppleNewsAPI) before you get started.

## Topics

### Apple News API Python Tutorial

  <doc://com.apple.applenews/documentation/AppleNews/making-an-http-request-to-the-apple-news-api>

  <doc://com.apple.applenews/documentation/AppleNews/signing-the-http-request>

  <doc://com.apple.applenews/documentation/AppleNews/publishing-an-article>



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)