{"id":20334890,"url":"https://github.com/mdb/node-phli","last_synced_at":"2025-07-02T17:06:27.344Z","repository":{"id":5743622,"uuid":"6956028","full_name":"mdb/node-phli","owner":"mdb","description":"A Node.js module for interacting with the City of Philadelphia's Licenses \u0026 Inspections data.","archived":false,"fork":false,"pushed_at":"2016-02-04T13:03:42.000Z","size":45,"stargazers_count":6,"open_issues_count":2,"forks_count":1,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-06-14T23:16:35.605Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mdb.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2012-12-01T16:12:07.000Z","updated_at":"2018-03-15T15:04:24.000Z","dependencies_parsed_at":"2022-09-13T18:43:43.925Z","dependency_job_id":null,"html_url":"https://github.com/mdb/node-phli","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/mdb/node-phli","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mdb%2Fnode-phli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mdb%2Fnode-phli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mdb%2Fnode-phli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mdb%2Fnode-phli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mdb","download_url":"https://codeload.github.com/mdb/node-phli/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mdb%2Fnode-phli/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263182180,"owners_count":23426633,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-14T20:38:29.497Z","updated_at":"2025-07-02T17:06:26.965Z","avatar_url":"https://github.com/mdb.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Build Status](https://secure.travis-ci.org/mdb/node-phli.png?branch=master)](https://travis-ci.org/mdb/node-phli)\n\n# phli\n\nA Node.js module for interacting with the City of Philadelphia's Licenses \u0026 Inspections data.\n\n`phli` was built during the December 2012 [Random Hacks of Kindness](http://www.rhok.org) Philadelphia hackathon.\n\n## Getting Started\n\nInstall phli:\n\n```\nnpm install phli\n```\n\nRequire and instantiate phli:\n\n```\nvar phli = require('phli')();\n```\n\n## Example Usage\n\n### getAddressHistory\n\nGet L \u0026 I history for a Philadelpia address:\n\n```javascript\nphli.getAddressHistory('1500 market street', function (err, data) {\n  console.log(data);\n});\n```\n\n### getPermits\n\nGet permits data related to a certain filter criteria, such as zipcode:\n\n```javascript\nphli.getPermits({zip: '19143'}, function (err, data) {\n  console.log(data);\n});\n```\n\nAvailable filters example:\n\n```javascript\n{\n  zip: '19143', // pass an array of zipcodes to filter on multiple zips\n  ward: '44', // 1 - 66; pass an array of wards to filter on multiple wards\n  contractor_name: 'John Doe'; pass an array of contractors to filter on multiple contractors\n  council_district: '1', // 1 - 10; pass an array of districts to filter on multiple districts\n  census_tract: '1', // 1 - 300-and-something; pass an array of tracts to filter on multiple tracts\n  start_date: '2011-12-01',\n  end_date: '2012-12-01',\n  top: '2'\n}\n```\n\n### getLicenses\n\nGet licenses data related to a certain filter criteria, such as zipcode:\n\n```javascript\nphli.getLicenses({zip: '19143'}, function (err, data) {\n  console.log(data);\n});\n```\n\nAvailable filters example:\n\n```javascript\n{\n  zip: '19143', // pass an array of zipcodes to filter on multiple zips\n  ward: '44', // 1 - 66; pass an array of wards to filter on multiple wards\n  council_district: '1', // 1 - 10; pass an array of districts to filter on multiple districts\n  census_tract: '1', // 1 - 300-and-something; pass an array of tracts to filter on multiple tracts\n  start_date: '2011-12-01',\n  end_date: '2012-12-01',\n  top: '2'\n}\n```\n\n### getCases\n\nGet cases data related to a certain filter criteria, such as zipcode:\n\n```javascript\nphli.getLicenses({zip: '19143'}, function (err, data) {\n  console.log(data);\n});\n```\n\nAvailable filters example:\n\n```javascript\n{\n  zip: '19143', // pass an array of zipcodes to filter on multiple zips\n  ward: '44', // 1 - 66; pass an array of wards to filter on multiple wards\n  council_district: '1', // 1 - 10; pass an array of districts to filter on multiple districts\n  census_tract: '1', // 1 - 300-and-something; pass an array of tracts to filter on multiple tracts\n  start_date: '2011-12-01',\n  end_date: '2012-12-01'\n}\n```\n\n### getPermitInfo\n\nGet permit details surrounding a specific permit ID, such as 33333:\n\n```javascript\nphli.getPermitInfo('33333', function (err, data) {\n  console.log(data);\n});\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmdb%2Fnode-phli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmdb%2Fnode-phli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmdb%2Fnode-phli/lists"}