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 5a 5G vs HTC U20 5G

HTC U20 5G leads on 6 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 5a 5G

Google Pixel 5a 5G

2021 · Qualcomm SM7250 Snapdragon 765G 5G
VS
HTC U20 5G

HTC U20 5G

2020 · Qualcomm SM7250 Snapdragon 765G 5G
SpecificationGoogle Pixel 5a 5GHTC U20 5G
Release
Announced2021, August 172020, June 16. Released 2020, October 01
StatusAvailable. Released 2021, August 26Discontinued
Display
Size6.34 in6.8 in
PanelOLEDIPS LCD
ResolutionOLED, HDRIPS LCD
ProtectionCorning Gorilla Glass 3—
Platform
ChipsetQualcomm SM7250 Snapdragon 765G 5GQualcomm SM7250 Snapdragon 765G 5G
CPUOcta-core (1x2.4 GHz Kryo 475 Prime & 1x2.2 GHz Kryo 475 Gold & 6x1.8 GHz Kryo 475 Silver)Octa-core (1x2.4 GHz Kryo 475 Prime & 1x2.2 GHz Kryo 475 Gold & 6x1.8 GHz Kryo 475 Silver)
Cores88
Max clock2.4 GHz2.4 GHz
GPUAdreno 620Adreno 620
OSAndroid 11, upgradable to Android 14Android 10
AnTuTu291303 (v8) GeekBench: 1337 (v5.1) GFXBench: 19fps (ES 3.1 onscreen)—
Geekbench1337 (v5.1) GFXBench: 19fps (ES 3.1 onscreen)—
Memory
RAM options6 GB6 GB / 8 GB
Storage options128 GB256 GB
microSD slotNoYes
Battery
Capacity4680 mAh5000 mAh
Wired charging18 W18 W
Wireless chargingNoNo
Cameras
Rear lenses23
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.2, 119˚ (ultrawide), 1.0µm48 MP, f/1.8, 26mm (wide), 1/2.0", 0.8µm, PDAF, 8 MP, f/2.2, 118˚ (ultrawide), 1/4.0", 1.12µm, 2 MP (macro), Auxiliary lens
Rear video4K@30/60fps, 1080p@30/60/120/240fps; gyro-EIS4K@30fps, 1080p@30fps, gyro-EIS
Front camera8 MP, f/2.0, 24mm (wide), 1.12µm32 MP, f/2.0, (wide), 1/2.8", 0.8µm
Body
Weight183 g5 g
Thickness8.8 mm9.4 mm
Height156.2 mm171.2 mm
Width73.2 mm78.1 mm
IP ratingIP67—
MaterialsGlass front (Gorilla Glass 3), aluminum frame, aluminum back—
SIMNano-SIM, eSIMNano-SIM
Sound and connectivity
Stereo speakersYesNo
3.5 mm jackYesNo
NFCYesYes
Bluetooth55
Wi-FiWi-Fi 802.11 a/b/g/n/ac, dual-band, Wi-Fi DirectWi-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 5a 5G JSON

GET/api/values/clean/getspecs/Google/Pixel%205a%205G
cURL
curl 'https://gsmarenaparser.p.rapidapi.com/api/values/clean/getspecs/Google/Pixel%205a%205G' \
-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 5a 5G")
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 5a 5G");
console.log(device?.normalized_specs?.display);
C#
using var client = new DeviceSpecsClient("YOUR_RAPIDAPI_KEY");
var device = await client.GetSpecsAsync("Google", "Pixel 5a 5G");
Console.WriteLine(device?.NormalizedSpecs?.Display?.SizeInches);
Get a free API key
Show raw response
{
  "id": 452212,
  "manufacturer": "Google",
  "model": "Pixel 5a 5G",
  "network": "GSM / HSPA / EVDO / LTE / 5G",
  "announceDate": "2021, August 17",
  "status": "Available. Released 2021, August 26",
  "chipset": "Qualcomm SM7250 Snapdragon 765G 5G",
  "androidVersion": "Android 11, upgradable to Android 14",
  "battery_raw": "Li-Po 4680 mAh",
  "cpu_raw": "Octa-core (1x2.4 GHz Kryo 475 Prime & 1x2.2 GHz Kryo 475 Gold & 6x1.8 GHz Kryo 475 Silver)",
  "displayResolution_raw": "OLED, HDR",
  "displaySize_raw": "6.34 inches, 97.0 cm<sup>2</sup> (~84.9% screen-to-body ratio)",
  "displayType_raw": "OLED, HDR",
  "gpu": "Adreno 620",
  "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<br>\n16 MP, f/2.2, 119˚ (ultrawide), 1.0µm",
  "mainVideoSpecs": "4K@30/60fps, 1080p@30/60/120/240fps; 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-5a-5g.jpg",
  "colors": [
    "Mostly Black"
  ],
  "variants": [
    {
      "id": 506072,
      "model_number": "G1F8F"
    },
    {
      "id": 506073,
      "model_number": "G4S1M"
    }
  ],
  "normalized_specs": {
    "id": 452217,
    "display": {
      "id": 452217,
      "size_inches": 6.34,
      "panel_type": "OLED",
      "refresh_rate_hz": 0,
      "peak_brightness_nits": 0,
      "protection_type": "Corning Gorilla Glass 3"
    },
    "processor": {
      "id": 452217,
      "total_cores": 8,
      "max_clock_speed_ghz": 2.4
    },
    "memory_options": {
      "id": 452217,
      "available_ram_gb": [
        6
      ],
      "available_storage_gb": [
        128
      ],
      "has_card_slot": false,
      "storage_technology": ""
    },
    "battery_and_charging": {
      "id": 452217,
      "capacities_mah": [
        4680
      ],
      "max_wired_charging_w": 18,
      "has_wireless_charging": false
    },
    "cameras": {
      "id": 452217,
      "main_lenses_count": 2,
      "max_main_resolution_mp": 16,
      "selfie_lenses_count": 1
    },
    "physical": {
      "id": 452217,
      "height_mm": 156.2,
      "width_mm": 73.2,
      "thickness_mm": 8.8,
      "weight_g": 183,
      "build_materials": [
        "Glass front (Gorilla Glass 3)",
        "aluminum frame",
        "aluminum back"
      ],
      "sim_options": [
        "Nano-SIM",
        "eSIM"
      ],
      "ip_rating": "IP67",
      "is_water_resistant": true
    },
    "sound": {
      "id": 452217,
      "has_stereo_speakers": true,
      "has_jack_35mm": true,
      "audio_quality_features": []
    },
    "connectivity": {
      "id": 452217,
      "wlan_features": [
        "Wi-Fi 802.11 a/b/g/n/ac",
        "dual-band",
        "Wi-Fi Direct"
      ],
      "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": 452217,
      "antutu_score": "291303 (v8)  GeekBench: 1337 (v5.1)  GFXBench: 19fps (ES 3.1 onscreen)",
      "geekbench_score": "1337 (v5.1)  GFXBench: 19fps (ES 3.1 onscreen)",
      "measured_display_brightness_nits": 861,
      "measured_loudspeaker_lufs": 0,
      "measured_battery_active_use_hours": 0
    },
    "eu_label": {
      "id": 452217,
      "energy_class": "",
      "battery_endurance": "",
      "battery_endurance_hours": 0,
      "free_fall_class": "",
      "repairability_class": ""
    }
  }
}

HTC U20 5G JSON

GET/api/values/clean/getspecs/HTC/U20%205G
cURL
curl 'https://gsmarenaparser.p.rapidapi.com/api/values/clean/getspecs/HTC/U20%205G' \
-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("HTC", "U20 5G")
print(device["normalized_specs"]["display"])
TypeScript
import { DeviceSpecsClient } from "@granturismo/devicespecs";
const client = new DeviceSpecsClient("YOUR_RAPIDAPI_KEY");
const device = await client.getSpecs("HTC", "U20 5G");
console.log(device?.normalized_specs?.display);
C#
using var client = new DeviceSpecsClient("YOUR_RAPIDAPI_KEY");
var device = await client.GetSpecsAsync("HTC", "U20 5G");
Console.WriteLine(device?.NormalizedSpecs?.Display?.SizeInches);
Get a free API key
Show raw response
{
  "id": 454770,
  "manufacturer": "HTC",
  "model": "U20 5G",
  "network": "GSM / HSPA / LTE / 5G",
  "announceDate": "2020, June 16. Released 2020, October 01",
  "status": "Discontinued",
  "chipset": "Qualcomm SM7250 Snapdragon 765G 5G",
  "androidVersion": "Android 10",
  "battery_raw": "Li-Po 5000 mAh",
  "cpu_raw": "Octa-core (1x2.4 GHz Kryo 475 Prime &amp; 1x2.2 GHz Kryo 475 Gold &amp; 6x1.8 GHz Kryo 475 Silver)",
  "displayResolution_raw": "IPS LCD",
  "displaySize_raw": "6.8 inches, 111.6 cm<sup>2</sup> (~83.5% screen-to-body ratio)",
  "displayType_raw": "IPS LCD",
  "gpu": "Adreno 620",
  "internal_raw": "256GB 6GB RAM, 256GB 8GB RAM",
  "mainCameraFeatures": "Dual-LED flash, HDR, panorama",
  "mainCameraSpecs_raw": "48 MP, f/1.8, 26mm (wide), 1/2.0\", 0.8µm, PDAF<br>\n8 MP, f/2.2, 118˚ (ultrawide), 1/4.0\", 1.12µm<br>\n2 MP (macro)<br>\nAuxiliary lens",
  "mainVideoSpecs": "4K@30fps, 1080p@30fps, gyro-EIS",
  "selfieCameraFeatures": "HDR",
  "selfieCameraSpecs_raw": "32 MP, f/2.0, (wide), 1/2.8\", 0.8µm",
  "selfieVideoSpecs": "1080p@30fps",
  "sensors": "",
  "charging_raw": "18W wired, QC4",
  "price_usd": 0,
  "price_eur": 0,
  "price_gbp": 0,
  "imageUrl": "https://fdn2.gsmarena.com/vv/bigpic/htc-u20-5g.jpg",
  "colors": [
    "Green",
    "White"
  ],
  "variants": [],
  "normalized_specs": {
    "id": 454775,
    "display": {
      "id": 454775,
      "size_inches": 6.8,
      "panel_type": "IPS LCD",
      "refresh_rate_hz": 0,
      "peak_brightness_nits": 0,
      "protection_type": ""
    },
    "processor": {
      "id": 454775,
      "total_cores": 8,
      "max_clock_speed_ghz": 2.4
    },
    "memory_options": {
      "id": 454775,
      "available_ram_gb": [
        6,
        8
      ],
      "available_storage_gb": [
        256
      ],
      "has_card_slot": true,
      "storage_technology": ""
    },
    "battery_and_charging": {
      "id": 454775,
      "capacities_mah": [
        5000
      ],
      "max_wired_charging_w": 18,
      "has_wireless_charging": false
    },
    "cameras": {
      "id": 454775,
      "main_lenses_count": 3,
      "max_main_resolution_mp": 48,
      "selfie_lenses_count": 1
    },
    "physical": {
      "id": 454775,
      "height_mm": 171.2,
      "width_mm": 78.1,
      "thickness_mm": 9.4,
      "weight_g": 5,
      "build_materials": [],
      "sim_options": [
        "Nano-SIM"
      ],
      "ip_rating": "",
      "is_water_resistant": false
    },
    "sound": {
      "id": 454775,
      "has_stereo_speakers": false,
      "has_jack_35mm": false,
      "audio_quality_features": []
    },
    "connectivity": {
      "id": 454775,
      "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": false
    },
    "benchmarks": {
      "id": 454775,
      "antutu_score": "",
      "geekbench_score": "",
      "measured_display_brightness_nits": 0,
      "measured_loudspeaker_lufs": 0,
      "measured_battery_active_use_hours": 0
    },
    "eu_label": {
      "id": 454775,
      "energy_class": "",
      "battery_endurance": "",
      "battery_endurance_hours": 0,
      "free_fall_class": "",
      "repairability_class": ""
    }
  }
}

More comparisons