Ben Milne Posts API

The Posts API from Ben Milne — 2 operation(s) for posts.

Operations 2

GET /api/posts Paginated post list #
GET /api/posts/{slug} Single post with full content #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/benmilne-com:benmilne-com-posts-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

benmilne-com-posts-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: benmilne.com Developer Posts API
  description: Public read-only multilingual API for benmilne.com content. Supports 14 languages via ?lang= query parameter. English is the default and source of truth. SSE streaming available for real-time search.
  version: 2.0.0
  contact:
    name: Ben Milne
    url: https://benmilne.com/api
  x-cli:
    name: benmilne-api
    install: npm install -g benmilne-api
    registry: https://www.npmjs.com/package/benmilne-api
  x-source:
    url: https://github.com/benmilne-com/agents
    type: github
  x-ratelimit:
    strategy: edge-cache
    description: Cloudflare edge caching serves most reads. No application-level rate limit enforced. Headers included on every JSON response.
    headers:
    - X-RateLimit-Limit
    - X-RateLimit-Remaining
    - X-RateLimit-Reset
  x-graphql:
    endpoint: https://benmilne.com/graphql
    introspection: true
    description: Read-only GraphQL API with Relay cursor pagination, typed errors, and full schema descriptions. POST queries to /graphql.
servers:
- url: https://benmilne.com
  description: Production
- url: https://benmilne.com/sandbox
  description: Sandbox (canned test data)
security:
- public: []
tags:
- name: Posts
paths:
  /api/posts:
    get:
      operationId: listPosts
      summary: Paginated post list
      parameters:
      - name: page
        in: query
        schema:
          type: integer
          default: 1
      - name: per_page
        in: query
        schema:
          type: integer
          default: 10
          maximum: 100
      - name: lang
        in: query
        description: Language code for translated response
        schema:
          type: string
          enum:
          - en
          - es
          - zh
          - ar
          - pt-br
          - fr
          - ja
          - de
          - ru
          - id
          - hi
          - ko
          - tr
          - vi
          default: en
      - name: fallback
        in: query
        description: Set to 'en' to receive English content when translation is unavailable
        schema:
          type: string
          enum:
          - en
      responses:
        '200':
          description: Paginated post list
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PaginatedPostsResponse'
        '400':
          description: Unsupported language
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      tags:
      - Posts
  /api/posts/{slug}:
    get:
      operationId: getPostBySlug
      summary: Single post with full content
      parameters:
      - name: slug
        in: path
        required: true
        schema:
          type: string
      - name: lang
        in: query
        description: Language code for translated response
        schema:
          type: string
          enum:
          - en
          - es
          - zh
          - ar
          - pt-br
          - fr
          - ja
          - de
          - ru
          - id
          - hi
          - ko
          - tr
          - vi
          default: en
      - name: fallback
        in: query
        description: Set to 'en' to receive English content when translation is unavailable
        schema:
          type: string
          enum:
          - en
      responses:
        '200':
          description: Post detail with translated content
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PostResponse'
        '400':
          description: Unsupported language
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '404':
          description: Post or translation not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TranslationUnavailableError'
      tags:
      - Posts
components:
  schemas:
    TranslationUnavailableError:
      type: object
      properties:
        error:
          type: string
        slug:
          type: string
        language:
          type: string
        status:
          type: string
          enum:
          - missing
          - stale
        english_url:
          type: string
        fallback_url:
          type: string
      required:
      - error
      - slug
      - language
    PaginatedPostsResponse:
      type: object
      properties:
        attribution:
          type: string
        data:
          type: array
          items:
            $ref: '#/components/schemas/PostSummary'
        pagination:
          type: object
          properties:
            page:
              type: integer
            per_page:
              type: integer
            total:
              type: integer
            total_pages:
              type: integer
        meta:
          $ref: '#/components/schemas/ResponseMeta'
      required:
      - attribution
      - data
    ResponseMeta:
      type: object
      properties:
        language:
          type: string
        source_language:
          type: string
        is_translation:
          type: boolean
        automated_translation:
          type: boolean
        disclaimer:
          type: string
        available_languages:
          type: array
          items:
            type: string
      required:
      - language
      - source_language
      - is_translation
      - available_languages
    ErrorResponse:
      type: object
      properties:
        error:
          type: string
        supported_languages:
          type: array
          items:
            type: string
      required:
      - error
    PostResponse:
      type: object
      properties:
        attribution:
          type: string
        data:
          type: object
        meta:
          $ref: '#/components/schemas/ResponseMeta'
      required:
      - attribution
      - data
    PostSummary:
      type: object
      properties:
        slug:
          type: string
        title:
          type: string
        date:
          type: string
        modified:
          type: string
        author:
          type: string
        summary:
          type: string
        url:
          type: string
        language:
          type: string
        is_translation:
          type: boolean
        english_url:
          type: string
        translation:
          $ref: '#/components/schemas/TranslationMeta'
      required:
      - slug
      - title
      - date
      - author
      - url
      - language
    TranslationMeta:
      type: object
      properties:
        automated:
          type: boolean
        provider:
          type:
          - string
          - 'null'
        source_language:
          type: string
        target_language:
          type: string
        verified:
          type: boolean
        stale:
          type: boolean
        fallback_used:
          type: boolean
  securitySchemes:
    public:
      type: http
      scheme: bearer
      description: All read endpoints are public and unauthenticated. No API key or token is required.
externalDocs:
  description: benmilne.com developer portal
  url: https://benmilne.com/developers