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 4a vs Realme X2

Realme X2 leads on 6 of the 8 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 4a

Google Pixel 4a

2020 · Qualcomm SDM730 Snapdragon 730G
VS
Realme X2

Realme X2

2019 · Qualcomm SDM730 Snapdragon 730G
SpecificationGoogle Pixel 4aRealme X2
Release
Announced2020, August 032019, September 24. Released 2019, September
StatusAvailable. Released 2020, August 20Discontinued
Display
Size5.81 in6.4 in
PanelOLEDSuper AMOLED
ResolutionOLED, HDRSuper AMOLED
ProtectionCorning Gorilla Glass 3Corning Gorilla Glass 5
Platform
ChipsetQualcomm SDM730 Snapdragon 730GQualcomm SDM730 Snapdragon 730G
CPUOcta-core (2x2.2 GHz Kryo 470 Gold & 6x1.8 GHz Kryo 470 Silver)Octa-core (2x2.2 GHz Kryo 470 Gold & 6x1.8 GHz Kryo 470 Silver)
Cores88
Max clock2.2 GHz2.2 GHz
GPUAdreno 618Adreno 618
OSAndroid 10, upgradable to Android 13Android 9.0 (Pie), upgradable to Android 10, Realme UI
AnTuTu268714 (v8) GeekBench: 6426 (v4.4)215578 (v7)
Geekbench6426 (v4.4)6926 (v4.4)
Memory
RAM options6 GB4 GB / 6 GB / 8 GB
Storage options128 GB64 GB / 128 GB / 256 GB
Storage techUFS 2.1UFS 2.1
microSD slotNoYes
Battery
Capacity3140 mAh4000 mAh
Wired charging18 W30 W
Wireless chargingNoNo
Cameras
Rear lenses13
Main resolution12 MP64 MP
Rear camera12.2 MP, f/1.7, 27mm (wide), 1/2.55", 1.4µm, dual pixel PDAF, OIS64 MP, f/1.8, (wide), 1/1.72", 0.8µm, PDAF, 8 MP, f/2.3, 13mm (ultrawide), 2 MP (macro), Auxiliary lens
Rear video4K@30fps, 1080p@30/60/120fps; gyro-EIS4K@30fps, 1080p@30/60/120fps, 720p@960fps, gyro-EIS
Front camera8 MP, f/2.0, 24mm (wide), 1.12µm32 MP, f/2.0, 26mm (wide), 1/2.8", 0.8µm
Body
Weight143 g182 g
Thickness8.2 mm8.6 mm
Height144 mm158.7 mm
Width69.4 mm75.2 mm
MaterialsGlass front (Gorilla Glass 3), plastic back, plastic frameGlass front (Gorilla Glass 5), glass back (Gorilla Glass 5), plastic frame
SIMNano-SIM, eSIMNano-SIM
Sound and connectivity
Stereo speakersYesNo
3.5 mm jackYesYes
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
USBUSB Type-C 3.1USB Type-C 2.0
InfraredNoNo

Google Pixel 4a JSON

GET/api/values/clean/getspecs/Google/Pixel%204a
cURL
curl 'https://gsmarenaparser.p.rapidapi.com/api/values/clean/getspecs/Google/Pixel%204a' \
-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 4a")
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 4a");
console.log(device?.normalized_specs?.display);
C#
using var client = new DeviceSpecsClient("YOUR_RAPIDAPI_KEY");
var device = await client.GetSpecsAsync("Google", "Pixel 4a");
Console.WriteLine(device?.NormalizedSpecs?.Display?.SizeInches);
Get a free API key
Show raw response
{
  "id": 452215,
  "manufacturer": "Google",
  "model": "Pixel 4a",
  "network": "GSM / HSPA / LTE",
  "announceDate": "2020, August 03",
  "status": "Available. Released 2020, August 20",
  "chipset": "Qualcomm SDM730 Snapdragon 730G",
  "androidVersion": "Android 10, upgradable to Android 13",
  "battery_raw": "Li-Po 3140 mAh",
  "cpu_raw": "Octa-core (2x2.2 GHz Kryo 470 Gold & 6x1.8 GHz Kryo 470 Silver)",
  "displayResolution_raw": "OLED, HDR",
  "displaySize_raw": "5.81 inches, 83.2 cm<sup>2</sup> (~83.3% screen-to-body ratio)",
  "displayType_raw": "OLED, HDR",
  "gpu": "Adreno 618",
  "internal_raw": "128GB 6GB RAM",
  "mainCameraFeatures": "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",
  "mainVideoSpecs": "4K@30fps, 1080p@30/60/120fps; gyro-EIS",
  "selfieCameraFeatures": "HDR",
  "selfieCameraSpecs_raw": "8 MP, f/2.0, 24mm (wide), 1.12µm",
  "selfieVideoSpecs": "1080p@30fps",
  "sensors": "",
  "charging_raw": "18W wired, PD2.0",
  "price_usd": 0,
  "price_eur": 0,
  "price_gbp": 0,
  "imageUrl": "https://fdn2.gsmarena.com/vv/bigpic/google-pixel-4a.jpg",
  "colors": [
    "Just Black",
    "Barely Blue"
  ],
  "variants": [
    {
      "id": 506082,
      "model_number": "G025J"
    },
    {
      "id": 506083,
      "model_number": "GA02099"
    },
    {
      "id": 506084,
      "model_number": "G025N"
    }
  ],
  "normalized_specs": {
    "id": 452220,
    "display": {
      "id": 452220,
      "size_inches": 5.81,
      "panel_type": "OLED",
      "refresh_rate_hz": 0,
      "peak_brightness_nits": 0,
      "protection_type": "Corning Gorilla Glass 3"
    },
    "processor": {
      "id": 452220,
      "total_cores": 8,
      "max_clock_speed_ghz": 2.2
    },
    "memory_options": {
      "id": 452220,
      "available_ram_gb": [
        6
      ],
      "available_storage_gb": [
        128
      ],
      "has_card_slot": false,
      "storage_technology": "UFS 2.1"
    },
    "battery_and_charging": {
      "id": 452220,
      "capacities_mah": [
        3140
      ],
      "max_wired_charging_w": 18,
      "has_wireless_charging": false
    },
    "cameras": {
      "id": 452220,
      "main_lenses_count": 1,
      "max_main_resolution_mp": 12,
      "selfie_lenses_count": 1
    },
    "physical": {
      "id": 452220,
      "height_mm": 144,
      "width_mm": 69.4,
      "thickness_mm": 8.2,
      "weight_g": 143,
      "build_materials": [
        "Glass front (Gorilla Glass 3)",
        "plastic back",
        "plastic frame"
      ],
      "sim_options": [
        "Nano-SIM",
        "eSIM"
      ],
      "ip_rating": "",
      "is_water_resistant": false
    },
    "sound": {
      "id": 452220,
      "has_stereo_speakers": true,
      "has_jack_35mm": true,
      "audio_quality_features": []
    },
    "connectivity": {
      "id": 452220,
      "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",
        "GALILEO",
        "QZSS",
        "BDS"
      ],
      "has_nfc": true,
      "has_infrared": false,
      "has_radio": false,
      "usb_type": "USB Type-C 3.1",
      "usb_has_otg": false
    },
    "benchmarks": {
      "id": 452220,
      "antutu_score": "268714 (v8)  GeekBench: 6426 (v4.4)",
      "geekbench_score": "6426 (v4.4)",
      "measured_display_brightness_nits": 803,
      "measured_loudspeaker_lufs": 0,
      "measured_battery_active_use_hours": 0
    },
    "eu_label": {
      "id": 452220,
      "energy_class": "",
      "battery_endurance": "",
      "battery_endurance_hours": 0,
      "free_fall_class": "",
      "repairability_class": ""
    }
  }
}

Realme X2 JSON

GET/api/values/clean/getspecs/Realme/X2
cURL
curl 'https://gsmarenaparser.p.rapidapi.com/api/values/clean/getspecs/Realme/X2' \
-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("Realme", "X2")
print(device["normalized_specs"]["display"])
TypeScript
import { DeviceSpecsClient } from "@granturismo/devicespecs";
const client = new DeviceSpecsClient("YOUR_RAPIDAPI_KEY");
const device = await client.getSpecs("Realme", "X2");
console.log(device?.normalized_specs?.display);
C#
using var client = new DeviceSpecsClient("YOUR_RAPIDAPI_KEY");
var device = await client.GetSpecsAsync("Realme", "X2");
Console.WriteLine(device?.NormalizedSpecs?.Display?.SizeInches);
Get a free API key
Show raw response
{
  "id": 450574,
  "manufacturer": "Realme",
  "model": "X2",
  "network": "GSM / CDMA / HSPA / EVDO / LTE",
  "announceDate": "2019, September 24. Released 2019, September",
  "status": "Discontinued",
  "chipset": "Qualcomm SDM730 Snapdragon 730G",
  "androidVersion": "Android 9.0 (Pie), upgradable to Android 10, Realme UI",
  "battery_raw": "4000 mAh, non-removable",
  "cpu_raw": "Octa-core (2x2.2 GHz Kryo 470 Gold &amp; 6x1.8 GHz Kryo 470 Silver)",
  "displayResolution_raw": "Super AMOLED",
  "displaySize_raw": "6.4 inches, 100.5 cm<sup>2</sup> (~84.3% screen-to-body ratio)",
  "displayType_raw": "Super AMOLED",
  "gpu": "Adreno 618",
  "internal_raw": "64GB 4GB RAM, 64GB 6GB RAM, 128GB 6GB RAM, 128GB 8GB RAM, 256GB 8GB RAM",
  "mainCameraFeatures": "LED flash, HDR, panorama",
  "mainCameraSpecs_raw": "64 MP, f/1.8, (wide), 1/1.72\", 0.8µm, PDAF<br>\n8 MP, f/2.3, 13mm (ultrawide)<br>\n2 MP (macro)<br>\nAuxiliary lens",
  "mainVideoSpecs": "4K@30fps, 1080p@30/60/120fps, 720p@960fps, gyro-EIS",
  "selfieCameraFeatures": "HDR",
  "selfieCameraSpecs_raw": "32 MP, f/2.0, 26mm (wide), 1/2.8\", 0.8µm",
  "selfieVideoSpecs": "1080p@30fps",
  "sensors": "",
  "charging_raw": "30W wired, 67% in 30 min",
  "price_usd": 0,
  "price_eur": 0,
  "price_gbp": 0,
  "imageUrl": "https://fdn2.gsmarena.com/vv/bigpic/realme-xt-730g.jpg",
  "colors": [
    "Pearl White",
    "Pearl Blue",
    "Pearl Green"
  ],
  "variants": [
    {
      "id": 503039,
      "model_number": "RMX1992"
    },
    {
      "id": 503040,
      "model_number": "RMX1993"
    },
    {
      "id": 503041,
      "model_number": "RMX1991"
    }
  ],
  "normalized_specs": {
    "id": 450579,
    "display": {
      "id": 450579,
      "size_inches": 6.4,
      "panel_type": "Super AMOLED",
      "refresh_rate_hz": 0,
      "peak_brightness_nits": 0,
      "protection_type": "Corning Gorilla Glass 5"
    },
    "processor": {
      "id": 450579,
      "total_cores": 8,
      "max_clock_speed_ghz": 2.2
    },
    "memory_options": {
      "id": 450579,
      "available_ram_gb": [
        4,
        6,
        8
      ],
      "available_storage_gb": [
        64,
        128,
        256
      ],
      "has_card_slot": true,
      "storage_technology": "UFS 2.1"
    },
    "battery_and_charging": {
      "id": 450579,
      "capacities_mah": [
        4000
      ],
      "max_wired_charging_w": 30,
      "has_wireless_charging": false
    },
    "cameras": {
      "id": 450579,
      "main_lenses_count": 3,
      "max_main_resolution_mp": 64,
      "selfie_lenses_count": 1
    },
    "physical": {
      "id": 450579,
      "height_mm": 158.7,
      "width_mm": 75.2,
      "thickness_mm": 8.6,
      "weight_g": 182,
      "build_materials": [
        "Glass front (Gorilla Glass 5)",
        "glass back (Gorilla Glass 5)",
        "plastic frame"
      ],
      "sim_options": [
        "Nano-SIM"
      ],
      "ip_rating": "",
      "is_water_resistant": false
    },
    "sound": {
      "id": 450579,
      "has_stereo_speakers": false,
      "has_jack_35mm": true,
      "audio_quality_features": []
    },
    "connectivity": {
      "id": 450579,
      "wlan_features": [
        "Wi-Fi 802.11 a/b/g/n/ac",
        "dual-band",
        "Wi-Fi Direct"
      ],
      "bluetooth_version": 5,
      "bluetooth_features": [
        "A2DP",
        "LE"
      ],
      "positioning_tech": [
        "GPS",
        "GLONASS",
        "GALILEO",
        "BDS"
      ],
      "has_nfc": true,
      "has_infrared": false,
      "has_radio": false,
      "usb_type": "USB Type-C 2.0",
      "usb_has_otg": true
    },
    "benchmarks": {
      "id": 450579,
      "antutu_score": "215578 (v7)",
      "geekbench_score": "6926 (v4.4)",
      "measured_display_brightness_nits": 432,
      "measured_loudspeaker_lufs": -28,
      "measured_battery_active_use_hours": 0
    },
    "eu_label": {
      "id": 450579,
      "energy_class": "",
      "battery_endurance": "",
      "battery_endurance_hours": 0,
      "free_fall_class": "",
      "repairability_class": ""
    }
  }
}

More comparisons