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 vs Xiaomi Black Shark 2

Xiaomi Black Shark 2 leads on 5 of the 7 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

Google Pixel 4

2019 · Qualcomm SM8150 Snapdragon 855
VS
Xiaomi Black Shark 2

Xiaomi Black Shark 2

2019 · Qualcomm SM8150 Snapdragon 855
SpecificationGoogle Pixel 4Xiaomi Black Shark 2
Release
Announced2019, October 152019, March. Released 2019, March
StatusAvailable. Released 2019, October 22Discontinued
Display
Size5.7 in6.39 in
PanelP-OLEDAMOLED
Refresh rate90 Hz—
ResolutionP-OLED, 90Hz, HDRAMOLED
ProtectionCorning 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 9.0 (Pie), upgradable to Android 10, JoyUI 11
AnTuTu395351 (v8) GeekBench: 2542 (v5.1) GFXBench: 31fps (ES 3.1 onscreen)343460 (v7) GeekBench: 11192 (v4.4) GFXBench: 36fps (ES 3.1 onscreen)
Geekbench2542 (v5.1) GFXBench: 31fps (ES 3.1 onscreen)11192 (v4.4) GFXBench: 36fps (ES 3.1 onscreen)
Memory
RAM options6 GB6 GB / 8 GB / 12 GB
Storage options64 GB / 128 GB128 GB / 256 GB
Storage techUFS 2.1UFS 2.1
microSD slotNoNo
Battery
Capacity2800 mAh4000 mAh
Wired charging18 W27 W
Wireless chargingYesNo
Cameras
Rear lenses22
Main resolution16 MP48 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 zoom48 MP, f/1.8, 28mm (wide), 1/2.0", 0.8µm, PDAF, 12 MP, f/2.2, 54mm (telephoto), 1.0µm, PDAF, 2x optical zoom
Rear video4K@30fps, 1080p@30/60/120fps, 1080p@30fps (gyro-EIS)4K@30/60fps, 1080p@30fps, 720p@120fps
Front camera8 MP, f/2.0, 22mm (wide), 1.22µm, no AF, TOF 3D, (depth/biometrics sensor)20 MP, f/2.0, (wide), 1/3", 0.9µm
Body
Weight162 g205 g
Thickness8.2 mm8.8 mm
Height147.1 mm163.6 mm
Width68.8 mm75 mm
IP ratingIP68—
MaterialsGlass front (Gorilla Glass 5), glass back (Gorilla Glass 5), aluminum frameGlass front, aluminum back, aluminum frame
SIMNano-SIM, eSIMNano-SIM
Sound and connectivity
Stereo speakersYesYes
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 2.0
InfraredNoNo

Google Pixel 4 JSON

GET/api/values/clean/getspecs/Google/Pixel%204
cURL
curl 'https://gsmarenaparser.p.rapidapi.com/api/values/clean/getspecs/Google/Pixel%204' \
-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")
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");
console.log(device?.normalized_specs?.display);
C#
using var client = new DeviceSpecsClient("YOUR_RAPIDAPI_KEY");
var device = await client.GetSpecsAsync("Google", "Pixel 4");
Console.WriteLine(device?.NormalizedSpecs?.Display?.SizeInches);
Get a free API key
Show raw response
{
  "id": 452217,
  "manufacturer": "Google",
  "model": "Pixel 4",
  "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 2800 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": "5.7 inches, 80.7 cm<sup>2</sup> (~79.8% 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": 506090,
      "model_number": "G020M"
    },
    {
      "id": 506091,
      "model_number": "G020I"
    },
    {
      "id": 506092,
      "model_number": "GA01188-US"
    },
    {
      "id": 506093,
      "model_number": "GA01187-US"
    },
    {
      "id": 506094,
      "model_number": "GA01189-US"
    },
    {
      "id": 506095,
      "model_number": "GA01191-US"
    },
    {
      "id": 506096,
      "model_number": "GA01189-US"
    }
  ],
  "normalized_specs": {
    "id": 452222,
    "display": {
      "id": 452222,
      "size_inches": 5.7,
      "panel_type": "P-OLED",
      "refresh_rate_hz": 90,
      "peak_brightness_nits": 0,
      "protection_type": "Corning Gorilla Glass 5"
    },
    "processor": {
      "id": 452222,
      "total_cores": 8,
      "max_clock_speed_ghz": 2.84
    },
    "memory_options": {
      "id": 452222,
      "available_ram_gb": [
        6
      ],
      "available_storage_gb": [
        64,
        128
      ],
      "has_card_slot": false,
      "storage_technology": "UFS 2.1"
    },
    "battery_and_charging": {
      "id": 452222,
      "capacities_mah": [
        2800
      ],
      "max_wired_charging_w": 18,
      "has_wireless_charging": true
    },
    "cameras": {
      "id": 452222,
      "main_lenses_count": 2,
      "max_main_resolution_mp": 16,
      "selfie_lenses_count": 1
    },
    "physical": {
      "id": 452222,
      "height_mm": 147.1,
      "width_mm": 68.8,
      "thickness_mm": 8.2,
      "weight_g": 162,
      "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": 452222,
      "has_stereo_speakers": true,
      "has_jack_35mm": false,
      "audio_quality_features": []
    },
    "connectivity": {
      "id": 452222,
      "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": 452222,
      "antutu_score": "395351 (v8)  GeekBench: 2542 (v5.1)  GFXBench: 31fps (ES 3.1 onscreen)",
      "geekbench_score": "2542 (v5.1)  GFXBench: 31fps (ES 3.1 onscreen)",
      "measured_display_brightness_nits": 423,
      "measured_loudspeaker_lufs": 0,
      "measured_battery_active_use_hours": 0
    },
    "eu_label": {
      "id": 452222,
      "energy_class": "",
      "battery_endurance": "",
      "battery_endurance_hours": 0,
      "free_fall_class": "",
      "repairability_class": ""
    }
  }
}

Xiaomi Black Shark 2 JSON

GET/api/values/clean/getspecs/Xiaomi/Black%20Shark%202
cURL
curl 'https://gsmarenaparser.p.rapidapi.com/api/values/clean/getspecs/Xiaomi/Black%20Shark%202' \
-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("Xiaomi", "Black Shark 2")
print(device["normalized_specs"]["display"])
TypeScript
import { DeviceSpecsClient } from "@granturismo/devicespecs";
const client = new DeviceSpecsClient("YOUR_RAPIDAPI_KEY");
const device = await client.getSpecs("Xiaomi", "Black Shark 2");
console.log(device?.normalized_specs?.display);
C#
using var client = new DeviceSpecsClient("YOUR_RAPIDAPI_KEY");
var device = await client.GetSpecsAsync("Xiaomi", "Black Shark 2");
Console.WriteLine(device?.NormalizedSpecs?.Display?.SizeInches);
Get a free API key
Show raw response
{
  "id": 448190,
  "manufacturer": "Xiaomi",
  "model": "Black Shark 2",
  "network": "GSM / CDMA / HSPA / EVDO / LTE",
  "announceDate": "2019, March. Released 2019, March",
  "status": "Discontinued",
  "chipset": "Qualcomm SM8150 Snapdragon 855",
  "androidVersion": "Android 9.0 (Pie), upgradable to Android 10, JoyUI 11",
  "battery_raw": "Li-Ion 4000 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": "AMOLED",
  "displaySize_raw": "6.39 inches, 100.2 cm<sup>2</sup> (~81.7% screen-to-body ratio)",
  "displayType_raw": "AMOLED",
  "gpu": "Adreno 640",
  "internal_raw": "128GB 6GB RAM, 128GB 8GB RAM, 256GB 8GB RAM, 256GB 12GB RAM",
  "mainCameraFeatures": "LED flash, HDR, panorama",
  "mainCameraSpecs_raw": "48 MP, f/1.8, 28mm (wide), 1/2.0\", 0.8µm, PDAF<br>\n12 MP, f/2.2, 54mm (telephoto), 1.0µm, PDAF, 2x optical zoom",
  "mainVideoSpecs": "4K@30/60fps, 1080p@30fps, 720p@120fps",
  "selfieCameraFeatures": "HDR",
  "selfieCameraSpecs_raw": "20 MP, f/2.0, (wide), 1/3\", 0.9µm",
  "selfieVideoSpecs": "1080p@30fps",
  "sensors": "",
  "charging_raw": "27W wired",
  "price_usd": 0,
  "price_eur": 0,
  "price_gbp": 0,
  "imageUrl": "https://fdn2.gsmarena.com/vv/bigpic/xiaomi-black-shark-2.jpg",
  "colors": [
    "Black",
    "Silver",
    "Blue"
  ],
  "variants": [
    {
      "id": 500589,
      "model_number": "SKW-H0"
    },
    {
      "id": 500590,
      "model_number": "SKW-A0"
    }
  ],
  "normalized_specs": {
    "id": 448195,
    "display": {
      "id": 448195,
      "size_inches": 6.39,
      "panel_type": "AMOLED",
      "refresh_rate_hz": 0,
      "peak_brightness_nits": 0,
      "protection_type": ""
    },
    "processor": {
      "id": 448195,
      "total_cores": 8,
      "max_clock_speed_ghz": 2.84
    },
    "memory_options": {
      "id": 448195,
      "available_ram_gb": [
        6,
        8,
        12
      ],
      "available_storage_gb": [
        128,
        256
      ],
      "has_card_slot": false,
      "storage_technology": "UFS 2.1"
    },
    "battery_and_charging": {
      "id": 448195,
      "capacities_mah": [
        4000
      ],
      "max_wired_charging_w": 27,
      "has_wireless_charging": false
    },
    "cameras": {
      "id": 448195,
      "main_lenses_count": 2,
      "max_main_resolution_mp": 48,
      "selfie_lenses_count": 1
    },
    "physical": {
      "id": 448195,
      "height_mm": 163.6,
      "width_mm": 75,
      "thickness_mm": 8.8,
      "weight_g": 205,
      "build_materials": [
        "Glass front",
        "aluminum back",
        "aluminum frame"
      ],
      "sim_options": [
        "Nano-SIM"
      ],
      "ip_rating": "",
      "is_water_resistant": false
    },
    "sound": {
      "id": 448195,
      "has_stereo_speakers": true,
      "has_jack_35mm": false,
      "audio_quality_features": []
    },
    "connectivity": {
      "id": 448195,
      "wlan_features": [
        "Wi-Fi 802.11 a/b/g/n/ac",
        "dual-band",
        "Wi-Fi Direct"
      ],
      "bluetooth_version": 5,
      "bluetooth_features": [
        "A2DP",
        "aptX HD",
        "LE"
      ],
      "positioning_tech": [
        "GPS",
        "GLONASS",
        "BDS"
      ],
      "has_nfc": false,
      "has_infrared": false,
      "has_radio": false,
      "usb_type": "USB Type-C 2.0",
      "usb_has_otg": false
    },
    "benchmarks": {
      "id": 448195,
      "antutu_score": "343460 (v7)  GeekBench: 11192 (v4.4)  GFXBench: 36fps (ES 3.1 onscreen)",
      "geekbench_score": "11192 (v4.4)  GFXBench: 36fps (ES 3.1 onscreen)",
      "measured_display_brightness_nits": 614,
      "measured_loudspeaker_lufs": 0,
      "measured_battery_active_use_hours": 0
    },
    "eu_label": {
      "id": 448195,
      "energy_class": "",
      "battery_endurance": "",
      "battery_endurance_hours": 0,
      "free_fall_class": "",
      "repairability_class": ""
    }
  }
}

More comparisons