Overview
The location APIs provide hierarchical geographic data for Peru, allowing you to fetch departments, provinces (filtered by department), and districts (filtered by province).- Get Departments
- Get Provinces
- Get Districts
Usage Flow
The location APIs follow a hierarchical pattern:- First, call
getDepartamentosto get all available departments - Second, use a department ID to call
getProvinciasfor provinces within that department - Third, use a province ID to call
getDistritosfor districts within that province