Mon, Oct 26
For Developers & Researchers

Open Data API

We believe public information belongs to the public. Access our directory of Dipolog City services, contact details, and facilities through our free, structured JSON API.

Please Do Not Scrape Our HTML

To ensure our servers remain fast and reliable for the citizens of Dipolog, we kindly ask developers and researchers not to write web scrapers for our user interface. Please use the officially supported API endpoint documented below instead.

Available Endpoints

We currently offer four separate REST endpoints to keep data payloads small and highly targeted. All endpoints accept standard GET requests and return JSON.

1. Public Services Directory

Returns civic services, utilities, and emergency contacts.

/api/v1/services

2. City Hall Departments

Returns LGU offices managed directly by the City of Dipolog.

/api/v1/departments

3. National Agencies & GOCCs

Returns regional branches of national government entities.

/api/v1/agencies

4. Budget & Finances

Returns Dipolog City's annual revenue and expenditure breakdown.

/api/v1/budget

Example Requests

JavaScript (Fetch API)

fetch('https://betterdipolog.org/api/v1/services')
  .then(response => response.json())
  .then(data => console.log(data));

cURL

curl -X GET "https://betterdipolog.org/api/v1/services" \
  -H "Accept: application/json"

Response Schema

The API returns a JSON object containing metadata and a data array containing the service objects.

{
  "success": true,
  "meta": {
    "total": 142,
    "lastUpdated": "2026-06-17T12:00:00Z",
    "source": "BetterDipolog Open Data API"
  },
  "data": [
    {
      "title": "City Health Office",
      "category": "Health & Medical",
      "description": "Primary healthcare services and sanitary permits...",
      "department": "Local Government Unit",
      "isWalkIn": true,
      "isOnline": false,
      "type": "standard",
      "slug": "city-health-office"
    }
    // ... more results
  ]
}