TheDocumentation 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.
POST /blogs/cache endpoint initiates a fresh scrape of the project516.dev blog and replaces the server’s in-memory cache with the newly retrieved posts. Once the scrape completes, the updated data is also written to /tmp/cache.json so it survives server restarts. This is the only way to surface new blog posts through the API — GET /blogs, GET /blogs/latest, and GET /blogs/search all read from this cache.
Endpoint
Rate limit
1 request per minute per IP address. Exceeding this limit returns a429 Too Many Requests response.
Request body
This endpoint accepts no request body.Response
On success, the endpoint returns a JSON object confirming the cache was updated.Confirmation string. Always
"Blogs cached successfully" on a successful scrape.Code examples
Example responses
Success:This endpoint fetches the blog HTML directly from the GitHub-hosted source at
https://raw.githubusercontent.com/Project516/project516.github.io/refs/heads/master/blog.html, parses the result, and writes the cache to /tmp/cache.json.Error codes
| Status | Description |
|---|---|
429 Too Many Requests | You have exceeded the rate limit of 1 request per minute. Wait before retrying. |
500 Internal Server Error | The scrape failed. The detail field in the response body contains the underlying error message. The existing cache is left unchanged. |