API Documentation - BROKEN SCREEN PRICES

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.

Base URL

https://api.ferrytelecom.de/price-api

Authentication

Every request must include the following query parameters:

Query Parameters

Below is the API references with examples

1. Fetch All Data

        
        https://api.ferrytelecom.de/price-api?search_type=all&username=your_username&password=your_password
    
PHP Example:

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);

2. Get Prices by brand

        
        https://api.ferrytelecom.de/price-api?search_type=brand&search_value=Samsung&username=your_username&password=your_password
    
PHP Example:

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);

3. Get Prices by Model

        
        https://api.ferrytelecom.de/price-api?search_type=model&search_value=iPhone%2015&username=your_username&password=your_password
    

PHP Example code:

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);

Response Format

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,
                }
            ]
        }
    

Error Responses

In case of an error, the API returns a JSON object like this:

        {
            "status": "error",
            "message": "Description of the error"
        }
    



Embed Our Booking form to anywhere

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