Skip to main content

Documentation Index

Fetch the complete documentation index at: https://mintlify.com/Project516/BlogAPI/llms.txt

Use this file to discover all available pages before exploring further.

The GET /blogs/latest endpoint returns the first item from the server’s in-memory cache, which corresponds to the most recently published blog post on project516.dev. Because posts are scraped in the order they appear in the source HTML (newest first), index zero always holds the latest entry. If the cache has not yet been populated via POST /blogs/cache, the endpoint returns null.

Endpoint

GET /blogs/latest

Rate limit

5 requests per minute per IP address. Exceeding this limit returns a 429 Too Many Requests response.

Query parameters

This endpoint accepts no query parameters.

Response

The response is a single blog post object, or null if the cache is empty.
title
string
The title of the blog post as it appears on project516.dev.
The full URL to the blog post on project516.dev (e.g., https://project516.dev/blog/some-post).
date
string
The publish date of the post in ISO 8601 format (e.g., 2024-11-03).

Code examples

curl https://api.project516.dev/blogs/latest

Example response

{
  "title": "Building a Static Site with Eleventy",
  "link": "https://project516.dev/blog/building-a-static-site-with-eleventy",
  "date": "2024-11-03"
}
This endpoint returns null when the cache is empty. Call POST /blogs/cache first to populate the cache before querying for the latest post.

Error codes

StatusDescription
429 Too Many RequestsYou have exceeded the rate limit of 5 requests per minute. Wait before retrying.

Build docs developers (and LLMs) love