Search
Adv Search Coach Services
POST https://api.stretch.com/api/v1/search
Input Fields / Form-Data / JSON
Query Parameter | Type | Description | Example |
---|---|---|---|
page | integer | ||
limit | integer | 20 | |
type | coach | ||
gender | Gender or none |
male | |
languages | array | List of all possible languages |
|
price | {'min': 100.0, 'max': 10000.0} | ||
days | array default: _['monday', 'tuesday', 'wednesday', 'thursday', 'friday', 'saturday', 'sunday']_ | List of all possible days in current location |
|
services | array | List of all possible service types |
['Assisted stretching', 'Static Stretching'] |
addressId | string (uuid) | ||
lng | number | 55.1254 | |
lat | number | 25.1254 | |
radius | integer | 100000 | |
direction | asc | ||
order | default: _distance_ | distance | |
time | array | List of all possible time in current location |
Code sample
curl -X POST \
--url "https://api.stretch.com/api/v1/search" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN"\
-d '{
"page": 0,
"limit": 20,
"type": "coach",
"gender": "male",
"languages": [],
"price": ,
"days": [],
"services": [],
"addressId": "be5425f8-eba7-4a19-8316-25d527df64c5",
"lng": 55.1254,
"lat": 25.1254,
"radius": 100000,
"direction": "asc",
"order": "distance",
"time": []
}'
Response
SearchOut
[{
"coachId": "7848f895-7afe-4699-97ff-b22107fa67f2",
"distance": 55.12,
"firstName": "string",
"lastName": "string",
"phone": "string",
"whatsapp": "string",
"rating": 55.12,
"avatarUrl": "string",
"type": "string",
"price": 55.12,
"minPrice": 55.12,
"maxPrice": 55.12,
"summary": "string",
"priceCurrency": "string",
"mediaType": "string",
"mediaUrl": "string",
"mediaPreviewUrl": "string",
"verified": False,
"sessionCount": 1234,
"requiresParking": False,
"serviceTypes": [],
"languages": "object",
"favorite": False
},{
"coachId": "d1557fbf-502a-441d-a035-2d26fc8ebba8",
"distance": 55.12,
"firstName": "string",
"lastName": "string",
"phone": "string",
"whatsapp": "string",
"rating": 55.12,
"avatarUrl": "string",
"type": "string",
"price": 55.12,
"minPrice": 55.12,
"maxPrice": 55.12,
"summary": "string",
"priceCurrency": "string",
"mediaType": "string",
"mediaUrl": "string",
"mediaPreviewUrl": "string",
"verified": False,
"sessionCount": 1234,
"requiresParking": False,
"serviceTypes": [],
"languages": "object",
"favorite": False
}]
Adv Search Coach Counts
POST https://api.stretch.com/api/v1/search/count
Input Fields / Form-Data / JSON
Query Parameter | Type | Description | Example |
---|---|---|---|
page | integer | ||
limit | integer | 20 | |
type | coach | ||
gender | Gender or none |
male | |
languages | array | List of all possible languages |
|
price | {'min': 100.0, 'max': 10000.0} | ||
days | array default: _['monday', 'tuesday', 'wednesday', 'thursday', 'friday', 'saturday', 'sunday']_ | List of all possible days in current location |
|
services | array | List of all possible service types |
['Assisted stretching', 'Static Stretching'] |
addressId | string (uuid) | ||
lng | number | 55.1254 | |
lat | number | 25.1254 | |
radius | integer | 100000 | |
direction | asc | ||
order | default: _distance_ | distance | |
time | array | List of all possible time in current location |
Code sample
curl -X POST \
--url "https://api.stretch.com/api/v1/search/count" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN"\
-d '{
"page": 0,
"limit": 20,
"type": "coach",
"gender": "male",
"languages": [],
"price": ,
"days": [],
"services": [],
"addressId": "baa98c03-6e90-4c51-97d6-708790ac815e",
"lng": 55.1254,
"lat": 25.1254,
"radius": 100000,
"direction": "asc",
"order": "distance",
"time": []
}'
Search Coach Filter
GET https://api.stretch.com/api/v1/search/filter
Filters out the coach information using the search query made by the user.
Code sample