Medium

List Medium publication posts

List a publication's ten newest Medium posts by Medium slug or its own domain, optionally filtered by tag.

GET/v1/medium/publications/{slug}/posts
1credit
x-api-keystringheader

API key (`sfk_...`)

Parameters
3
slugstringrequiredpath

Medium publication slug (`netflix-techblog`) or its own domain (`uxdesign.cc`).

min 1 chars · max 253 chars · pattern: ^[a-z0-9][a-z0-9.-]*$

domainstringoptionalquery

The publication's own domain (`uxdesign.cc`), when it runs on one. Overrides the slug.

min 3 chars · max 253 chars

tagstringoptionalquery

Only posts of the publication carrying this tag (medium.com publications only; not supported on a custom domain).

min 1 chars · max 64 chars · pattern: ^[^\s/?#&=\u0000-\u001f\u007f-\u009f]+$

Response fields
39

Endpoint-specific response payload.

datalookupStatus
string

Whether the entity exists. HTTP 200 for both outcomes.

one of: found, not_found

The publication's feed header; null when the publication does not exist.

datapublicationslug
string

Publication slug or domain asked for.

datapublicationname
stringnullable

Publication name, from the feed title.

datapublicationtitle
stringnullable

Feed title.

datapublicationdescription
stringnullable

Feed description, without Medium's suffix.

datapublicationid
stringnullable

Collection id, when the feed carries one.

datapublicationurl
stringnullable

Public link to the publication on Medium.

datapublicationhost
stringnullable

Host of the public link.

datapublicationisCustomDomain
booleannullable

True when the publication runs on its own domain.

The newest 10 posts (every match for the tag filter).

dataposts[]postId
string

Post id (the hex id after `/p/`).

dataposts[]title
stringnullable

Title as Medium has it.

dataposts[]url
stringnullable

Public link to the post.

dataposts[]authorName
stringnullable

Author display name.

dataposts[]authorUsername
stringnullableoptional

Author handle when the post's public link names one (`medium.com/@handle/...` or `{handle}.medium.com/...`); null when it does not, including on a `medium.com/{publication}/...` link or a publication's own domain.

dataposts[]publicationSlug
stringnullableoptional

Publication slug when the post's public link names one (`medium.com/{slug}/...`); null when it does not, including on an author's post or a publication's own domain.

Tag slugs on the post.

dataposts[]tags[]
stringoptional
dataposts[]publishedAt
stringnullable

First publication time, ISO 8601 UTC.

dataposts[]updatedAt
stringnullable

When the post was last updated, ISO 8601 UTC.

dataposts[]host
stringnullable

Host of the public link.

dataposts[]isCustomDomain
booleannullable

True when the link is on a publication's own domain.

dataposts[]contentAvailable
boolean

True when the article body is available. A member-only or preview-only item is false.

dataposts[]contentHtml
stringnullable

Article HTML when the post body is available.

dataposts[]contentText
stringnullable

Plain text derived from `contentHtml`.

dataposts[]snippet
stringnullable

Short preview for an item without an article body.

dataposts[]imageUrl
stringnullable

First image of the post, when it has one.

dataposts[]wordCount
integernullable

Words in `contentText`, derived from the article text (Chinese, Japanese and Thai are segmented). Null when the body is not available.

dataposts[]readingMinutes
numbernullable

Words divided by 238, to one decimal.

datacomplete
boolean

False when an item could not be fully parsed; the response then holds the complete items.

Depth of a list. It has no cursor.

datapagedepth
integer

The depth of this list: 10.

≥ 0

datapagehasMore
nullable

Always null: this list has no paging parameter, so whether anything older exists is not known.

Metadata describing the request and billing outcome.

metarequestId
string

Unique request identifier for tracing this API call.

min 1 chars

metacreditsCharged
integer

Credits charged for this request.

≥ 0

metaversion
string

Public API version that served the response.

one of: v1

Code example

curl "https://api.socialfetch.dev/v1/medium/publications/netflix-techblog/posts?tag=ios" \
  -H "x-api-key: YOUR_API_KEY"

Responses

The publication's newest posts.