### Get all municipalities using cURL Source: https://documenter.getpostman.com/view/12270232/TVmFmLrt/index This cURL command retrieves a list of all municipalities. No parameters or authentication are required. ```cURL curl --location 'https://psgc.vercel.app/api/municipality' ``` -------------------------------- ### Get all barangays using cURL Source: https://documenter.getpostman.com/view/12270232/TVmFmLrt/index This cURL command retrieves a list of all barangays. No parameters or authentication are required. ```cURL curl --location 'https://psgc.vercel.app/api/barangay' ``` -------------------------------- ### GET /api/municipality Source: https://documenter.getpostman.com/view/12270232/TVmFmLrt/index Fetches all municipalities across the Philippines. This is a comprehensive endpoint for retrieving municipality-level data from PSGC. Useful for broad geographic searches. ```APIDOC ## GET /api/municipality ### Description Returns a complete list of all municipalities in the Philippines according to PSGC standards. ### Method GET ### Endpoint https://psgc.vercel.app/api/municipality ### Parameters #### Path Parameters None #### Query Parameters None #### Request Body None ### Request Example ``` curl --location 'https://psgc.vercel.app/api/municipality' ``` ### Response #### Success Response (200) Returns an array of municipality objects including codes and names. #### Response Example No specific response example provided; typically returns JSON array of municipalities. ``` -------------------------------- ### GET /api/region/{code}/province Source: https://documenter.getpostman.com/view/12270232/TVmFmLrt/index Retrieves a list of provinces within a specific region using the region's code. This endpoint is useful for hierarchical geographic data lookup. The response contains province details, though examples are not provided in the source documentation. ```APIDOC ## GET /api/region/{code}/province ### Description Returns a list of provinces in the specified region based on PSGC data. ### Method GET ### Endpoint https://psgc.vercel.app/api/region/{code}/province ### Parameters #### Path Parameters - **code** (string) - Required - The unique code for the region. #### Query Parameters None #### Request Body None ### Request Example ``` curl --location -g 'https://psgc.vercel.app/api/region/{{code}}/province' ``` ### Response #### Success Response (200) Returns an array of province objects with details like name and code. #### Response Example No specific response example provided; typically returns JSON array of provinces. ``` -------------------------------- ### GET /api/municipality/{code} Source: https://documenter.getpostman.com/view/12270232/TVmFmLrt/index Retrieves details for a specific municipality using its unique code. This endpoint allows targeted queries for individual municipality information. Essential for detailed lookups. ```APIDOC ## GET /api/municipality/{code} ### Description Fetches detailed information for a specific municipality identified by its code. ### Method GET ### Endpoint https://psgc.vercel.app/api/municipality/{code} ### Parameters #### Path Parameters - **code** (string) - Required - The unique PSGC code for the municipality. #### Query Parameters None #### Request Body None ### Request Example ``` curl --location -g 'https://psgc.vercel.app/api/municipality/{{code}}' ``` ### Response #### Success Response (200) Returns a single municipality object with full details. #### Response Example No specific response example provided; typically returns JSON object for the municipality. ``` -------------------------------- ### GET /api/barangay/{code} Source: https://documenter.getpostman.com/view/12270232/TVmFmLrt/index Fetches details for a specific barangay using its code. This allows precise retrieval of individual barangay information. Supports detailed local geographic data access. ```APIDOC ## GET /api/barangay/{code} ### Description Retrieves information for a specific barangay identified by its PSGC code. ### Method GET ### Endpoint https://psgc.vercel.app/api/barangay/{code} ### Parameters #### Path Parameters - **code** (string) - Required - The unique code for the barangay. #### Query Parameters None #### Request Body None ### Request Example ``` curl --location -g 'https://psgc.vercel.app/api/barangay/{{code}}' ``` ### Response #### Success Response (200) Returns a single barangay object with details. #### Response Example No specific response example provided; typically returns JSON object for the barangay. ``` -------------------------------- ### GET /api/barangay Source: https://documenter.getpostman.com/view/12270232/TVmFmLrt/index Retrieves all barangays in the Philippines. This endpoint provides nationwide barangay data for comprehensive listings. Useful for aggregated local administrative unit queries. ```APIDOC ## GET /api/barangay ### Description Returns a complete list of all barangays across the Philippines from PSGC data. ### Method GET ### Endpoint https://psgc.vercel.app/api/barangay ### Parameters #### Path Parameters None #### Query Parameters None #### Request Body None ### Request Example ``` curl --location 'https://psgc.vercel.app/api/barangay' ``` ### Response #### Success Response (200) Returns an array of all barangay objects. #### Response Example No specific response example provided; typically returns JSON array of barangays. ``` -------------------------------- ### Get specific municipality using cURL Source: https://documenter.getpostman.com/view/12270232/TVmFmLrt/index This cURL command retrieves data for a specific municipality. Replace {{code}} with the municipality code. No authentication is required. ```cURL curl --location -g 'https://psgc.vercel.app/api/municipality/{{code}}' ``` -------------------------------- ### Get specific barangay using cURL Source: https://documenter.getpostman.com/view/12270232/TVmFmLrt/index This cURL command retrieves data for a specific barangay. Replace {{code}} with the barangay code. No authentication is required. ```cURL curl --location -g 'https://psgc.vercel.app/api/barangay/{{code}}' ``` -------------------------------- ### Get barangays in a municipality using cURL Source: https://documenter.getpostman.com/view/12270232/TVmFmLrt/index This cURL command retrieves a list of barangays within a specific municipality. Replace {{code}} with the municipality code. No authentication is required. ```cURL curl --location -g 'https://psgc.vercel.app/api/municipality/{{code}}/barangay' ``` -------------------------------- ### GET /api/municipality/{code}/barangay Source: https://documenter.getpostman.com/view/12270232/TVmFmLrt/index Lists all barangays within a specific municipality using the municipality's code. This supports granular geographic hierarchy navigation. Ideal for local-level data retrieval. ```APIDOC ## GET /api/municipality/{code}/barangay ### Description Returns a list of barangays in the specified municipality. ### Method GET ### Endpoint https://psgc.vercel.app/api/municipality/{code}/barangay ### Parameters #### Path Parameters - **code** (string) - Required - The unique code for the municipality. #### Query Parameters None #### Request Body None ### Request Example ``` curl --location -g 'https://psgc.vercel.app/api/municipality/{{code}}/barangay' ``` ### Response #### Success Response (200) Returns an array of barangay objects with names and codes. #### Response Example No specific response example provided; typically returns JSON array of barangays. ``` -------------------------------- ### Get provinces in a region using cURL Source: https://documenter.getpostman.com/view/12270232/TVmFmLrt/index This cURL command retrieves a list of provinces within a specific region. Replace {{code}} with the region code. No authentication is required. ```cURL curl --location -g 'https://psgc.vercel.app/api/region/{{code}}/province' ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.