A collection of additional endpoints which can be used to search parts of the catalog.
This endpoint returns resources which are related to activities: cities, lists and/or venues.
Its query parameters are similar to those used in the /activities
and /autocomplete
endpoints, but it does not return activities.
Search results
Error
curl -i -X GET \ 'https://sandbox.musement.com/api/v3/activities-related?city_limit=0&city_offset=0&coordinates=45.7386%2C-9.3641&extend_content_fields=AUTO&extend_other_languages=AUTO&fuzziness_level=AUTO&list_limit=0&list_offset=0&minimum_events=1&sort_by=distance&text=string&text_operator=AND&venue_limit=5&venue_offset=0&zero_terms_query=NONE' \ -H 'Accept-Language: en-US' \ -H 'X-Musement-Application: string' \ -H 'X-Musement-Market: us' \ -H 'X-Musement-Version: 3.4.0'
[- {
- "items": [
- {
- "events_count": 161,
- "id": "1",
- "title": "Milan",
}
], - "matched": true,
- "type": "cities"
}
]
This endpoint is ideal for creating a list of choices as part of an autocomplete feature.
Using any of the parameters that ends with _limit
will return that items for that resource in the response. It is possible to include multiple parameters to return multiple resources.
Autocomplete results
Bad request: there are errors in the request
Unauthorized: token is not valid
Service unavailable
curl -i -X GET \ 'https://sandbox.musement.com/api/v3/autocomplete?activity_limit=0&activity_offset=0&category_limit=0&category_offset=0&city_limit=0&city_offset=0&coordinates=string&country_limit=0&country_offset=0&hotel_limit=0&hotel_offset=0&list_limit=0&list_offset=0&pickup_limit=0&pickup_offset=0&sort_by=distance&text=string&venue_limit=5&venue_offset=0' \ -H 'Accept-Language: en-US' \ -H 'X-Musement-Application: string' \ -H 'X-Musement-Version: 3.4.0'
[- {
- "type": "activities",
- "items": [
- {
- "hint": "string",
- "id": "string",
- "title": "string",
}
]
}
]