API Documentation

Mashilo Digital publishes a read-only JSON API over the content on this website. There is no API key, no account and no authentication. If you can fetch a URL, you can use the API.

The full machine-readable specification is at /openapi.json (OpenAPI 3.1.0). An agent-readable summary is at /llms.txt.

Base URL

https://mashilodigital.co.za

Every response is application/json; charset=UTF-8.

Authentication

None. The API is anonymous and read-only. There are no write endpoints, no tokens, and no credentials to manage. If you receive a 401 or 403, you have hit a host-level protection rather than the API, and the request should be retried at a lower rate.

Rate limits

No formal limit is published, but please be reasonable. Fetch what you need, cache it, and avoid tight loops. There are no API keys to rotate and nothing to rate-limit per client, so politeness is the only protection the API has.

Endpoints

List content types

GET /wp-json/wp/v2/types

Every post type exposed by the API. Useful as a first call when you want to know what can be queried.

List categories

GET /wp-json/wp/v2/categories

All category terms with id, name, slug, description, parent and count.

List published pages

GET /wp-json/wp/v2/pages

Published pages, which covers the service pages, industry pages and the contact page.

List published posts

GET /wp-json/wp/v2/posts

Published blog posts and long-form editorial content.

Get one post

GET /wp-json/wp/v2/posts/{id}

A single published post by numeric id.

Parameters

ParameterInTypeNotes
pagequeryinteger1-based page number. Default 1.
per_pagequeryinteger1 to 100 items per response. Default 10.
searchquerystringFull-text search across title and content.
orderbyquerystringOne of date, id, title, slug, modified.
slugquerystringPages only. Filter to a single slug.
categoriesqueryintegerPosts only. Filter by category id; comma-separate for more than one.
_fieldsquerystringReturn only these keys. Strongly recommended, it cuts response size substantially.

Examples

All of the following were run against the live API and return the output shown.

The latest post

curl "https://mashilodigital.co.za/wp-json/wp/v2/posts?per_page=1&_fields=id,title,link"
[{"id":5825,"link":"https://mashilodigital.co.za/blog/seo-traffic/impressions-without-clicks-search-console/","title":{"rendered":"Impressions Without Clicks: What Our Own Search Console Data Revealed"}}]

One page by slug

curl "https://mashilodigital.co.za/wp-json/wp/v2/pages?slug=about-us&_fields=id,slug,title,link"
[{"id":645,"slug":"about-us","link":"https://mashilodigital.co.za/about-us/","title":{"rendered":"About Us"}}]

Categories

curl "https://mashilodigital.co.za/wp-json/wp/v2/categories?per_page=3&_fields=id,name,slug,count"
[{"id":39,"count":1,"name":"AI & Performance Marketing","slug":"ai-performance-marketing"},{"id":1,"count":0,"name":"Content Hub","slug":"content-hub"},{"id":42,"count":3,"name":"Paid Ads That Convert","slug":"paid-ads-convert"}]

Response shape

List endpoints return a JSON array. Each item carries at least id, date, modified, slug, status, link, and title, content and excerpt objects that each hold a rendered string.

Errors

Every error uses the same envelope, so you can branch on code rather than parsing prose.

{
  "code": "rest_no_route",
  "message": "No route was found matching the URL and request method.",
  "data": { "status": 404 }
}

Common codes: rest_no_route for an unknown path, rest_post_invalid_id for a post id that does not exist, and rest_invalid_param for a bad parameter value.

What this API is not

It is read-only. There is no booking, quote, contact or transaction endpoint, and none is planned. To enquire, use the contact page, email [email protected], or call +27 65 806 3960.


About this page

Every endpoint, parameter and response body shown here was executed against the live API on 26 September 2026 and the output copied from the real response. Nothing on this page is illustrative.