/api/bsky-to-md

Description

The /api/bsky-to-md endpoint converts a Bluesky thread into a markdown document. It accepts various parameters to customize the output, including the URLs of the start and end posts, an optional title, and options for using markdown tables and adding a subtitle.

Method

Query Parameters

Response

Success

Error

Example Request

GET /api/bsky-to-md?start=https://bsky.app/profile/bsky.app/post/3kvu5vjfups25&end=https://bsky.app/profile/bsky.app/post/3kvu5zpgst32n&title=The+Great+Thread&use-tables=true&add-subtitle=true HTTP/1.1
    Host: yourdomain.com
    

Example Response

Success

HTTP/1.1 200 OK
    Content-Type: text/markdown; charset=utf-8

    # The Great Thread

    ###### [Posted](https://bsky.app/profile/did:plc:fuhe3c37a2ryxuf6zpkxfefb/post/3kvnyi7hzrk2g) by Shape [\@sxape.bsky.social](https://bsky.app/profile/did:plc:fuhe3c37a2ryxuf6zpkxfefb) on June 24 2024 to [Bluesky](https://bsky.app/)

    ...
    

Error

HTTP/1.1 400 Bad Request
    Content-Type: text/plain; charset=utf-8

    Error: Invalid URL provided.
    

Usage Notes