encinecarlos / location_api

A single api to provide location info of countries, states and cities

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Location API

GitHub followers GitHub

About Location API

A simple API that provide information about countries, states in countries and cities in JSON format through some endpoints.

Country Endpoint

GET /api/countries

Provide a list of countries around the world paginated with 10 records per page

GET /api/countries/{id}

Search a specific country by id and return the result to user

State Endpoint

GET /api/states

Provide a list of states/provinces of all countries paginated with 10 records per page

GET /api/states/{id}

Search a specific state by id and return the result to user

cities Endpoint

GET /api/cities

Provide a list of cities of all countries paginated with 10 records per page

GET /api/cities/{id}

Search a specific city by id and return the result to user

About

A single api to provide location info of countries, states and cities

License:MIT License


Languages

Language:PHP 87.9%Language:HTML 12.1%