Bijgewerkt 22 april 2026
GET
/api/v1/locations/{slug}
curl -X GET \
"https://app.recruitsome.com/api/v1/locations/{slug}" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Accept: application/json"
const response = await fetch('https://app.recruitsome.com/api/v1/locations/{slug}', {
method: 'GET',
headers: {
'Authorization': 'Bearer YOUR_API_KEY',
'Accept': 'application/json',
},
});
const data = await response.json();
console.log(data);
use Illuminate\Support\Facades\Http;
$response = Http::withToken('YOUR_API_KEY')
->acceptJson()
->get('https://app.recruitsome.com/api/v1/locations/{slug}');
$data = $response->json();
Locatiegegevens ophalen
Haal volledige informatie op voor een specifieke locatie aan de hand van de slug.
Endpoint
GET /api/v1/locations/{slug}
Padparameters
| Parameter | Type | Verplicht | Beschrijving |
|---|---|---|---|
slug | string | Ja | URL-vriendelijke locatie-identifier |
Queryparameters
| Parameter | Type | Standaard | Beschrijving |
|---|---|---|---|
language | string | - | Stel de taalinstelling in voor landnamen in de response (2 tekens) |
include_coordinates | boolean | false | Coördinaten (latitude/longitude) meenemen |
include_vacancy_count | boolean | false | Aantal vacatures op deze locatie meenemen |
Response
Retourneert dezelfde velden als het lijstendpoint, maar dan voor één locatie.
Voorbeeldverzoek
curl -X GET "https://app.recruitsome.com/api/v1/locations/amsterdam-office-amsterdam-nl?include_coordinates=true&include_vacancy_count=true" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Accept: application/json"
Voorbeeldresponse
{
"data": {
"id": 1,
"slug": "amsterdam-office-amsterdam-nl",
"name": "Amsterdam Office",
"address": {
"address_line_1": "Keizersgracht 100",
"address_line_2": null,
"address_line_3": null,
"locality": "Amsterdam",
"administrative_area": "North Holland",
"postal_code": "1015 AA",
"country_code": "NL",
"country_name": "Netherlands"
},
"coordinates": {
"latitude": 52.3676,
"longitude": 4.9041
},
"vacancy_count": 5
}
}
Foutresponses
| Code | Beschrijving |
|---|---|
| 404 | Locatie niet gevonden |
| 401 | Niet geautoriseerd |