Get All Countries
Retrieve the list of all countries supported, including country name, code, and ID.
๐ Get All Countries
Use this endpoint to fetch paginated country data used for company or contact address fields.
๐น HTTP Request
GET API-URL/countries๐งพ Query Parameters
Parameter
Default
Description
page
1
Current page to retrieve.
per_page
10
Items per page to retrieve.
๐ Authorization Header
X-API-KEY: your-api-key-here๐ป PHP Example
// GET ALL ITEMS
$response = $endpoint->getCountries($pageNumber = 23, $perPage = 10);
// DISPLAY RESPONSE
echo '<pre>';
print_r($response->body);
echo '</pre>';