Medium

FREE
By dimashirokov
Updated 8 months ago
Social
-/10
Popularity Score
-
Latency
-
Success Rate

Medium API Documentation

Create posts and search publications in Medium.

View API Details
POSTcreatePost
POSTcreatePostUnderPublication
POSTgetAccessToken
POSTgetPublicationContributors
POSTgetUser
POSTrevokeAccessToken
POSTuploadImage
POSTcreatePost

Create post.

Header Parameters
X-RapidAPI-HostSTRING
REQUIRED
X-RapidAPI-KeySTRING
REQUIRED
Required Parameters
titleSTRING
REQUIRED The title of the post. Note that this title is used for SEO and when rendering the post as a listing, but will not appear in the actual post—for that, the title must be specified in the content field as well. Titles longer than 100 characters will be ignored. In that case, a title will besynthesized from the first content in the post when it is published..
accessTokenSTRING
REQUIRED A valid accessToken.
contentSTRING
REQUIRED The body of the post, in a valid, semantic, HTMLfragment, or Markdown. Further markups may be supported in the future. For a full list of accepted HTML tags, see here. If you want your title to appear on the post page, you must also include it as part of the post content.
authorIdSTRING
REQUIRED A valid authorId.
contentFormatSELECT
REQUIRED The format of the "content" field. There are two values, "html", and "markdown".
Optional Parameters
tagsLIST
OPTIONALOptional: Tags to classify the post. Only the first three will be used. Tags longer than 25 characters will be ignored.
notifyFollowersBOOLEAN
OPTIONALOptional: Whether to notifyFollowers that the user has published.
publishStatusSELECT
OPTIONALOptional: The status of the post. Valid values are “public”, “draft”, or “unlisted”. The default is “public”.
canonicalUrlSTRING
OPTIONALOptional: The original home of this content, if it was originally published elsewhere.
licenseSELECT
OPTIONALOptional: The license of the post. Valid values are “all-rights-reserved”, “cc-40-by”, “cc-40-by-sa”, “cc-40-by-nd”, “cc-40-by-nc”, “cc-40-by-nc-nd”, “cc-40-by-nc-sa”, “cc-40-zero”, “public-domain”. The default is “all-rights-reserved”.
Code Snippet
Install SDK
Response ExampleSchema

Install SDK for (Node.js)Unirest

OAuth2 Authentication
Client ID
Client Secret
OAuth2 Authentication