Attributes
Get All Attributes
- cURL
- JavaScript (Fetch)
- PHP (cURL)
curl "https://www.filmmakers.eu/api/v1/attributes/" \
-H "Authorization: Token token=API_KEY"
fetch('https://www.filmmakers.eu/api/v1/attributes/', {
method: 'GET',
headers: {
'Authorization': 'Token token=API_KEY',
'Content-Type': 'application/json'
}
})
.then(response => response.json())
.then(data => console.log(data))
.catch(error => console.error('Error:', error));
<?php
$url = 'https://www.filmmakers.eu/api/v1/attributes/';
$apiKey = 'API_KEY'; // Replace with your actual API key
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, [
'Authorization: Token token=' . $apiKey,
]);
$response = curl_exec($ch);
if (curl_errno($ch)) {
echo 'cURL Error: ' . curl_error($ch);
} else {
echo $response;
// For further processing, you might want to decode the JSON:
// $data = json_decode($response, true);
// var_dump($data);
}
curl_close($ch);
?>
Example Response
[
"accent_skill",
"accents",
"dances",
"dialect_skill",
"dialects",
"drivers_licenses",
...
]
This endpoint retrieves all possible profile attributes that are closed lists, such as languages or nationalities, as well as attributes for credits (vita entries).
For countries, ISO 3166-1 alpha-2 codes are used (see here). For federal states (states/subdivisions), ISO 3166-2 codes are used, e.g., for Germany: https://en.wikipedia.org/wiki/ISO_3166-2:DE. Since the ISO lists are standardized (and extensive), they are not present in this endpoint for the time being.
Get Key/Value Pairs for Attributes
- cURL
- JavaScript (Fetch)
- PHP (cURL)
curl "https://www.filmmakers.eu/api/v1/attributes/xxx" \
-H "Authorization: Token token=API_KEY"
// Replace 'xxx' with the specific attribute key, e.g., 'nationalities'
fetch('https://www.filmmakers.eu/api/v1/attributes/xxx', {
method: 'GET',
headers: {
'Authorization': 'Token token=API_KEY',
'Content-Type': 'application/json'
}
})
.then(response => response.json())
.then(data => console.log(data))
.catch(error => console.error('Error:', error));
<?php
// Replace 'xxx' with the specific attribute key, e.g., 'nationalities'
$attributeKey = 'xxx';
$url = 'https://www.filmmakers.eu/api/v1/attributes/' . $attributeKey;
$apiKey = 'API_KEY'; // Replace with your actual API key
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, [
'Authorization: Token token=' . $apiKey,
]);
$response = curl_exec($ch);
if (curl_errno($ch)) {
echo 'cURL Error: ' . curl_error($ch);
} else {
echo $response;
// For further processing, you might want to decode the JSON:
// $data = json_decode($response, true);
// var_dump($data);
}
curl_close($ch);
?>
Example Response
{
"AD": "Andorran",
"AE": "United Arab Emirates",
"AF": "Afghan",
"AG": "Antigua and Barbuda",
"AL": "Albanian",
"AM": "Armenian",
"AO": "Angolan",
"AR": "Argentinean",
"AT": "Austrian",
"AU": "Australian",
...
}
This endpoint retrieves all possible key/value pairs for one of the attributes. Pass one of the supported locales (see above) as a parameter to retrieve localized values.