token: {your-api-key}POST/api/v1/dive_centerapplication/json or application/x-www-form-urlencoded| Parameter | Type | Required | Description |
|---|---|---|---|
search | string | No | Free text - searches across: name, city, email, raid_id |
country | string | No | ISO 3166-1 alpha-2 country code (e.g. IT, ES) |
Both parameters are optional. If neither is provided, all active dive centers are returned.
200 OK - Results found{
"data": [
{
"raid_id": "RAID-DC-00123",
"name": "Blue Ocean Dive Center",
"email": "info@blueocean.com",
"country": "Italy",
"city": "Palermo",
"mobile": "+39 091 1234567",
"manager": "Luca Marino",
"distributor": "RAID Italy",
"logo": "https://s3.amazonaws.com/diveraid/logos/7.jpg",
"collaborators": {
"Marco Rossi": "Open Water Instructor",
"Sara Neri": "Rescue Instructor"
},
"socials": {
"facebook": "https://facebook.com/blueocean",
"instagram": "https://instagram.com/blueocean",
"website": "https://www.blueocean.com"
},
"expire_date": "15/06/2025"
}
],
"success": true,
"message": "success",
"total": 1
}200 OK - No results{
"data": [],
"success": true,
"message": "no results",
"total": 0
}data[] fields| Field | Type | Description |
|---|---|---|
raid_id | string | Dive center's unique RAID identifier |
name | string | Dive center name |
email | string|null | Contact email |
country | string | Full country name (e.g. "Italy") |
city | string|null | City |
mobile | string|null | Phone number |
manager | string | Name of the dive center manager |
distributor | string | RAID distributor name |
logo | string|null | Logo URL |
collaborators | object | Map {name: qualification} of collaborating instructors |
socials | object | Map {platform: url} of social media profiles (e.g. facebook, instagram, website) |
expire_date | string | RAID membership expiry date (locale format, e.g. 15/06/2025) |
401 - Missing or invalid API Key{
"error": "Access Denied!",
"message": "No API Key provided.",
"statusCode": 401
}status = true - active dive centers onlyexpire_date >= now() - 1 year - excludes dive centers expired more than one year ago{}{ "search": "Blue Ocean" }{ "country": "IT" }{ "search": "diving", "country": "ES" }LIKE %search%.name ASC.collaborators is an object (not an array) - keys are instructor names.socials is an object - keys are the configured social platform names.country field in the response is the full country name, not the ISO code.docs/api/search/POST_dive_center.mdcurl --location --request POST 'https://test.diveraid.com/api/v1/dive_center?search=&country=' \
--header 'token: <api-key>'{
"success": true,
"message": "string",
"total": 0,
"data": [
{
"raid_id": "string",
"name": "string",
"email": "string",
"country": "string",
"city": "string",
"mobile": "string",
"manager": "string",
"distributor": "string",
"logo": "string",
"collaborators": {
"property1": "string",
"property2": "string"
},
"socials": {
"property1": "string",
"property2": "string"
},
"expire_date": "2019-08-24"
}
]
}