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>';

๐Ÿ“ฆ Sample JSON Response