Building permits in Pennsylvania
2 jurisdictions, each with the department that issues, its portal and its phone number. Cities issue their own permits; counties cover unincorporated areas, which is the distinction that sends most contractors to the wrong office.
2 checked against the department's own page
Licensing
No statewide general-contractor competency license; anyone doing $5,000+/year of home-improvement work must register (not license) with the Attorney General under HICPA; competency licensing is only municipal.
Pennsylvania Office of Attorney General — Home Improvement Contractor Registration (HICPA)