← Back to Sample APIs

Country List API

Returns all countries with ISO code, name, and region. Optionally filter by region. Perfect for populating dropdowns in OutSystems.

01

Endpoint

GET https://labs.lowcademy.com/apis/countries
PropertyValue
MethodGET
Base URLhttps://labs.lowcademy.com/apis/
Filecountries.php
AuthenticationNone
02

Authentication

No authentication required — open endpoint.
03

Query Parameters

ParameterTypeRequiredDescription
region String Optional Filter by region: Asia, Europe, Africa, Americas, Oceania
04

Sample Requests

All countries

curl https://labs.lowcademy.com/apis/countries

Filter by region

curl https://labs.lowcademy.com/apis/countries?region=Asia
05

Response — 200 OK

FieldTypeDescription
successBooleanAlways true
countIntegerNumber of countries returned
data[].codeString2-letter ISO country code (e.g. IN, US)
data[].nameStringCountry name
data[].regionStringAsia, Europe, Africa, Americas, or Oceania
{
  "success": true,
  "count"  : 249,
  "data"   : [
    { "code": "IN", "name": "India",         "region": "Asia" },
    { "code": "US", "name": "United States", "region": "Americas" }
  ]
}
06

Error Responses

200
OK — Country list returned (may be empty array if region not matched).
405
Method Not Allowed — Use GET.