Skip to content

Returns a page from the list of blog posts. The page can be empty if the page number is too large.

GET
/api/blog

Authorizations

api_key
Type: API Key (header: X-CSRF-Token)

Parameters

Query Parameters

page

Which page of updates to return

Typestring

Responses

Successful
JSON
{
"totalPosts": 0
}
Authorization
api_key
Variables
Key
Value
page
cURL
curl -X GET \
'http://localhost/api/blog'

Samples

cURL
curl -X GET http://localhost/api/blog
JavaScript
fetch("http://localhost/api/blog")
  .then(response => response.json())
  .then(data => console.log(data));
PHP
file_get_contents("http://localhost/api/blog");
Python
import requests
response = requests.get("http://localhost/api/blog")
print(response.json())