locations

GET /v1/{+parent}

Returns the paginated list of questions and some of its answers for a specified location. This operation is only valid if the specified location is verified.

Request

Path parameters

parentstring required

Required. The name of the location to fetch questions for.

Query parameters

answersPerQuestioninteger

Optional. How many answers to fetch per question. The default and maximum answers_per_question values are 10.

filterstring

Optional. A filter constraining the questions to return. The only filter currently supported is "ignore_answered=true"

orderBystring

Optional. The order to return the questions. Valid options include 'update_time desc' and 'upvote_count desc', which will return the questions sorted descendingly by the requested field. The default sort order is 'update_time desc'.

pageSizeinteger

Optional. How many questions to fetch per page. The default and maximum page_size values are 10.

pageTokenstring

Optional. If specified, the next page of questions is retrieved.

Response

Successful response

nextPageTokenstring

If the number of questions exceeds the requested max page size, this field is populated with a token to fetch the next page of questions on a subsequent call. If there are no more questions, this field is not present in the response.

totalSizeinteger

The total number of questions posted for this location across all pages.

Changes

No recorded changes to this operation across all 1 revision of this API.