Playgun API

Introduction

API reference for Parable - the blog writing platform

Parable API

The Parable API allows you to fetch your published articles programmatically. Use it to power your personal blog, portfolio, or any other website.

Endpoints

MethodEndpointDescription
GET/parable/articlesList all published articles
GET/parable/articles/:idGet a specific article

Use Cases

  • Personal Blog - Fetch articles to display on your custom blog
  • Portfolio - Show your writing on your portfolio site
  • Static Site Generation - Build static pages from your articles
  • Content Syndication - Republish content to other platforms

Quick Example

const response = await fetch(
  "https://aware-squirrel-935.convex.site/api/v1/parable/articles",
  {
    headers: {
      Authorization: `Bearer ${process.env.PARABLE_API_KEY}`,
    },
  }
);

const { data } = await response.json();
console.log(data); // Array of articles

Content Format

Articles are returned with a clean, structured content format. See the Content Format reference for details on block types and how to render them.