Documentation
Postal codes
Interactive reference for the postal codes endpoints. Fill in parameters, run live requests with your own token, and copy ready-to-paste code.
GET
/v1/data/postal-codespostal_codes:readSuburb, street code, and box code lookup.
Query parameters
GET /v1/data/postal-codes?page=1&per_page=20Code
curl "https://api.labs.org.za/v1/data/postal-codes?page=1&per_page=20" \ -H "Authorization: Bearer labs_sandbox_your_token_here"
Response
Run the request to see a live response.
Example response shape
{
"data": [
{ "id": "pc_1", "suburb": "Sandton", "area": "Johannesburg", "street_code": "2196", "box_code": "2146" }
],
"meta": { "total": 1, "page": 1, "per_page": 20 }
}GET
/v1/data/postal-codes/:idpostal_codes:readA single postal code record by id.
Path parameters
GET /v1/data/postal-codes/pc_1Code
curl "https://api.labs.org.za/v1/data/postal-codes/pc_1" \ -H "Authorization: Bearer labs_sandbox_your_token_here"
Response
Run the request to see a live response.
Example response shape
{
"data": {
"id": "pc_1",
"suburb": "Sandton",
"area": "Johannesburg",
"street_code": "2196",
"box_code": "2146",
"province": "Gauteng"
}
}