Project Sidewalk

Welcome back

Project Sidewalk

Join Project Sidewalk

Map sidewalks. Help make your city accessible to everyone.

3–30 characters — letters, numbers, hyphens, and underscores
  • At least 8 characters
  • One uppercase letter
  • One lowercase letter
  • One number
Passwords match

Validation Result Types API

The Validation Result Types API lists the possible outcomes of a label validation, along with how many validations of each type exist. When a user validates a label, they indicate whether they Agree, Disagree, or are Unsure that the label is correct.

Use these result names with the validationResult filter on the Validations API (for example ?validationResult=Agree).

Validation Result Types API Preview

Below is a live preview of the validation result types and their counts for Project Sidewalk:

Loading validation result types...

Endpoint

Retrieve a list of all validation result types with their counts.

GET /v3/api/validationResultTypes

Examples

/v3/api/validationResultTypes Get all validation result types in JSON

Responses

Success Response (200 OK)

On success, the API returns an HTTP 200 OK status code and a JSON object containing an array of validation result types.

{
  "status": "OK",
  "validation_result_types": [
    {
      "name": "Agree",
      "count": 152340,
      "count_human": 138210,
      "count_ai": 14130
    },
    {
      "name": "Disagree",
      "count": 38112,
      "count_human": 34890,
      "count_ai": 3222
    },
    {
      "name": "Unsure",
      "count": 9045,
      "count_human": 8530,
      "count_ai": 515
    }
  ]
}

Response Fields

Field Type Description
status string Always "OK" for successful responses.
validation_result_types array Array of validation result type objects.
validation_result_types[].name string Name of the result: "Agree", "Disagree", or "Unsure". Use this with the validationResult filter on the Validations API.
validation_result_types[].count integer Total number of validations with this result (human and AI combined).
validation_result_types[].count_human integer Number of validations with this result contributed by human validators.
validation_result_types[].count_ai integer Number of validations with this result contributed by Project Sidewalk AI.

Error Responses

If an error occurs, the API will return an appropriate HTTP status code and a JSON response body containing details about the error.

  • 500 Internal Server Error: An unexpected error occurred on the server.

Error Response Body

All errors are returned as RFC 7807 “problem details” with the application/problem+json content type and the following structure:

{
  "type": "about:blank",          // RFC 7807 problem-type URI ("about:blank" means no type beyond the status)
  "title": "Invalid Parameter",   // Short, human-readable summary of the problem type (stable for a given code)
  "status": 400,                  // HTTP status code (also repeated in the body)
  "detail": "Invalid value for the bbox parameter. Expected format: minLng,minLat,maxLng,maxLat.", // This occurrence
  "code": "INVALID_PARAMETER",    // Stable, machine-readable error code you can branch on
  "parameter": "bbox"             // Extension member: the specific parameter at fault (omitted when not applicable)
}

Contribute

Project Sidewalk is an open-source project created by the Makeability Lab and hosted on GitHub. We welcome your contributions! If you found a bug or have a feature request, please open an issue on GitHub.

You can also email us at sidewalk@cs.uw.edu

Project Sidewalk in Your City!

If you are interested in bringing Project Sidewalk to your city, please read our Wiki page.

On This Page