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 Microsoft Surface Duo

Google Pixel 4 XL leads on 4 of the 6 metrics where the two devices differ and a direction is meaningful (higher refresh rate, more RAM, bigger battery, lighter body, and so on). 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
Microsoft Surface Duo

Microsoft Surface Duo

2020 · Qualcomm SM8150 Snapdragon 855
SpecificationGoogle Pixel 4 XLMicrosoft Surface Duo
Release
Announced2019, October 152020, August 12. Released 2020, September 10
StatusAvailable. Released 2019, October 22Discontinued
Display
Size6.3 in8.1 in
PanelP-OLEDAMOLED
Refresh rate90 Hz—
ResolutionP-OLED, 90Hz, HDRAMOLED
ProtectionCorning Gorilla Glass 5Corning Gorilla Glass 5
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 10, upgradable to Android 12
AnTuTu323305 (v7)—
Geekbench10171 (v4.4)—
Memory
RAM options6 GB6 GB
Storage options64 GB / 128 GB128 GB / 256 GB
Storage techUFS 2.1UFS 3.0
microSD slotNoNo
Battery
Capacity3700 mAh3577 mAh
Wired charging18 W18 W
Wireless chargingYesNo
Cameras
Rear lenses21
Main resolution16 MP11 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 zoom11 MP, f/2.0, 23mm (wide), 1.0µm, PDAF
Rear video4K@30fps, 1080p@30/60/120fps, 1080p@30fps (gyro-EIS)4K@30/60fps, 1080p@30/60/120/240fps, gyro-EIS, HDR
Front camera8 MP, f/2.0, 22mm (wide), 1.22µm, no AF, TOF 3D, (depth/biometrics sensor)Uses main camera
Body
Weight193 g250 g
Thickness8.2 mm4.8 mm
Height160.4 mm186.9 mm
Width75.1 mm145.2 mm
IP ratingIP68—
MaterialsGlass front (Gorilla Glass 5), glass back (Gorilla Glass 5), aluminum frameGlass front (Gorilla Glass 5), glass back (Gorilla Glass 5)
SIMNano-SIM, eSIMNano-SIM, eSIM
Sound and connectivity
Stereo speakersYesNo
3.5 mm jackNoNo
NFCYesNo
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
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": ""
    }
  }
}

Microsoft Surface Duo JSON

GET/api/values/clean/getspecs/Microsoft/Surface%20Duo
cURL
curl 'https://gsmarenaparser.p.rapidapi.com/api/values/clean/getspecs/Microsoft/Surface%20Duo' \
-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("Microsoft", "Surface Duo")
print(device["normalized_specs"]["display"])
TypeScript
import { DeviceSpecsClient } from "@granturismo/devicespecs";
const client = new DeviceSpecsClient("YOUR_RAPIDAPI_KEY");
const device = await client.getSpecs("Microsoft", "Surface Duo");
console.log(device?.normalized_specs?.display);
C#
using var client = new DeviceSpecsClient("YOUR_RAPIDAPI_KEY");
var device = await client.GetSpecsAsync("Microsoft", "Surface Duo");
Console.WriteLine(device?.NormalizedSpecs?.Display?.SizeInches);
Get a free API key
Show raw response
{
  "id": 456800,
  "manufacturer": "Microsoft",
  "model": "Surface Duo",
  "network": "GSM / HSPA / LTE",
  "announceDate": "2020, August 12. Released 2020, September 10",
  "status": "Discontinued",
  "chipset": "Qualcomm SM8150 Snapdragon 855",
  "androidVersion": "Android 10, upgradable to Android 12",
  "battery_raw": "Li-Po 3577 mAh",
  "cpu_raw": "Octa-core (1x2.84 GHz Kryo 485 &amp; 3x2.42 GHz Kryo 485 &amp; 4x1.78 GHz Kryo 485)",
  "displayResolution_raw": "AMOLED",
  "displaySize_raw": "8.1 inches, 195.4 cm<sup>2</sup> (~144.2% screen-to-body ratio)",
  "displayType_raw": "AMOLED",
  "gpu": "Adreno 640",
  "internal_raw": "128GB 6GB RAM, 256GB 6GB RAM",
  "mainCameraFeatures": "HDR, panorama",
  "mainCameraSpecs_raw": "11 MP, f/2.0, 23mm (wide), 1.0µm, PDAF",
  "mainVideoSpecs": "4K@30/60fps, 1080p@30/60/120/240fps, gyro-EIS, HDR",
  "selfieCameraFeatures": "HDR, panorama",
  "selfieCameraSpecs_raw": "Uses main camera",
  "selfieVideoSpecs": "4K@30/60fps, 1080p@30/60fps, gyro-EIS, HDR",
  "sensors": "",
  "charging_raw": "18W wired",
  "price_usd": 0,
  "price_eur": 0,
  "price_gbp": 0,
  "imageUrl": "https://fdn2.gsmarena.com/vv/bigpic/microsoft-surface-duo.jpg",
  "colors": [
    "White"
  ],
  "variants": [],
  "normalized_specs": {
    "id": 456805,
    "display": {
      "id": 456805,
      "size_inches": 8.1,
      "panel_type": "AMOLED",
      "refresh_rate_hz": 0,
      "peak_brightness_nits": 0,
      "protection_type": "Corning Gorilla Glass 5"
    },
    "processor": {
      "id": 456805,
      "total_cores": 8,
      "max_clock_speed_ghz": 2.84
    },
    "memory_options": {
      "id": 456805,
      "available_ram_gb": [
        6
      ],
      "available_storage_gb": [
        128,
        256
      ],
      "has_card_slot": false,
      "storage_technology": "UFS 3.0"
    },
    "battery_and_charging": {
      "id": 456805,
      "capacities_mah": [
        3577
      ],
      "max_wired_charging_w": 18,
      "has_wireless_charging": false
    },
    "cameras": {
      "id": 456805,
      "main_lenses_count": 1,
      "max_main_resolution_mp": 11,
      "selfie_lenses_count": 0
    },
    "physical": {
      "id": 456805,
      "height_mm": 186.9,
      "width_mm": 145.2,
      "thickness_mm": 4.8,
      "weight_g": 250,
      "build_materials": [
        "Glass front (Gorilla Glass 5)",
        "glass back (Gorilla Glass 5)"
      ],
      "sim_options": [
        "Nano-SIM",
        "eSIM"
      ],
      "ip_rating": "",
      "is_water_resistant": false
    },
    "sound": {
      "id": 456805,
      "has_stereo_speakers": false,
      "has_jack_35mm": false,
      "audio_quality_features": []
    },
    "connectivity": {
      "id": 456805,
      "wlan_features": [
        "Wi-Fi 802.11 a/b/g/n/ac",
        "dual-band",
        "Wi-Fi Direct"
      ],
      "bluetooth_version": 5,
      "bluetooth_features": [
        "A2DP",
        "LE",
        "aptX Adaptive"
      ],
      "positioning_tech": [
        "GPS"
      ],
      "has_nfc": false,
      "has_infrared": false,
      "has_radio": false,
      "usb_type": "USB Type-C 3.1",
      "usb_has_otg": false
    },
    "benchmarks": {
      "id": 456805,
      "antutu_score": "",
      "geekbench_score": "",
      "measured_display_brightness_nits": 0,
      "measured_loudspeaker_lufs": 0,
      "measured_battery_active_use_hours": 0
    },
    "eu_label": {
      "id": 456805,
      "energy_class": "",
      "battery_endurance": "",
      "battery_endurance_hours": 0,
      "free_fall_class": "",
      "repairability_class": ""
    }
  }
}

More comparisons