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).
Below is a live preview of the validation result types and their counts for Project Sidewalk:
Retrieve a list of all validation result types with their counts.
GET /v3/api/validationResultTypes
/v3/api/validationResultTypes Get all validation result types in JSON
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
}
]
}
| 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. |
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.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)
}
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
If you are interested in bringing Project Sidewalk to your city, please read our Wiki page.