Search Lifestyles
GET/v4/lifestyles
This endpoint returns returns lifestyle trend information from Spatial AI. This data is based on where behaviors occur, not where people live. There are 72 lifestyle behaviors that are measured.
Currently the only countries supported are the United States of America and Canada.
Request
Query Parameters
- lifestyle
- percentileVsNation
- asc (ascending order)
- desc (descending order)
- boundary-id
The boundary ID(s) to get lifestyle behavioral information on. Behavioral information will only be returned if the boundary exists and there is lifestyle information available for it. Only 20 boundary IDs can be supplied per request.
An array of slugs that represent a corresponding lifestyle behavior that you want excluded from the results.
The number of lifestyle behaviors you want returned. There are 72 lifestyle behaviors that are measured. This is useful in cases where you only need the top lifestyle behaviors for a requested area.
Used for pagination, the number of records for the collection to skip.
Default value: 0
Sort by any of the following parameters.
Possible values: [lifestyle
, percentileVsNation
]
Default value: percentileVsNation
The direction in which to sort using the following parameters.
Possible values: [asc
, desc
]
Default value: desc
Group results by boundary ID instead of aggregating results for all included boundaries.
Possible values: [boundary-id
]
Responses
- 200
- 401
- 403
- 429
- 500
- 504
- application/json
- Schema
- Example (from schema)
Schema
Array [
Array [
]
]
data
object[]
The boundary id or ids used to aggregate lifestyle behavioral data.
data
object[]
required
Array of lifestyle behaviors. There are 72 lifestyle behaviors that are measured.
The id given for this lifestyle by Spatial AI.
The lifestyle behavior being measured. Measurements are based on where behaviors occurs, not where people live.
An easier to read id to be used when excluding lifestyle behaviors from the results.
The category the lifestyle behavior belongs to.
A score representing percentile vs. the nation. A "Bookish" score of 80 means this area scored higher than 80% of the nation.
A visual representation of the lifestyle behavior.
A description of the lifestyle behavior being measured.
{
"success": true,
"data": [
{
"boundaryId": [
"string"
],
"data": [
{
"spatialAiId": "string",
"lifestyle": "string",
"slug": "string",
"category": "string",
"percentileVsNation": "string",
"image": "string",
"description": "string"
}
]
}
]
}
Unauthorized
Forbidden
Too Many Requests
Internal Server Error
Service Unavailable