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

HTC Desire 12s vs Xiaomi Redmi 4 (4X)

On the 2 metrics where both phones differ and a direction is meaningful, the two devices split evenly. Every value comes from the Device Specs API; the requests that return both payloads are at the bottom of the page.

HTC Desire 12s

HTC Desire 12s

2018 · Qualcomm MSM8940 Snapdragon 435
VS
Xiaomi Redmi 4 (4X)

Xiaomi Redmi 4 (4X)

2017 · Qualcomm MSM8940 Snapdragon 435
SpecificationHTC Desire 12sXiaomi Redmi 4 (4X)
Release
Announced2018, December. Released 2018, December2017, May. Released 2017, May
StatusDiscontinuedDiscontinued
Display
Size5.7 in5 in
PanelIPS LCDIPS LCD
ResolutionIPS LCDIPS LCD
Protection—Corning Gorilla Glass (unspecified version)
Platform
ChipsetQualcomm MSM8940 Snapdragon 435Qualcomm MSM8940 Snapdragon 435
CPUOcta-core 1.4 GHz Cortex-A53Octa-core 1.4 GHz Cortex-A53
Cores88
Max clock1.4 GHz1.4 GHz
GPUAdreno 505Adreno 505
OSAndroid 8.1 (Oreo)Android 6.0.1 (Marshmallow), upgradable to 7.1.2 (Nougat), MIUI 11
Geekbench—1819 (v4.4) GFXBench: 5.1fps (ES 3.1 onscreen)
Memory
RAM options3 GB / 4 GB2 GB / 3 GB / 4 GB
Storage options32 GB / 64 GB16 GB / 32 GB / 64 GB
Storage techeMMC 5.1eMMC 5.1
microSD slotYesYes
Battery
Capacity3075 mAh4100 mAh
Wireless chargingNoNo
Cameras
Rear lenses11
Main resolution13 MP13 MP
Rear camera13 MP, f/2.0, PDAF13 MP, f/2.0, PDAF
Rear video1080p@30fps1080p@30fps
Front camera13 MP, f/2.25 MP, f/2.2
Body
Weight150 g150 g
Thickness8.3 mm8.7 mm
Height154.2 mm139.2 mm
Width72.7 mm70 mm
Materials—Glass front (Gorilla Glass), aluminum back, aluminum frame, plastic ends
SIMNano-SIMNano-SIM, Micro-SIM
Sound and connectivity
Stereo speakersNoNo
3.5 mm jackYesYes
NFCYesNo
Bluetooth4.24.2
Wi-FiWi-Fi 802.11 b/g/n, Wi-Fi DirectWi-Fi 802.11 b/g/n, Wi-Fi Direct
USBmicroUSB 2.0microUSB 2.0
InfraredNoYes

HTC Desire 12s JSON

GET/api/values/clean/getspecs/HTC/Desire%2012s
cURL
curl 'https://gsmarenaparser.p.rapidapi.com/api/values/clean/getspecs/HTC/Desire%2012s' \
-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", "Desire 12s")
print(device["normalized_specs"]["display"])
TypeScript
import { DeviceSpecsClient } from "@granturismo/devicespecs";
const client = new DeviceSpecsClient("YOUR_RAPIDAPI_KEY");
const device = await client.getSpecs("HTC", "Desire 12s");
console.log(device?.normalized_specs?.display);
C#
using var client = new DeviceSpecsClient("YOUR_RAPIDAPI_KEY");
var device = await client.GetSpecsAsync("HTC", "Desire 12s");
Console.WriteLine(device?.NormalizedSpecs?.Display?.SizeInches);
Get a free API key
Show raw response
{
  "id": 454777,
  "manufacturer": "HTC",
  "model": "Desire 12s",
  "network": "GSM / HSPA / LTE",
  "announceDate": "2018, December. Released 2018, December",
  "status": "Discontinued",
  "chipset": "Qualcomm MSM8940 Snapdragon 435",
  "androidVersion": "Android 8.1 (Oreo)",
  "battery_raw": "Li-Ion 3075 mAh, non-removable",
  "cpu_raw": "Octa-core 1.4 GHz Cortex-A53",
  "displayResolution_raw": "IPS LCD",
  "displaySize_raw": "5.7 inches, 83.8 cm<sup>2</sup> (~74.8% screen-to-body ratio)",
  "displayType_raw": "IPS LCD",
  "gpu": "Adreno 505",
  "internal_raw": "32GB 3GB RAM, 64GB 4GB RAM",
  "mainCameraFeatures": "LED flash, HDR, panorama",
  "mainCameraSpecs_raw": "13 MP, f/2.0, PDAF",
  "mainVideoSpecs": "1080p@30fps",
  "selfieCameraFeatures": "LED flash",
  "selfieCameraSpecs_raw": "13 MP, f/2.2",
  "selfieVideoSpecs": "1080p@30fps",
  "sensors": "",
  "charging_raw": "",
  "price_usd": 0,
  "price_eur": 0,
  "price_gbp": 0,
  "imageUrl": "https://fdn2.gsmarena.com/vv/bigpic/htc-desire-12s-.jpg",
  "colors": [
    "Black",
    "Silver",
    "Red"
  ],
  "variants": [],
  "normalized_specs": {
    "id": 454782,
    "display": {
      "id": 454782,
      "size_inches": 5.7,
      "panel_type": "IPS LCD",
      "refresh_rate_hz": 0,
      "peak_brightness_nits": 0,
      "protection_type": ""
    },
    "processor": {
      "id": 454782,
      "total_cores": 8,
      "max_clock_speed_ghz": 1.4
    },
    "memory_options": {
      "id": 454782,
      "available_ram_gb": [
        3,
        4
      ],
      "available_storage_gb": [
        32,
        64
      ],
      "has_card_slot": true,
      "storage_technology": "eMMC 5.1"
    },
    "battery_and_charging": {
      "id": 454782,
      "capacities_mah": [
        3075
      ],
      "max_wired_charging_w": 0,
      "has_wireless_charging": false
    },
    "cameras": {
      "id": 454782,
      "main_lenses_count": 1,
      "max_main_resolution_mp": 13,
      "selfie_lenses_count": 1
    },
    "physical": {
      "id": 454782,
      "height_mm": 154.2,
      "width_mm": 72.7,
      "thickness_mm": 8.3,
      "weight_g": 150,
      "build_materials": [],
      "sim_options": [
        "Nano-SIM"
      ],
      "ip_rating": "",
      "is_water_resistant": false
    },
    "sound": {
      "id": 454782,
      "has_stereo_speakers": false,
      "has_jack_35mm": true,
      "audio_quality_features": []
    },
    "connectivity": {
      "id": 454782,
      "wlan_features": [
        "Wi-Fi 802.11 b/g/n",
        "Wi-Fi Direct"
      ],
      "bluetooth_version": 4.2,
      "bluetooth_features": [
        "A2DP",
        "LE"
      ],
      "positioning_tech": [
        "GPS",
        "GLONASS"
      ],
      "has_nfc": true,
      "has_infrared": false,
      "has_radio": false,
      "usb_type": "microUSB 2.0",
      "usb_has_otg": false
    },
    "benchmarks": {
      "id": 454782,
      "antutu_score": "",
      "geekbench_score": "",
      "measured_display_brightness_nits": 0,
      "measured_loudspeaker_lufs": 0,
      "measured_battery_active_use_hours": 0
    },
    "eu_label": {
      "id": 454782,
      "energy_class": "",
      "battery_endurance": "",
      "battery_endurance_hours": 0,
      "free_fall_class": "",
      "repairability_class": ""
    }
  }
}

Xiaomi Redmi 4 (4X) JSON

GET/api/values/clean/getspecs/Xiaomi/Redmi%204%20(4X)
cURL
curl 'https://gsmarenaparser.p.rapidapi.com/api/values/clean/getspecs/Xiaomi/Redmi%204%20(4X)' \
-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", "Redmi 4 (4X)")
print(device["normalized_specs"]["display"])
TypeScript
import { DeviceSpecsClient } from "@granturismo/devicespecs";
const client = new DeviceSpecsClient("YOUR_RAPIDAPI_KEY");
const device = await client.getSpecs("Xiaomi", "Redmi 4 (4X)");
console.log(device?.normalized_specs?.display);
C#
using var client = new DeviceSpecsClient("YOUR_RAPIDAPI_KEY");
var device = await client.GetSpecsAsync("Xiaomi", "Redmi 4 (4X)");
Console.WriteLine(device?.NormalizedSpecs?.Display?.SizeInches);
Get a free API key
Show raw response
{
  "id": 448230,
  "manufacturer": "Xiaomi",
  "model": "Redmi 4 (4X)",
  "network": "GSM / HSPA / LTE",
  "announceDate": "2017, May. Released 2017, May",
  "status": "Discontinued",
  "chipset": "Qualcomm MSM8940 Snapdragon 435",
  "androidVersion": "Android 6.0.1 (Marshmallow), upgradable to 7.1.2 (Nougat), MIUI 11",
  "battery_raw": "Li-Po 4100 mAh, non-removable",
  "cpu_raw": "Octa-core 1.4 GHz Cortex-A53",
  "displayResolution_raw": "IPS LCD",
  "displaySize_raw": "5.0 inches, 68.9 cm<sup>2</sup> (~70.7% screen-to-body ratio)",
  "displayType_raw": "IPS LCD",
  "gpu": "Adreno 505",
  "internal_raw": "16GB 2GB RAM, 16GB 3GB RAM, 32GB 3GB RAM, 64GB 3GB RAM, 64GB 4GB RAM",
  "mainCameraFeatures": "LED flash, HDR, panorama",
  "mainCameraSpecs_raw": "13 MP, f/2.0, PDAF",
  "mainVideoSpecs": "1080p@30fps",
  "selfieCameraFeatures": "",
  "selfieCameraSpecs_raw": "5 MP, f/2.2",
  "selfieVideoSpecs": "1080p@30fps",
  "sensors": "",
  "charging_raw": "Up to 432 h (3G)",
  "price_usd": 0,
  "price_eur": 0,
  "price_gbp": 0,
  "imageUrl": "https://fdn2.gsmarena.com/vv/bigpic/xiaomi-redmi-4x.jpg",
  "colors": [
    "Black",
    "Gold"
  ],
  "variants": [
    {
      "id": 500654,
      "model_number": "2016060"
    },
    {
      "id": 500655,
      "model_number": "2016090"
    },
    {
      "id": 500656,
      "model_number": "MAG138"
    },
    {
      "id": 500657,
      "model_number": "MAE136"
    },
    {
      "id": 500658,
      "model_number": "Redmi 4"
    },
    {
      "id": 500659,
      "model_number": "Redmi 4X"
    }
  ],
  "normalized_specs": {
    "id": 448235,
    "display": {
      "id": 448235,
      "size_inches": 5,
      "panel_type": "IPS LCD",
      "refresh_rate_hz": 0,
      "peak_brightness_nits": 0,
      "protection_type": "Corning Gorilla Glass (unspecified version)"
    },
    "processor": {
      "id": 448235,
      "total_cores": 8,
      "max_clock_speed_ghz": 1.4
    },
    "memory_options": {
      "id": 448235,
      "available_ram_gb": [
        2,
        3,
        4
      ],
      "available_storage_gb": [
        16,
        32,
        64
      ],
      "has_card_slot": true,
      "storage_technology": "eMMC 5.1"
    },
    "battery_and_charging": {
      "id": 448235,
      "capacities_mah": [
        4100
      ],
      "max_wired_charging_w": 0,
      "has_wireless_charging": false
    },
    "cameras": {
      "id": 448235,
      "main_lenses_count": 1,
      "max_main_resolution_mp": 13,
      "selfie_lenses_count": 1
    },
    "physical": {
      "id": 448235,
      "height_mm": 139.2,
      "width_mm": 70,
      "thickness_mm": 8.7,
      "weight_g": 150,
      "build_materials": [
        "Glass front (Gorilla Glass)",
        "aluminum back",
        "aluminum frame",
        "plastic ends"
      ],
      "sim_options": [
        "Nano-SIM",
        "Micro-SIM"
      ],
      "ip_rating": "",
      "is_water_resistant": false
    },
    "sound": {
      "id": 448235,
      "has_stereo_speakers": false,
      "has_jack_35mm": true,
      "audio_quality_features": []
    },
    "connectivity": {
      "id": 448235,
      "wlan_features": [
        "Wi-Fi 802.11 b/g/n",
        "Wi-Fi Direct"
      ],
      "bluetooth_version": 4.2,
      "bluetooth_features": [
        "A2DP",
        "LE"
      ],
      "positioning_tech": [
        "GPS",
        "GLONASS",
        "BDS"
      ],
      "has_nfc": false,
      "has_infrared": true,
      "has_radio": false,
      "usb_type": "microUSB 2.0",
      "usb_has_otg": false
    },
    "benchmarks": {
      "id": 448235,
      "antutu_score": "",
      "geekbench_score": "1819 (v4.4)  GFXBench: 5.1fps (ES 3.1 onscreen)",
      "measured_display_brightness_nits": 0,
      "measured_loudspeaker_lufs": 0,
      "measured_battery_active_use_hours": 0
    },
    "eu_label": {
      "id": 448235,
      "energy_class": "",
      "battery_endurance": "",
      "battery_endurance_hours": 0,
      "free_fall_class": "",
      "repairability_class": ""
    }
  }
}

More comparisons