Skip to content
Mark Headd edited this page Sep 12, 2013 · 5 revisions

#Philadelphia School Information API

A simple REST API for getting information about schools in the Philadelphia School District.

##Get a List of All Schools

[
    {
        "school_name_1": "West Philadelphia High School",
        "school_code": "1020",
        "school_level_name": "HIGH SCHOOL",
        "hpaddr": "http://www.philasd.org/schools/westphila",
        "latitude": "39.9586",
        "longitude": "-75.2199"
    },
    {
        "school_name_1": "Girard Academic Music Program",
        "school_code": "2410",
        "school_level_name": "HIGH SCHOOL",
        "hpaddr": "http://www.philasd.org/schools/gamp",
        "latitude": "39.9221",
        "longitude": "-75.1823"
    },
    {
        "school_name_1": "John Bartram High School",
        "school_code": "1010",
        "school_level_name": "HIGH SCHOOL",
        "hpaddr": "",
        "latitude": "39.9215",
        "longitude": "-75.2342"
    },
    {
        "school_name_1": "Grover Washington Jr. Middle",
        "school_code": "7370",
        "school_level_name": "MIDDLE SCHOOL",
        "hpaddr": "http://www.philasd.org/schools/grover",
        "latitude": "40.0356",
        "longitude": "-75.1183"
    }
...
]

##Get a List of All Schools Slated for Closure by SDP

[
    {
        "school_name_1": "Abigail Vare School",
        "school_code": "2720",
        "school_level_name": "ELEMENTARY SCHOOL",
        "hpaddr": "http://www.philasd.org/schools/avare",
        "latitude": "39.9274",
        "longitude": "-75.1507"
    },
    {
        "school_name_1": "Alexander Wilson School",
        "school_code": "1430",
        "school_level_name": "ELEMENTARY SCHOOL",
        "hpaddr": "http://www.philasd.org/schools/alexanderwilson",
        "latitude": "39.9442",
        "longitude": "-75.2097"
    }
...
]

##Get Summary Information for a School

[
    {
        "school_code": "1020",
        "school_name_1": "West Philadelphia High School",
        "school_name_2": "WEST PHILADELPHIA HIGH SCHOOL",
        "address": "4901 CHESTNUT ST.",
        "school_zip": "19139",
        "zip_plus_4": "",
        "city": "PHILADELPHIA             ",
        "state_cd": "PA",
        "phone_number": "2154712902",
        "sch_start_grade": "9",
        "sch_term_grade": "12",
        "hpaddr": "http://www.philasd.org/schools/westphila",
        "school_level_name": "HIGH SCHOOL",
        "latitude": "39.9586",
        "longitude": "-75.2199",
        "closure": "0"
    }
]

##Get Detailed Information for a School

  • Options:
    • school_enrollment
    • school_ethnicity_low_income
    • school_pssa
    • school_serious_incidents
    • school_student
    • school_suspensions
    • teacher_attend

    * Sample Output:
    [
        {
            "school_code": "1020",
            "school_year": "2009",
            "african_american": "97",
            "white": "1",
            "asian": "1",
            "latino": "1",
            "other": "1",
            "pacific_islander": "0",
            "american_indian": "0",
            "sch_low_income_family": "84.7"
        },
        {
            "school_code": "1020",
            "school_year": "2011",
            "african_american": "97",
            "white": "1",
            "asian": "1",
            "latino": "1",
            "other": "0",
            "pacific_islander": "0",
            "american_indian": "0",
            "sch_low_income_family": "89.9"
        }
    ]

    ##JSONP Support

    Just add a callback parameter.

    foo(
    [
        {
            "school_code": "1020",
            "school_year": "2009",
            "african_american": "97",
            "white": "1",
            "asian": "1",
            "latino": "1",
            "other": "1",
            "pacific_islander": "0",
            "american_indian": "0",
            "sch_low_income_family": "84.7"
        },
        {
            "school_code": "1020",
            "school_year": "2011",
            "african_american": "97",
            "white": "1",
            "asian": "1",
            "latino": "1",
            "other": "0",
            "pacific_islander": "0",
            "american_indian": "0",
            "sch_low_income_family": "89.9"
        }
    ]
    )

    Clone this wiki locally