Get All Countries
Get a paginated list of all countries. Public endpoint.
Endpoint
Authentication
Not required (public endpoint)
Query Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
page |
integer | Yes | Page number (starts at 1) |
count |
integer | Yes | Items per page (max 100) |
search |
string | No | Search by country name (case-insensitive) |
Response
Success (200 OK)
{
"count": 10,
"data": [
{
"id": 1,
"name": "Azerbaijan",
"created": "2025-01-15T10:30:00Z"
},
{
"id": 2,
"name": "Turkey",
"created": "2025-01-15T10:30:00Z"
}
]
}
Error Responses
Pagination Error (400)
Example Request
Notes
- Only returns non-deleted countries
- Search matches against country name
- Results are ordered by ID descending (newest first)
- This is a public endpoint, no authentication required