APIs / Social media / Medium

1 credit per call4 endpointsChecked working 6 Dec 2026

Medium API

Medium API for public posts, post search, tag feeds and author pages as JSON. Four endpoints, 1 credit per successful call.

Medium
GET/v1/medium/search?query=python+programming
curl "https://api.perceptlayer.com/v1/medium/search?query=python+programming" \
  -H "X-API-Key: $API_KEY"
cURL1 credit per successful call
Run this call below or from your dashboard to see a live response.

Playground

Run this API

cURLshell
curl "https://api.perceptlayer.com/v1/medium/search?query=python+programming" \
  -H "X-API-Key: $API_KEY"

Medium · 4 endpoints

Endpoints

Every endpoint takes the same key. Open one for its parameters, the fields it returns and an example request.

Note
Endpoints marked “Needs terms” return personal or social data. They work once you accept the restricted-endpoint terms in your dashboard.
EndpointRequired parametersReturnsCost
GET/v1/medium/post
post_idNeeds terms
post
1 credit
GET/v1/medium/search
query+2 optionalNeeds terms
idtitlepublished_atcreator
1 credit
GET/v1/medium/tag
tag+2 optionalNeeds terms
idtitleurlis_lockedclap_countreading_time+4 more
1 credit
GET/v1/medium/user
username+2 optionalNeeds terms
idtitleurlis_lockedclap_countreading_time+5 more
1 credit

Overview

About the Medium API

What you can get

The Medium API returns public Medium data as JSON through 4 endpoints. These are restricted endpoints: the restricted-endpoint terms apply, and they don't permit collecting personal data without a lawful basis or using it to contact people.

  • Search: search takes a query, with limit and page.
  • Posts: post takes a post_id.
  • Tags: tag takes a tag, with limit and after.
  • Authors: user takes a username, with limit and from.

How a call works

Search posts: GET /v1/medium/search?query=python+programming with your key in the X-API-Key header, or follow a tag with GET /v1/medium/tag?tag=.... Every successful call costs 1 credit; failed calls cost nothing.

Social mediaJSONRESTMCPSome endpoints need terms

More social media APIs

Use cases

Follow what's published under a tag

Use the Medium API to follow what's published under a tag

Research how a topic is covered by writers

Use the Medium API to research how a topic is covered by writers

Follow an author's posts

Use the Medium API to follow an author's posts

Find articles for a reading list or newsletter

Use the Medium API to find articles for a reading list or newsletter

FAQ

Questions

Do I need a Medium integration token?

No. You call this Medium API with your Perceptlayer key in the `X-API-Key` header, with no Medium token. You do need to accept the restricted-endpoint terms first.

How much does the Medium API cost?

Each successful call costs one credit. New accounts get free credits to start, and credit packs bring the price down as you scale.

What format are responses in?

Every endpoint returns JSON, with no HTML parsing on your side.

Is this the official Medium API?

No. Perceptlayer is an independent service and is not affiliated with Medium. It returns Medium data as JSON with a Perceptlayer key, so there is no Medium developer account, app review or partner approval to get first. It only reads data: if Medium has an official API and you need to act on your own Medium account, such as posting, managing orders or reading private data, use that one.

Should I build a Medium scraper instead?

You can, but a Medium scraper is code you maintain: page changes break it, requests get blocked, and Medium's terms govern how you collect data. The Medium API gives you 4 endpoints of named JSON fields for 1 credit per successful call, and failed calls cost nothing. A scraper makes sense only for data these endpoints don't return, so check the response in the playground on this page first. Some of these endpoints return social or personal data and need the restricted-endpoint terms; collect only what you have a lawful basis for.

Try the Medium API with 100 free credits

No credit card. Failed calls are never billed.