maxbits.net API

/posts/[slug].json

Returns information about a post.

Example response:

{
    "title": "Test",
    "url": "https://www.maxbits.net/posts/test",
    "content": "<p>HTML Content here</p>",
    "tags": [
        "some-tag",
        "another-tag"
    ],
    "created_at": "2020-09-22T17:39:33.977Z",
    "updated_at": "2020-09-22T17:39:33.977Z",
    "comment_count": 1,
    "comments": [
        {
            "id": 1,
            "name": "Some Cool Reader",
            "content": "Nice article!",
            "created_at": "2020-09-22T19:16:45.036Z",
            "parent_id": null
        },
        {
            "id": 2,
            "name": "Some Cool Reader",
            "content": "Nice article!",
            "created_at": "2020-09-22T19:16:45.036Z",
            "parent_id": 1
        }
    ]
}

/posts.json

Returns the latest 10 posts in a JSONFeed 1-compatible format.

Example response:

{
    "version": "https://jsonfeed.org/version/1",
    "title": "maxbits.net Feed: Latest Posts",
    "home_page_url": "https://www.maxbits.net/",
    "feed_url": "https://www.maxbits.net/posts.json",
    "author": {
        "name": "Maximilian Götz",
        "url": "https://www.maxbits.net/"
    },
    "items": [
        {
            "id": "https://www.maxbits.net/posts/example",
            "url": "https://www.maxbits.net/posts/example",
            "title": "Example",
            "content_html": "<h3>Some HTML-formatted text</h3>",
            "date_published": "2020-09-20T18:06:34+00:00",
            "date_modified": "2020-09-20T18:06:34+00:00",
            "tags": [
                "sometag",
                "someothertag"
            ],
            "_comments_count": 1,
            "_comments": [
                {
                    "name": "Some Cool User",
                    "content": "Nice blog post!",
                    "created_at": "2020-09-02T15:21:11.312Z"
                }
            ]
        }
    ]
}

/posts/tag/[tag].json

Returns the latest 10 posts matching [tag] in a JSONFeed 1-compatible format. See above for an example response.

/posts/page/[page].json

Returns all posts from page [page] in a JSONFeed 1-compatible format. See above for an example response.

/[slug].json

Returns information about the page with a given slug. Example response:

{
    "title": "Nice page",
    "url": "https://www.maxbits.net/nice-page",
    "content": "<p>Some nice page here!</p>",
    "created_at": "2020-10-02T12:36:53.456Z",
    "updated_at": "2020-10-02T12:36:53.456Z"
}

/search.json?q=[query]

Returns a list of all search results for a given query. Example response:

[
    {
        "title": "Some cool post",
        "url": "https://www.maxbits.net/posts/some-cool-post"
    }
]

Last Modified: Mon 19, Oct 2020