Medium

Actions

The Medium node allows you to automate work in Medium, and integrate Medium with other applications. n8n has built-in support for a wide range of Medium features, including creating posts, and getting publications.

On this page, you'll find a list of operations the Medium node supports and links to more resources.

Credentials

Refer to Medium credentials for guidance on setting up authentication.

Examples and templates

For usage examples and templates to help you get started, take a look at n8n's Medium integrations list.

Basic Operations#

  • Post
    • Create a post
  • Publication
    • Get all publications

Example Usage#

This workflow allows you to post an article to a publication on Medium. You can also find the workflow on the website. This example usage workflow uses the following two nodes.

The final workflow should look like the following image.

A workflow with the Medium node

1. Start node#

The start node exists by default when you create a new workflow.

2. Medium node#

  1. First of all, you'll have to enter credentials for the Medium node. You can find out how to do that here.
  2. Toggle Publication to true.
  3. Select the publication from the Publication ID dropdown list.
  4. Enter the title in the Title field.
  5. Select the format from the Content Format dropdown list.
  6. Enter conent of the post in the Content field.
  7. Click on Execute Node to run the workflow.
 
 

Credentials

Prerequisites#

Using OAuth#

  1. Log in to your Medium account.
  2. Click on the avatar on the top right corner.
  3. Select 'Settings' in the drop-down menu.
  4. Select 'Developers' from the menu on the left.
  5. Click on the 'Manage applications' button.
  6. Click on the 'New application' button.
  7. Give your application a Name, and provide a Description.
  8. Select the 'OAuth 2' option from the Authorization Protocol dropdown list.
  9. Copy the 'OAuth Callback URL' provided in the Medium OAuth2 API credentials in n8n and paste it in the 'Callback URLs' field in the Medium application page.
  10. Click on 'Save' to generate the credentials.
  11. Copy and paste Client ID and Client Secret in the Medium OAuth2 API credentials in n8n.
  12. Click on the circle button in the OAuth section to connect a Medium account to n8n.
  13. Click the Save button to save your credentials in n8n.

Getting Medium OAuth credentials

Using Access Token#

  1. Log in to your Medium account.
  2. Click on the avatar on the top right corner.
  3. Select 'Settings' in the drop-down menu.
  4. Select 'Integration tokens' from the menu on the left.
  5. Enter a description for your token in the field.
  6. Click on the 'Get integration token' button.
  7. Copy and paste Token in the Medium API credentials in n8n.
  8. Click the Save button to save your credentials in n8n.

Getting Medium Access Token