<your-domain>.com/wp-json/wpb/v2/closing
Do not use the API call without the parameters below. You will not receive all of the data.
Example:
The limit parameters allows you to limit the number of entities returned.
Enter the maximum number of entities you want returned per API call.
Example:
limit=20
The page parameter allows you to paginate your API calls.
In most cases, you can keep this to 1. However, if you have a lot of schools and you want to make multiple calls, you can call page 1 first, then page 2, etc…
Example:
page=1
The type parameter allows you to filter your API call to include all of only specific types of entities.
The value “all” would include all entity types (unfiltered). You can use the various parameter values to filter the list to only certain entity types.
Example:
type=all
The status parameter allows you to filter your API call to include all of only specific types of closing reasons.
The value “show-all” would include all closing reasons (unfiltered). You can use the various parameter values to filter the list to only certain entity closing reasons.
Example:
status=show-all
type=all&status=show-all
type=school&status=show-all
type=business&status=show-all
type=all&status=delay
type=all&status=closed