Use this API operation to return a list of Tours on the criteria you pass in.
GET
/v1/search/searchTours
Property | Type | Description |
---|---|---|
PageSize |
integer | Sets the number of tours on each page of the result set. Accepts values from 1 to 100 . Default is 50 . |
PageNumber |
integer | Returns a specific page in the result set. Accepts values from 1 onwards. |
UserID |
integer | The User ID of the AdultWork.com member profile you wish the API to return the tours of. |
GenderID |
integer | The Gender ID of the AdultWork.com member profile you wish the API to return the tours of. |
OrientationID |
integer | The Orientation ID of the AdultWork.com member profile you wish the API to return the tours of. |
MinAge |
integer | The minimun age of the AdultWork.com member profile you wish the API to return the tours of. |
MaxAge |
integer | The maximum age of the AdultWork.com member profile you wish the API to return the tours of. |
CountryID |
integer | Required. Returns tours from the Country to which CountyID relates. See the getCountries method. |
RegionID |
integer | Required. Returns tours from the Region to which RegionID relates. See the getRegions method. |
CountyID |
integer | Returns tours from the County to which CountyID relates. See the getCounties method. |
Town |
string | Returns tours from the Town which name contains the supplied text. |
TourDateFrom |
datetime | The start date of which the tours took place. Format is yyyy-MM-dd |
TourDateTo |
datetime | The end date of which the tours took place. Format is yyyy-MM-dd |
LocationProximityMiles |
integer | Distance in miles from Postcode/Zipcode of which the tours took place. From 1 - 99 . LocationZipCode required. |
LocationProximityKilometres |
integer | Distance in kilometres from Postcode/Zipcode of which the tours took place. From 1 - 159 . LocationZipCode required. If a value is also set in LocationProximityMiles that property will take presidence. |
LocationZipCode |
string | Returns tours within a specified number of miles from the Postcode/Zipcode supplied. LocationProximityMiles required. |
Parameters can be passed to this operation using the HTTP GET method by passing parameters over the query string of the URI.
The REST API uses HTTP request headers to determine what data type is returned or to authenticate the developer's API key. More information can be found in the overview section.
This endpoint has the following optional headers:
Headers | Value | |
---|---|---|
X-MaskImages |
1 |
What's this? |
Your API-Key is required with every request and can be passed in as a header or a query-string parameter. Don't have an API-Key? Get one now.
Property | Type | Description |
---|---|---|
PageCount |
integer | Represents the total number of pages in the result set. |
PageNumber |
integer | Represents the current page number. |
TourTotal |
integer | Represents the total number of tours in the result set. |
PageSize |
integer | Represents how many tours are listed on each page. |
Tours |
Array of aws:Tour | List of tours data. |
The following example returns a single tour.