New12,480+ smartphones indexed — free sandbox tier on every plan.Edge-cached JSON responses, typically under 100ms.SDKs for C#, TypeScript and Python, plus an MCP server for AI agents.New12,480+ smartphones indexed — free sandbox tier on every plan.Edge-cached JSON responses, typically under 100ms.SDKs for C#, TypeScript and Python, plus an MCP server for AI agents.
Get Free API Key
Specs comparison

Google Pixel 4 XL vs Sony Xperia 5

On the 4 metrics where both phones differ and a direction is meaningful, the two devices split evenly. Every value comes from the Device Specs API; the requests that return both payloads are at the bottom of the page.

Google Pixel 4 XL

Google Pixel 4 XL

2019 · Qualcomm SM8150 Snapdragon 855
VS
Sony Xperia 5

Sony Xperia 5

2019 · Qualcomm SM8150 Snapdragon 855
SpecificationGoogle Pixel 4 XLSony Xperia 5
Release
Announced2019, October 152019, September 05. Released 2019, October 05
StatusAvailable. Released 2019, October 22Discontinued
Display
Size6.3 in6.1 in
PanelP-OLEDOLED
Refresh rate90 Hz—
ResolutionP-OLED, 90Hz, HDROLED, HDR BT.2020
ProtectionCorning Gorilla Glass 5Corning Gorilla Glass 6
Platform
ChipsetQualcomm SM8150 Snapdragon 855Qualcomm SM8150 Snapdragon 855
CPUOcta-core (1x2.84 GHz Kryo 485 & 3x2.42 GHz Kryo 485 & 4x1.78 GHz Kryo 485)Octa-core (1x2.84 GHz Kryo 485 & 3x2.42 GHz Kryo 485 & 4x1.78 GHz Kryo 485)
Cores88
Max clock2.84 GHz2.84 GHz
GPUAdreno 640Adreno 640
OSAndroid 10, upgradable to Android 13Android 9.0 (Pie), upgradable to Android 11
AnTuTu323305 (v7)334809 (v7)
Geekbench10171 (v4.4)10941 (v4.4)
Memory
RAM options6 GB6 GB
Storage options64 GB / 128 GB128 GB
Storage techUFS 2.1UFS 2.1
microSD slotNoYes
Battery
Capacity3700 mAh3140 mAh
Wired charging18 W18 W
Wireless chargingYesNo
Cameras
Rear lenses23
Main resolution16 MP12 MP
Rear camera12.2 MP, f/1.7, 27mm (wide), 1/2.55", 1.4µm, dual pixel PDAF, OIS, 16 MP, f/2.4, 50mm (telephoto), 1/3.6", 1.0µm, PDAF, OIS, 2x optical zoom12 MP, f/1.6, 26mm (wide), 1/2.55", 1.4µm, predictive dual pixel PDAF, 5-axis OIS, 12 MP, f/2.4, 52mm (telephoto), 1/3.4", 1.0µm, predictive PDAF, 2x optical zoom, 5-axis OIS, 12 MP, f/2.4, 16mm (ultrawide), 1/3.4", 1.0µm
Rear video4K@30fps, 1080p@30/60/120fps, 1080p@30fps (gyro-EIS)4K@24/30fps HDR, 1080p@60fps, 1080p@30fps (5-axis gyro-EIS)
Front camera8 MP, f/2.0, 22mm (wide), 1.22µm, no AF, TOF 3D, (depth/biometrics sensor)8 MP, f/2.0, 24mm (wide), 1/4.0", 1.12µm
Body
Weight193 g164 g
Thickness8.2 mm8.2 mm
Height160.4 mm158 mm
Width75.1 mm68 mm
IP ratingIP68IP65
MaterialsGlass front (Gorilla Glass 5), glass back (Gorilla Glass 5), aluminum frameGlass front (Gorilla Glass 6), glass back (Gorilla Glass 6), aluminum frame
SIMNano-SIM, eSIMNano-SIM
Sound and connectivity
Stereo speakersYesYes
3.5 mm jackNoNo
NFCYesYes
Bluetooth55
Wi-FiWi-Fi 802.11 a/b/g/n/ac, dual-band, Wi-Fi Direct, DLNAWi-Fi 802.11 a/b/g/n/ac, dual-band, Wi-Fi Direct, DLNA
USBUSB Type-C 3.1USB Type-C 3.1
InfraredNoNo

Google Pixel 4 XL JSON

GET/api/values/clean/getspecs/Google/Pixel%204%20XL
cURL
curl 'https://gsmarenaparser.p.rapidapi.com/api/values/clean/getspecs/Google/Pixel%204%20XL' \
-H 'x-rapidapi-key: YOUR_RAPIDAPI_KEY' \
-H 'x-rapidapi-host: gsmarenaparser.p.rapidapi.com'
SDK equivalents (Python, TypeScript, C#)
Python
from devicespecs import DeviceSpecsClient
client = DeviceSpecsClient("YOUR_RAPIDAPI_KEY")
device = client.get_specs("Google", "Pixel 4 XL")
print(device["normalized_specs"]["display"])
TypeScript
import { DeviceSpecsClient } from "@granturismo/devicespecs";
const client = new DeviceSpecsClient("YOUR_RAPIDAPI_KEY");
const device = await client.getSpecs("Google", "Pixel 4 XL");
console.log(device?.normalized_specs?.display);
C#
using var client = new DeviceSpecsClient("YOUR_RAPIDAPI_KEY");
var device = await client.GetSpecsAsync("Google", "Pixel 4 XL");
Console.WriteLine(device?.NormalizedSpecs?.Display?.SizeInches);
Get a free API key
Show raw response
{
  "id": 452216,
  "manufacturer": "Google",
  "model": "Pixel 4 XL",
  "network": "GSM / CDMA / HSPA / EVDO / LTE",
  "announceDate": "2019, October 15",
  "status": "Available. Released 2019, October 22",
  "chipset": "Qualcomm SM8150 Snapdragon 855",
  "androidVersion": "Android 10, upgradable to Android 13",
  "battery_raw": "Li-Po 3700 mAh, non-removable",
  "cpu_raw": "Octa-core (1x2.84 GHz Kryo 485 & 3x2.42 GHz Kryo 485 & 4x1.78 GHz Kryo 485)",
  "displayResolution_raw": "P-OLED, 90Hz, HDR",
  "displaySize_raw": "6.3 inches, 98.0 cm<sup>2</sup> (~81.3% screen-to-body ratio)",
  "displayType_raw": "P-OLED, 90Hz, HDR",
  "gpu": "Adreno 640",
  "internal_raw": "64GB 6GB RAM, 128GB 6GB RAM",
  "mainCameraFeatures": "Dual-LED flash, Pixel Shift, Auto-HDR, panorama",
  "mainCameraSpecs_raw": "12.2 MP, f/1.7, 27mm (wide), 1/2.55\", 1.4µm, dual pixel PDAF, OIS<br>\n16 MP, f/2.4, 50mm (telephoto), 1/3.6\", 1.0µm, PDAF, OIS, 2x optical zoom",
  "mainVideoSpecs": "4K@30fps, 1080p@30/60/120fps, 1080p@30fps (gyro-EIS)",
  "selfieCameraFeatures": "HDR",
  "selfieCameraSpecs_raw": "8 MP, f/2.0, 22mm (wide), 1.22µm, no AF<br>\nTOF 3D, (depth/biometrics sensor)",
  "selfieVideoSpecs": "1080p@30fps",
  "sensors": "",
  "charging_raw": "18W wired, PD2.0\nWireless",
  "price_usd": 0,
  "price_eur": 0,
  "price_gbp": 0,
  "imageUrl": "https://fdn2.gsmarena.com/vv/bigpic/google-pixel-4-r1.jpg",
  "colors": [
    "Clearly White",
    "Just Black",
    "Oh So Orange"
  ],
  "variants": [
    {
      "id": 506085,
      "model_number": "G020P"
    },
    {
      "id": 506086,
      "model_number": "G020"
    },
    {
      "id": 506087,
      "model_number": "GA01181-US"
    },
    {
      "id": 506088,
      "model_number": "GA01182-US"
    },
    {
      "id": 506089,
      "model_number": "GA01180-US"
    }
  ],
  "normalized_specs": {
    "id": 452221,
    "display": {
      "id": 452221,
      "size_inches": 6.3,
      "panel_type": "P-OLED",
      "refresh_rate_hz": 90,
      "peak_brightness_nits": 0,
      "protection_type": "Corning Gorilla Glass 5"
    },
    "processor": {
      "id": 452221,
      "total_cores": 8,
      "max_clock_speed_ghz": 2.84
    },
    "memory_options": {
      "id": 452221,
      "available_ram_gb": [
        6
      ],
      "available_storage_gb": [
        64,
        128
      ],
      "has_card_slot": false,
      "storage_technology": "UFS 2.1"
    },
    "battery_and_charging": {
      "id": 452221,
      "capacities_mah": [
        3700
      ],
      "max_wired_charging_w": 18,
      "has_wireless_charging": true
    },
    "cameras": {
      "id": 452221,
      "main_lenses_count": 2,
      "max_main_resolution_mp": 16,
      "selfie_lenses_count": 1
    },
    "physical": {
      "id": 452221,
      "height_mm": 160.4,
      "width_mm": 75.1,
      "thickness_mm": 8.2,
      "weight_g": 193,
      "build_materials": [
        "Glass front (Gorilla Glass 5)",
        "glass back (Gorilla Glass 5)",
        "aluminum frame"
      ],
      "sim_options": [
        "Nano-SIM",
        "eSIM"
      ],
      "ip_rating": "IP68",
      "is_water_resistant": true
    },
    "sound": {
      "id": 452221,
      "has_stereo_speakers": true,
      "has_jack_35mm": false,
      "audio_quality_features": []
    },
    "connectivity": {
      "id": 452221,
      "wlan_features": [
        "Wi-Fi 802.11 a/b/g/n/ac",
        "dual-band",
        "Wi-Fi Direct",
        "DLNA"
      ],
      "bluetooth_version": 5,
      "bluetooth_features": [
        "A2DP",
        "LE",
        "aptX HD"
      ],
      "positioning_tech": [
        "GPS",
        "GLONASS",
        "BDS",
        "GALILEO"
      ],
      "has_nfc": true,
      "has_infrared": false,
      "has_radio": false,
      "usb_type": "USB Type-C 3.1",
      "usb_has_otg": false
    },
    "benchmarks": {
      "id": 452221,
      "antutu_score": "323305 (v7)",
      "geekbench_score": "10171 (v4.4)",
      "measured_display_brightness_nits": 0,
      "measured_loudspeaker_lufs": 0,
      "measured_battery_active_use_hours": 0
    },
    "eu_label": {
      "id": 452221,
      "energy_class": "",
      "battery_endurance": "",
      "battery_endurance_hours": 0,
      "free_fall_class": "",
      "repairability_class": ""
    }
  }
}

Sony Xperia 5 JSON

GET/api/values/clean/getspecs/Sony/Xperia%205
cURL
curl 'https://gsmarenaparser.p.rapidapi.com/api/values/clean/getspecs/Sony/Xperia%205' \
-H 'x-rapidapi-key: YOUR_RAPIDAPI_KEY' \
-H 'x-rapidapi-host: gsmarenaparser.p.rapidapi.com'
SDK equivalents (Python, TypeScript, C#)
Python
from devicespecs import DeviceSpecsClient
client = DeviceSpecsClient("YOUR_RAPIDAPI_KEY")
device = client.get_specs("Sony", "Xperia 5")
print(device["normalized_specs"]["display"])
TypeScript
import { DeviceSpecsClient } from "@granturismo/devicespecs";
const client = new DeviceSpecsClient("YOUR_RAPIDAPI_KEY");
const device = await client.getSpecs("Sony", "Xperia 5");
console.log(device?.normalized_specs?.display);
C#
using var client = new DeviceSpecsClient("YOUR_RAPIDAPI_KEY");
var device = await client.GetSpecsAsync("Sony", "Xperia 5");
Console.WriteLine(device?.NormalizedSpecs?.Display?.SizeInches);
Get a free API key
Show raw response
{
  "id": 457270,
  "manufacturer": "Sony",
  "model": "Xperia 5",
  "network": "GSM / HSPA / LTE",
  "announceDate": "2019, September 05. Released 2019, October 05",
  "status": "Discontinued",
  "chipset": "Qualcomm SM8150 Snapdragon 855",
  "androidVersion": "Android 9.0 (Pie), upgradable to Android 11",
  "battery_raw": "Li-Ion 3140 mAh, non-removable",
  "cpu_raw": "Octa-core (1x2.84 GHz Kryo 485 &amp; 3x2.42 GHz Kryo 485 &amp; 4x1.78 GHz Kryo 485)",
  "displayResolution_raw": "OLED, HDR BT.2020",
  "displaySize_raw": "6.1 inches, 86.9 cm<sup>2</sup> (~80.9% screen-to-body ratio)",
  "displayType_raw": "OLED, HDR BT.2020",
  "gpu": "Adreno 640",
  "internal_raw": "128GB 6GB RAM",
  "mainCameraFeatures": "Color spectrum sensor, LED flash, panorama, HDR, eye tracking",
  "mainCameraSpecs_raw": "12 MP, f/1.6, 26mm (wide), 1/2.55\", 1.4µm, predictive dual pixel PDAF, 5-axis OIS<br>\n12 MP, f/2.4, 52mm (telephoto), 1/3.4\", 1.0µm, predictive PDAF, 2x optical zoom, 5-axis OIS<br>\n12 MP, f/2.4, 16mm (ultrawide), 1/3.4\", 1.0µm",
  "mainVideoSpecs": "4K@24/30fps HDR, 1080p@60fps, 1080p@30fps (5-axis gyro-EIS)",
  "selfieCameraFeatures": "HDR",
  "selfieCameraSpecs_raw": "8 MP, f/2.0, 24mm (wide), 1/4.0\", 1.12µm",
  "selfieVideoSpecs": "1080p@30fps (5-axis gyro-EIS)",
  "sensors": "",
  "charging_raw": "18W wired, PD2.0",
  "price_usd": 0,
  "price_eur": 0,
  "price_gbp": 0,
  "imageUrl": "https://fdn2.gsmarena.com/vv/bigpic/sony-xperia-5-.jpg",
  "colors": [
    "Blue",
    "Red",
    "Black",
    "Grey"
  ],
  "variants": [
    {
      "id": 511288,
      "model_number": "J8210"
    },
    {
      "id": 511289,
      "model_number": "J8270"
    },
    {
      "id": 511290,
      "model_number": "J9210"
    },
    {
      "id": 511291,
      "model_number": "SOV41"
    },
    {
      "id": 511292,
      "model_number": "SO-01M"
    }
  ],
  "normalized_specs": {
    "id": 457275,
    "display": {
      "id": 457275,
      "size_inches": 6.1,
      "panel_type": "OLED",
      "refresh_rate_hz": 0,
      "peak_brightness_nits": 0,
      "protection_type": "Corning Gorilla Glass 6"
    },
    "processor": {
      "id": 457275,
      "total_cores": 8,
      "max_clock_speed_ghz": 2.84
    },
    "memory_options": {
      "id": 457275,
      "available_ram_gb": [
        6
      ],
      "available_storage_gb": [
        128
      ],
      "has_card_slot": true,
      "storage_technology": "UFS 2.1"
    },
    "battery_and_charging": {
      "id": 457275,
      "capacities_mah": [
        3140
      ],
      "max_wired_charging_w": 18,
      "has_wireless_charging": false
    },
    "cameras": {
      "id": 457275,
      "main_lenses_count": 3,
      "max_main_resolution_mp": 12,
      "selfie_lenses_count": 1
    },
    "physical": {
      "id": 457275,
      "height_mm": 158,
      "width_mm": 68,
      "thickness_mm": 8.2,
      "weight_g": 164,
      "build_materials": [
        "Glass front (Gorilla Glass 6)",
        "glass back (Gorilla Glass 6)",
        "aluminum frame"
      ],
      "sim_options": [
        "Nano-SIM"
      ],
      "ip_rating": "IP65",
      "is_water_resistant": true
    },
    "sound": {
      "id": 457275,
      "has_stereo_speakers": true,
      "has_jack_35mm": false,
      "audio_quality_features": [
        "Hi-Res audio  Dynamic vibration system"
      ]
    },
    "connectivity": {
      "id": 457275,
      "wlan_features": [
        "Wi-Fi 802.11 a/b/g/n/ac",
        "dual-band",
        "Wi-Fi Direct",
        "DLNA"
      ],
      "bluetooth_version": 5,
      "bluetooth_features": [
        "A2DP",
        "aptX HD",
        "LE"
      ],
      "positioning_tech": [
        "GPS",
        "GLONASS",
        "BDS",
        "GALILEO"
      ],
      "has_nfc": true,
      "has_infrared": false,
      "has_radio": false,
      "usb_type": "USB Type-C 3.1",
      "usb_has_otg": true
    },
    "benchmarks": {
      "id": 457275,
      "antutu_score": "334809 (v7)",
      "geekbench_score": "10941 (v4.4)",
      "measured_display_brightness_nits": 630,
      "measured_loudspeaker_lufs": -27.1,
      "measured_battery_active_use_hours": 0
    },
    "eu_label": {
      "id": 457275,
      "energy_class": "",
      "battery_endurance": "",
      "battery_endurance_hours": 0,
      "free_fall_class": "",
      "repairability_class": ""
    }
  }
}

More comparisons