Get Phone Info
curl --request GET \
--url https://api.example.com/v1/phones/{phone_id}/infoimport requests
url = "https://api.example.com/v1/phones/{phone_id}/info"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.example.com/v1/phones/{phone_id}/info', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.example.com/v1/phones/{phone_id}/info",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/v1/phones/{phone_id}/info"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.example.com/v1/phones/{phone_id}/info")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/v1/phones/{phone_id}/info")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_bodyDevices
Get Phone Info
Get detailed information about a phone
GET
/
v1
/
phones
/
{phone_id}
/
info
Get Phone Info
curl --request GET \
--url https://api.example.com/v1/phones/{phone_id}/infoimport requests
url = "https://api.example.com/v1/phones/{phone_id}/info"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.example.com/v1/phones/{phone_id}/info', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.example.com/v1/phones/{phone_id}/info",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/v1/phones/{phone_id}/info"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.example.com/v1/phones/{phone_id}/info")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/v1/phones/{phone_id}/info")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_bodyGet detailed information about a specific phone, including screen dimensions.
HTTP Status:
Request
curl https://api.tapkit.ai/v1/phones/{phone_id}/info \
-H "X-API-Key: joot_your_api_key"
Path Parameters
| Parameter | Type | Description |
|---|---|---|
phone_id | string | The phone identifier |
Response
{
"width": 1170,
"height": 2532,
"name": "iPhone 15 Pro",
"unique_id": "00008030-001A2B3C4D5E6F"
}
Response Fields
| Field | Type | Description |
|---|---|---|
width | integer | Screen width in pixels |
height | integer | Screen height in pixels |
name | string | Device display name |
unique_id | string | Hardware identifier |
Common Screen Dimensions
| Device | Width | Height |
|---|---|---|
| iPhone 15 Pro Max | 1290 | 2796 |
| iPhone 15 Pro | 1179 | 2556 |
| iPhone 15 | 1179 | 2556 |
| iPhone 14 Pro Max | 1290 | 2796 |
| iPhone 14 Pro | 1179 | 2556 |
| iPhone SE (3rd gen) | 750 | 1334 |
Example
import requests
phone_id = "abc123-def456"
response = requests.get(
f"https://api.tapkit.ai/v1/phones/{phone_id}/info",
headers={"X-API-Key": "joot_..."}
)
info = response.json()
print(f"Screen: {info['width']}x{info['height']}")
Errors
Phone Not Found
{
"error": "PHONE_NOT_FOUND",
"message": "No phone found with ID: abc123"
}
404 Not Found⌘I