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 Samsung Galaxy M51

Samsung Galaxy M51 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 4a

Google Pixel 4a

2020 · Qualcomm SDM730 Snapdragon 730G
VS
Samsung Galaxy M51

Samsung Galaxy M51

2020 · Qualcomm SDM730 Snapdragon 730G
SpecificationGoogle Pixel 4aSamsung Galaxy M51
Release
Announced2020, August 032020, August 31. Released 2020, September 11
StatusAvailable. Released 2020, August 20Discontinued
Display
Size5.81 in6.7 in
PanelOLEDSuper AMOLED Plus
ResolutionOLED, HDRSuper AMOLED Plus
ProtectionCorning Gorilla Glass 3Corning Gorilla Glass 3+
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 10, upgradable to Android 12, One UI 4.1
AnTuTu268714 (v8) GeekBench: 6426 (v4.4)266620 (v8) GeekBench: 1774 (v5.1) GFXBench: 15fps (ES 3.1 onscreen)
Geekbench6426 (v4.4)1774 (v5.1) GFXBench: 15fps (ES 3.1 onscreen)
Memory
RAM options6 GB6 GB / 8 GB
Storage options128 GB128 GB
Storage techUFS 2.1—
microSD slotNoYes
Battery
Capacity3140 mAh7000 mAh
Wired charging18 W25 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, 26mm (wide), 1/1.73", 0.8µm, PDAF, 12 MP, f/2.2, 123˚ (ultrawide), 5 MP (macro), Auxiliary lens
Rear video4K@30fps, 1080p@30/60/120fps; gyro-EIS4K@30fps, 1080p@30fps
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 g213 g
Thickness8.2 mm9.5 mm
Height144 mm163.9 mm
Width69.4 mm76.3 mm
MaterialsGlass front (Gorilla Glass 3), plastic back, plastic frameGlass front (Gorilla Glass 3+), plastic back, 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": ""
    }
  }
}

Samsung Galaxy M51 JSON

GET/api/values/clean/getspecs/Samsung/Galaxy%20M51
cURL
curl 'https://gsmarenaparser.p.rapidapi.com/api/values/clean/getspecs/Samsung/Galaxy%20M51' \
-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("Samsung", "Galaxy M51")
print(device["normalized_specs"]["display"])
TypeScript
import { DeviceSpecsClient } from "@granturismo/devicespecs";
const client = new DeviceSpecsClient("YOUR_RAPIDAPI_KEY");
const device = await client.getSpecs("Samsung", "Galaxy M51");
console.log(device?.normalized_specs?.display);
C#
using var client = new DeviceSpecsClient("YOUR_RAPIDAPI_KEY");
var device = await client.GetSpecsAsync("Samsung", "Galaxy M51");
Console.WriteLine(device?.NormalizedSpecs?.Display?.SizeInches);
Get a free API key
Show raw response
{
  "id": 450928,
  "manufacturer": "Samsung",
  "model": "Galaxy M51",
  "network": "GSM / HSPA / LTE",
  "announceDate": "2020, August 31. Released 2020, September 11",
  "status": "Discontinued",
  "chipset": "Qualcomm SDM730 Snapdragon 730G",
  "androidVersion": "Android 10, upgradable to Android 12, One UI 4.1",
  "battery_raw": "Li-Po 7000 mAh",
  "cpu_raw": "Octa-core (2x2.2 GHz Kryo 470 Gold &amp; 6x1.8 GHz Kryo 470 Silver)",
  "displayResolution_raw": "Super AMOLED Plus",
  "displaySize_raw": "6.7 inches, 108.4 cm<sup>2</sup> (~86.7% screen-to-body ratio)",
  "displayType_raw": "Super AMOLED Plus",
  "gpu": "Adreno 618",
  "internal_raw": "128GB 6GB RAM, 128GB 8GB RAM",
  "mainCameraFeatures": "LED flash, panorama, HDR",
  "mainCameraSpecs_raw": "64 MP, f/1.8, 26mm (wide), 1/1.73\", 0.8µm, PDAF<br>\n12 MP, f/2.2, 123˚ (ultrawide)<br>\n5 MP (macro)<br>\nAuxiliary lens",
  "mainVideoSpecs": "4K@30fps, 1080p@30fps",
  "selfieCameraFeatures": "HDR",
  "selfieCameraSpecs_raw": "32 MP, f/2.0, 26mm (wide), 1/2.8\", 0.8µm",
  "selfieVideoSpecs": "4K@30fps, 1080p@30fps",
  "sensors": "",
  "charging_raw": "25W wired, 100% in 115 min\nReverse wired",
  "price_usd": 0,
  "price_eur": 0,
  "price_gbp": 0,
  "imageUrl": "https://fdn2.gsmarena.com/vv/bigpic/samsung-galaxy-m51.jpg",
  "colors": [
    "Celestial Black",
    "Electric Blue",
    "White"
  ],
  "variants": [
    {
      "id": 504177,
      "model_number": "SM-M515F"
    },
    {
      "id": 504178,
      "model_number": "SM-M515F/DSN"
    }
  ],
  "normalized_specs": {
    "id": 450933,
    "display": {
      "id": 450933,
      "size_inches": 6.7,
      "panel_type": "Super AMOLED Plus",
      "refresh_rate_hz": 0,
      "peak_brightness_nits": 0,
      "protection_type": "Corning Gorilla Glass 3+"
    },
    "processor": {
      "id": 450933,
      "total_cores": 8,
      "max_clock_speed_ghz": 2.2
    },
    "memory_options": {
      "id": 450933,
      "available_ram_gb": [
        6,
        8
      ],
      "available_storage_gb": [
        128
      ],
      "has_card_slot": true,
      "storage_technology": ""
    },
    "battery_and_charging": {
      "id": 450933,
      "capacities_mah": [
        7000
      ],
      "max_wired_charging_w": 25,
      "has_wireless_charging": false
    },
    "cameras": {
      "id": 450933,
      "main_lenses_count": 3,
      "max_main_resolution_mp": 64,
      "selfie_lenses_count": 1
    },
    "physical": {
      "id": 450933,
      "height_mm": 163.9,
      "width_mm": 76.3,
      "thickness_mm": 9.5,
      "weight_g": 213,
      "build_materials": [
        "Glass front (Gorilla Glass 3+)",
        "plastic back",
        "plastic frame"
      ],
      "sim_options": [
        "Nano-SIM"
      ],
      "ip_rating": "",
      "is_water_resistant": false
    },
    "sound": {
      "id": 450933,
      "has_stereo_speakers": false,
      "has_jack_35mm": true,
      "audio_quality_features": []
    },
    "connectivity": {
      "id": 450933,
      "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": 450933,
      "antutu_score": "266620 (v8)  GeekBench: 1774 (v5.1)  GFXBench: 15fps (ES 3.1 onscreen)",
      "geekbench_score": "1774 (v5.1)  GFXBench: 15fps (ES 3.1 onscreen)",
      "measured_display_brightness_nits": 677,
      "measured_loudspeaker_lufs": -28.5,
      "measured_battery_active_use_hours": 0
    },
    "eu_label": {
      "id": 450933,
      "energy_class": "",
      "battery_endurance": "",
      "battery_endurance_hours": 0,
      "free_fall_class": "",
      "repairability_class": ""
    }
  }
}

More comparisons