Welcome to the Broken Screen prices API documentation. This API allows you to search and retrieve data for broken screen process based on different criteria.
https://api.ferrytelecom.de/price-api
Every request must include the following query parameters:
username: Your API usernamepassword: Your API passwordsearch_type: Specify the type of search like all, by brand or by model. Possible values:
all: Retrieve all databrand: Search by brand name to get all models prices in this brand(Not case sensitive)model: Search by model name to get prices for a particular model(Not case sensitive)search_value: The value to search for. Required when search_type is brand or model.
https://api.ferrytelecom.de/price-api?search_type=all&username=your_username&password=your_password
Just need to update the username and passowrd
$search_type = "all"; // search by model
$search_value = " "; // can be blank or can use any sting as well
$username = "usename"; // update your user name
$password = "password"; // update your password
// Build the URL with encoded parameters
$api_url = "https://api.ferrytelecom.de/price-api?" .
"search_type=" . urlencode($search_type) .
"&search_value=" . urlencode($search_value) .
"&username=" . urlencode($username) .
"&password=" . urlencode($password);
// Initialize cURL
$ch = curl_init($api_url);
// Set cURL options
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); // Return response as a string
// Execute the request
$response = curl_exec($ch);
if ($response === false) {
// Handle cURL error
echo "Error: " . curl_error($ch);
} else {
// Decode the JSON response
$data = json_decode($response, true);
if ($data['status'] === 'success') {
foreach ($data['data'] as $row) {
echo htmlspecialchars($row['id']);
echo htmlspecialchars($row['lcd_model']);
echo htmlspecialchars($row['lcd_brand']);
echo htmlspecialchars($row['price_a']);
echo htmlspecialchars($row['price_b']);
echo htmlspecialchars($row['price_c']);
echo htmlspecialchars($row['price_d']).'
';
}
} else {
// Handle error returned by the API
echo htmlspecialchars($data['message']);
}
}
// Close the cURL session
curl_close($ch);
https://api.ferrytelecom.de/price-api?search_type=brand&search_value=Samsung&username=your_username&password=your_password
Just need to update the username, passowrd and brand name, Brand name is not case sensitive you can use upercase or lowercase
$search_type = "brand"; // search by brand
$search_value = "iPhone"; // brand name
$username = "usename"; // update your user name
$password = "password"; // update your password
// Build the URL with encoded parameters
$api_url = "https://api.ferrytelecom.de/price-api?" .
"search_type=" . urlencode($search_type) .
"&search_value=" . urlencode($search_value) .
"&username=" . urlencode($username) .
"&password=" . urlencode($password);
// Initialize cURL
$ch = curl_init($api_url);
// Set cURL options
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); // Return response as a string
// Execute the request
$response = curl_exec($ch);
if ($response === false) {
// Handle cURL error
echo "Error: " . curl_error($ch);
} else {
// Decode the JSON response
$data = json_decode($response, true);
if ($data['status'] === 'success') {
foreach ($data['data'] as $row) {
echo htmlspecialchars($row['id']);
echo htmlspecialchars($row['lcd_model']);
echo htmlspecialchars($row['lcd_brand']);
echo htmlspecialchars($row['price_a']);
echo htmlspecialchars($row['price_b']);
echo htmlspecialchars($row['price_c']);
echo htmlspecialchars($row['price_d']).'
';
}
} else {
// Handle error returned by the API
echo htmlspecialchars($data['message']);
}
}
// Close the cURL session
curl_close($ch);
https://api.ferrytelecom.de/price-api?search_type=model&search_value=iPhone%2015&username=your_username&password=your_password
Just need to update the username, passowrd and model name, model name is not case sensitive you can use upercase or lowercase
$search_type = "model"; // search by model
$search_value = "iPhone 11"; // model name
$username = "usename"; // update your user name
$password = "password"; // update your password
// Build the URL with encoded parameters
$api_url = "https://api.ferrytelecom.de/price-api?" .
"search_type=" . urlencode($search_type) .
"&search_value=" . urlencode($search_value) .
"&username=" . urlencode($username) .
"&password=" . urlencode($password);
// Initialize cURL
$ch = curl_init($api_url);
// Set cURL options
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); // Return response as a string
// Execute the request
$response = curl_exec($ch);
if ($response === false) {
// Handle cURL error
echo "Error: " . curl_error($ch);
} else {
// Decode the JSON response
$data = json_decode($response, true);
if ($data['status'] === 'success') {
foreach ($data['data'] as $row) {
echo htmlspecialchars($row['id']);
echo htmlspecialchars($row['lcd_model']);
echo htmlspecialchars($row['lcd_brand']);
echo htmlspecialchars($row['price_a']);
echo htmlspecialchars($row['price_b']);
echo htmlspecialchars($row['price_c']);
echo htmlspecialchars($row['price_d']).'
';
}
} else {
// Handle error returned by the API
echo htmlspecialchars($data['message']);
}
}
// Close the cURL session
curl_close($ch);
The API returns a JSON object with the following structure:
{
"status": "success",
"data": [
{
"id": 1,
"lcd_model": "iPhone 15",
"lcd_brand": "iphone",
"brand_id": 1,
"price_a": 80,
"price_b": 40,
"price_c": 20,
"price_d": 10,
}
]
}
In case of an error, the API returns a JSON object like this:
{
"status": "error",
"message": "Description of the error"
}
PHP example below
// Embed the form to your website using PHP file_get_contents()
echo file_get_contents('https://api.ferrytelecom.de/appointment');
iframe example below
Here is how you can embed the form:
<iframe src="https://api.ferrytelecom.de/appointment"
style="width: 100%; height: 600px; border: none;">
</iframe>
If you have any question regarding this documantation,please email us info@api.ferrytelecom.de