data.orcities.org
Open data portalsdata.orcities.org
Socrata open data portal at data.orcities.org, publishing 67 public datasets from the publishing organisation, led by the City Financial Data category.
Capabilities (5)
GET /v1/data/data-orcities-org/catalog-search1 creditKeyword search over the datasets published on data.orcities.org: each hit carries the dataset id, name, description, attribution, category, tags, column names and last update time, plus the total match count.
GET /v1/data/data-orcities-org/dataset1 creditThe complete metadata document for one dataset: name, description, attribution, licence, category, tags, all column definitions with data types, and the table id used for queries.
GET /v1/data/data-orcities-org/datasets1 creditA page of the portal's own dataset records (id, name, description, category, attribution, creation and update timestamps, view count) without the full column metadata.
GET /v1/data/data-orcities-org/row-count1 creditOne number: how many rows the dataset currently holds, as a SoQL count aggregate.
GET /v1/data/data-orcities-org/rows1 creditThe first 100 rows of a dataset as JSON objects keyed by field name. Column names are the API field names, so they can be used directly in a later SoQL query.
Response example
The shape of data from data-orcities-org/catalog-search (Catalogue search). A sample, not live data.
Example truncated, full shape in JSON from the API.
{
"results": [
{
"resource": {
"name": "2018 Salary Survey Data",
"id": "yh2y-34u7",
"resource_name": null,
"parent_fxf": [],
"description": "This data comes from the 2018 salary survey data. Please notethe following:\n\n1. Where able, the data has been altered to reflect the annual pay of the average employee in this city and in this position based on the city's salary range.\n2. Not all salaries and wages of less than 1 FTE could be confirmed. As a result, some salaries for positions with less than 1 FTE are either the annual equivelant or the actual pay of the employee throughout a year (ex. if an employee would make $50,000 as a full time employee but only works half-time, some cities marked this as $50,000 or $25,000. \n3. Educational attainment often was provided with a minimum education and experience as well as a preferred level. The minimum of both categories are provided.",
"attribution": "League of Oregon Cities",
"attribution_link": "http://www.orcities.org",
"contact_email": null,
"type": "dataset",
"updatedAt": "2019-04-23T03:41:12.000Z",
"createdAt": "2018-02-22T20:57:20.000Z",
"metadata_updated_at": "2019-04-23T03:41:12.000Z",
"data_updated_at": "2018-02-27T18:36:34.000Z",
"page_views": {
"page_views_last_week": 11,
"page_views_last_month": 39,
"page_views_total": 5743,
"page_views_last_week_log": 3.5849625007211565,
"page_views_last_month_log": 5.321928094887363,
"page_views_total_log": 12.487840033823051
},
"columns_name": [
"Public Relations Manager - Average Annual Sick Days",
"Superintendent of Streets - # of FTE in City",
"City Planner - Average Salary or Annual Wage",
"City Planner - # of FTE in City",
"Planning Director - Average Salary or Annual Wage",
"Municipal Judge - # of FTE in City",
"Librarian - # of FTE in City",
"IT Manager - Is This Position Contracted Out? (Y/N)",
"IT Manager - Average Salary or Annual Wage",
"IT Manager - # of FTE in City",
"… 236 more items"
],
"columns_field_name": [
"public_relations_manager_average_annual_sick_days",
"superintendent_of_streets_of_fte_in_city",
"city_planner_average_salary_or_annual_wage",
"city_planner_of_fte_in_city",
"planning_director_average_salary_or_annual_wage",
"municipal_judge_of_fte_in_city",
"librarian_of_fte_in_city",
"it_manager_is_this_position_contracted_out_y_n",
"it_manager_average_salary_or_annual_wage",
"it_manager_of_fte_in_city",
"… 236 more items"
],
"columns_datatype": [
"Number",
"Number",
"Number",
"Number",
"Number",
"Number",
"Number",
"Text",
"Number",
"Number",
"… 236 more items"
],
"columns_description": [
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"… 236 more items"
],
"columns_format": [
{
"decimalSeparator": ".",
"groupSeparator": ","
},
{
"decimalSeparator": ".",
"groupSeparator": ","
},
{
"precision": "2",
"decimalSeparator": ".",
"currencyStyle": "CAD",
"groupSeparator": ",",
"precisionStyle": "currency"
},
{
"decimalSeparator": ".",
"groupSeparator": ","
},
{
"precision": "2",
"decimalSeparator": ".",
"currencyStyle": "CAD",
"groupSeparator": ",",
"precAsk with this source
A prompt for your agent that names this source and how to call it through the crw MCP.
Catalogue search
Use data.orcities.org (data-orcities-org) from fastCRW Pergamon, capability "Catalogue search" (catalog-search). You want to find a dataset on this portal by keyword and do not know its four-by-four id. Example options: q=taxi, offset=0, order=page_views_total DESC. Use the crw MCP tools: crw_find_data to confirm the source and its options, then crw_get_data with provider "data-orcities-org" and capability "catalog-search". Tell me the credits used and cite the licence from the response. If the crw MCP tools are missing, install them with: npx -y crw-mcp install --api-key <your fastCRW API key>
Dataset metadata
Use data.orcities.org (data-orcities-org) from fastCRW Pergamon, capability "Dataset metadata" (dataset). You already hold a dataset id and need its columns, licence or description before querying rows. Example options: id=quxh-dcsg. Use the crw MCP tools: crw_find_data to confirm the source and its options, then crw_get_data with provider "data-orcities-org" and capability "dataset". Tell me the credits used and cite the licence from the response. If the crw MCP tools are missing, install them with: npx -y crw-mcp install --api-key <your fastCRW API key>
Dataset inventory
Use data.orcities.org (data-orcities-org) from fastCRW Pergamon, capability "Dataset inventory" (datasets). You need to enumerate what this portal publishes, or page through its newest datasets. Example options: offset=0, order=createdAt, category=Transportation. Use the crw MCP tools: crw_find_data to confirm the source and its options, then crw_get_data with provider "data-orcities-org" and capability "datasets". Tell me the credits used and cite the licence from the response. If the crw MCP tools are missing, install them with: npx -y crw-mcp install --api-key <your fastCRW API key>
Row count
Use data.orcities.org (data-orcities-org) from fastCRW Pergamon, capability "Row count" (row-count). You need to know how large a dataset is before downloading it, or want a cheap liveness check. Example options: id=quxh-dcsg. Use the crw MCP tools: crw_find_data to confirm the source and its options, then crw_get_data with provider "data-orcities-org" and capability "row-count". Tell me the credits used and cite the licence from the response. If the crw MCP tools are missing, install them with: npx -y crw-mcp install --api-key <your fastCRW API key>
Licence
Datasets on this portal declare the licence "Public Domain" in their Socrata metadata; the portal publishes no separate API licence and different datasets may carry different terms. Quoted as found in the portal's own catalogue.
https://data.orcities.org/Attribution
Display this wherever you show the data. It arrives on every response as provenance.attribution_text.
Source: data.orcities.org. Dataset attribution as stated by each publishing agency.
Cache: up to 3600s
