market_data
Fetch Average Revenue Metrics for a Market.
This endpoint provides 12 to 60 months of historical monthly revenue data for a Market.
- Supports Currency Conversion for non-USD currencies.
- By default, all currency data is in USD.
- Supports some Listing Filters to calculate historical revenue for certain types of STR Listings within the Market.
- Supports requests to calculate custom percentiles for revenue within the Market.
post/market/{marketId}/metrics/avg_revenue
Path parameters
marketIdstring required
AirDNA ID for the Market. This can often be found as market_id.
Example:airdna-163
Request body
Example request
{
"num_months": 12,
"filters": [
{
"type": "gte",
"field": "accommodates",
"value": 4
}
],
"currency": "usd"
}Response
Successful Market Average Revenue Metrics Response
Example response
{
"payload": {
"metrics": [
{
"date": "2022-11",
"revenue": 2765,
"revenue_percentiles": [
200,
454,
898
]
}
],
"monthly_pct_change": -10.36,
"yearly_pct_change": -3.3
},
"status": {
"type": "success",
"response_id": "API-S-XXX",
"message": "A successful request was made."
}
}