
This API lets you retrieve information about barangays in the Philippines. The API returns data in JSON format, providing a convenient way to access the information programmatically.
Accessing All Barangays #
To access all barangays, you can make a GET request to the following endpoint:
https://psgc.cloud/api/barangays
This will return a JSON object containing information about all the barangays in the Philippines.
Accessing a Single Barangay #
If you want to retrieve information about a specific barangay, you can use either the barangay code or name value. For example, to access the barangay with code “0102802002”, you can make a GET request to the following endpoint:
https://psgc.cloud/api/barangays/0102802002
This will return a JSON object containing information about the barangay with the specified code.