Skip to content
PSGC Cloud Logo White
  • Home
  • Documentation
  • Contact
PSGC Cloud Logo White
  • Home
  • Documentation
  • Contact

Public API

7
  • PSGC Regions API Documentation
  • PSGC Provinces API Documentation
  • PSGC Cities Municipalities API Documentation
  • PSGC Cities API Documentation
  • PSGC Municipalities API Documentation
  • PSGC Sub-Municipalities API Documentation
  • PSGC Barangays API Documentation
  • Home
  • Docs
  • Public API
  • PSGC Provinces API Documentation
View Categories

PSGC Provinces API Documentation

1 min read

This API lets you retrieve information about provinces and their cities, municipalities, sub-municipalities, and barangays in the Philippines. The API returns data in JSON format, providing a convenient way to access the information programmatically.

Accessing All Provinces #

To access all provinces, you can make a GET request to the following endpoint:

https://psgc.cloud/api/provinces

This will return a JSON object containing information about all the provinces in the Philippines.

Accessing a Single Province #

If you want to retrieve information about a specific province, you can use either the province code or name value. For example, to access the province with code “0102900000”, you can make a GET request to the following endpoint:

https://psgc.cloud/api/provinces/0102900000

This will return a JSON object containing information about the province with the specified code.

Accessing Cities of a Province #

To access the cities within a province, you can append “/cities” to the province endpoint. For example, to retrieve the cities within the province with code “0102900000”, you can make a GET request to the following endpoint:

https://psgc.cloud/api/provinces/0102900000/cities

This will return a JSON object containing information about the cities within the specified province.

Accessing Municipalities of a Province #

To access the municipalities within a province, you can append “/municipalities” to the province endpoint. For example, to retrieve the municipalities within the province with code “0102900000”, you can make a GET request to the following endpoint:

https://psgc.cloud/api/provinces/0102900000/municipalities

This will return a JSON object containing information about the municipalities within the specified province.

Accessing Sub-Municipalities of a Province #

To access the sub-municipalities within a province, you can append “/sub-municipalities” to the province endpoint. For example, to retrieve the sub-municipalities within the province with code “0102900000”, you can make a GET request to the following endpoint:

https://psgc.cloud/api/provinces/0102900000/sub-municipalities

This will return a JSON object containing information about the sub-municipalities within the specified province.

Accessing Cities and Municipalities of a Province #

If you want to retrieve both cities and municipalities within a province, you can append “/cities-municipalities” to the province endpoint. For example, to retrieve both cities and municipalities within the province with code “0102900000”, you can make a GET request to the following endpoint:

https://psgc.cloud/api/provinces/0102900000/cities-municipalities

This will return a JSON object containing information about both cities and municipalities within the specified province.

Accessing Barangays of a Province #

To access the barangays within a province, you can append “/barangays” to the province endpoint. For example, to retrieve the barangays within the province with code “0102900000”, you can make a GET request to the following endpoint:

https://psgc.cloud/api/provinces/0102900000/barangays

This will return a JSON object containing information about the barangays within the specified province.

That’s it! You now have the necessary information to start using the PSGC Cloud Provinces API. Feel free to explore the different endpoints and retrieve the data you need for your applications.

What are your Feelings
Share This Article :
  • Facebook
  • X
  • LinkedIn
  • Pinterest
Still stuck? How can we help?

How can we help?

Updated on February 10, 2024
PSGC Regions API DocumentationPSGC Cities Municipalities API Documentation

Powered by BetterDocs

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Table of Contents
  • Accessing All Provinces
  • Accessing a Single Province
  • Accessing Cities of a Province
  • Accessing Municipalities of a Province
  • Accessing Sub-Municipalities of a Province
  • Accessing Cities and Municipalities of a Province
  • Accessing Barangays of a Province

Copyright © 2025 PSGC Cloud