Cityscore
Cityscore is a CoB city-performance metric devised by the Mayors office, calculated and managed by the analytics team.
Drupal (via https://www.boston.gov) is used to provide a public endpoint or micro service which can be used by other departments or external organizations to retrieve current cityscore data for use in their own applications.
Load Cityscore Data
POST
https://www.boston.gov/rest/cityscore/load
This secure endpoint is used by analytics to load and update the current cityscore data.
Request Body
payload
string
A JSON formatted array of cityscore metric objects.
api-key
string
Authentication token
Payload Format.
Get Cityscore Totals
GET
https://www.boston.gov/rest/cityscore/json
This public endpoint returns the latest cityscore indicator value.
Get Cityscore HTML Table
GET
https://www.boston.gov/rest/cityscore/html
This public endpoint returns an HTML string which contains a cityscore metric table using the CoB style.
Last updated
Was this helpful?