Quick Start
Getting Started with APICountries
Introduction
APICountries is a free REST API service that provides detailed information about countries. This documentation will guide you through the basic usage and setup.
Terminology
For a better understanding of the docs, here are some common terminologies:
Endpoint: The specific URL path where an API can be accessed.
HTTP Method: The type of request to be made to the endpoint (e.g., GET, POST).
Status Code: The HTTP status code returned by the API, indicating the result of the request.
Usage Example in JS
To quickly start using APICountries, follow these steps to create a new project and integrate the API.
After installing Axios, you can start making requests to the APICountries API.
Create a file to fetch country data.
Run the script and you will get a list of countries with detailed information.
Example Response
Status code | Description |
---|---|
200 | Success |
400 | Bad request |
404 | Not found |
429 | Rate limit exceeded |
Last updated on