Skip to main content
POST
/
api
/
medium
/
users
/
posts
/medium/users/posts
curl --request POST \
  --url https://api.anysite.io/api/medium/users/posts \
  --header 'Content-Type: application/json' \
  --header 'access-token: <api-key>' \
  --data '
{
  "username": "<string>",
  "count": 2,
  "timeout": 300
}
'
[
  {
    "id": "<string>",
    "title": "<string>",
    "@type": "@medium_post",
    "subtitle": "<string>",
    "url": "<string>",
    "alias": "<string>",
    "text": "<string>",
    "tags": [],
    "image": "<string>",
    "clap_count": 123,
    "response_count": 123,
    "word_count": 123,
    "reading_time": 123,
    "language": "<string>",
    "created_at": 123,
    "published_at": 123,
    "updated_at": 123,
    "is_member_only": false,
    "author": {
      "id": "<string>",
      "name": "<string>",
      "@type": "@medium_author",
      "alias": "<string>",
      "bio": "<string>",
      "image": "<string>",
      "follower_count": 123,
      "following_count": 123
    },
    "publication": {
      "id": "<string>",
      "name": "<string>",
      "@type": "@medium_publication_ref",
      "alias": "<string>",
      "description": "<string>",
      "image": "<string>",
      "follower_count": 123
    }
  }
]

Authorizations

access-token
string
header
required

API token from the dashboard

Headers

access-token
string
required

Body

application/json
username
string
required

Medium author handle, prefixed handle, or profile URL

Minimum string length: 1
Examples:

"quincylarson"

"@quincylarson"

"https://medium.com/@quincylarson"

count
integer
required

Max number of posts to return

Required range: x >= 1
timeout
integer
default:300

Max scrapping execution timeout (in seconds)

Required range: 20 <= x <= 1500

Response

Successful Response

id
string
required
title
string
required
@type
string
default:@medium_post
subtitle
string | null
url
string | null
alias
string | null
text
string | null
tags
string[]
image
string | null
clap_count
integer | null
response_count
integer | null
word_count
integer | null
reading_time
integer | null
language
string | null
created_at
integer | null
published_at
integer | null
updated_at
integer | null
is_member_only
boolean
default:false
author
MediumAuthor · object
publication
MediumPublicationRef · object