/medium-api-specification

API spec for medium.com using OpenAPI Specification (aka Swagger 2.0). Generates PHP, Java, Python, Go, Android, Objective-C and many more client SDK.

Primary LanguageShellMIT LicenseMIT

  • UPDATE #1 - Medium.com API is no longer supported.
  • UPDATE #2 - The API is live again, users are allowed to create their own token.

Looks like Medium does not support API access anymore. The post with API info has been taken down - https://blog.medium.com/welcome-to-the-medium-api-3418f956552 (Unlisted)


https://img.shields.io/badge/OpenAPI-valid-brightgreen.svg Build Status

Medium.com API Specification

This is an unofficial API specification translated from official API documentation found at https://github.com/Medium/medium-api-docs using OpenAPI Specification (fka Swagger 2.0).

Why OpenAPI?

OpenAPI specification is an open standard, it provides variety of support for generating both server and client code for different languages and frameworks. See Swagger Tools for more information.

Preview/Test API

Best way to preview or test API is using Swagger UI, Swagger Editor or Postman.

NOTE: You should generate self-issued-access-tokens by following instruction on official-guide to access API endpoints.

Generating Client SDK

The swagger-codegen tool can generate client-sdk for different languages.

Based on code generator service, following languages are supported by the client generator.

"akka-scala", "android", "async-scala", "clojure", "cpprest", "csharp", "CsharpDotNet2", "cwiki", "dart", "dynamic-html", "flash", "go", "groovy", "html", "html2", "java", "javascript", "javascript-closure-angular", "jmeter", "objc", "perl", "php", "python", "qt5cpp", "ruby", "scala", "swagger", "swagger-yaml", "swift", "tizen", "typescript-angular", "typescript-angular2", "typescript-fetch", "typescript-node"

Here are few examples:

Screenshots

  • Swagger UI Swagger UI
  • Swagger Editor (NOTE: Code generation option available here) Swagger Editor
  • Postman Postman