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

Lenovo P2 vs Xiaomi Mi A1 (Mi 5X)

Xiaomi Mi A1 (Mi 5X) leads on 4 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.

Lenovo P2

Lenovo P2

2016 · Qualcomm MSM8953 Snapdragon 625
VS
Xiaomi Mi A1 (Mi 5X)

Xiaomi Mi A1 (Mi 5X)

2017 · Qualcomm MSM8953 Snapdragon 625
SpecificationLenovo P2Xiaomi Mi A1 (Mi 5X)
Release
Announced2016, September. Released 2016, November2017, September. Released 2017, September
StatusDiscontinuedDiscontinued
Display
Size5.5 in5.5 in
PanelSuper AMOLEDIPS LCD
ResolutionSuper AMOLEDIPS LCD
ProtectionCorning Gorilla Glass 3Corning Gorilla Glass 3
Platform
ChipsetQualcomm MSM8953 Snapdragon 625Qualcomm MSM8953 Snapdragon 625
CPUOcta-core 2.0 GHz Cortex-A53Octa-core 2.0 GHz Cortex-A53
Cores88
Max clock2 GHz2 GHz
GPUAdreno 506Adreno 506
OSAndroid 6.0.1 (Marshmallow), upgradable to 7.0 (Nougat)Android 7.1.2 (Nougat), upgradable to Android 9.0 (Pie), Android One
Geekbench—4292 (v4.4) GFXBench: 3.5fps (ES 3.1 onscreen)
Memory
RAM options3 GB / 4 GB4 GB
Storage options32 GB / 64 GB32 GB / 64 GB
Storage techeMMC 5.1eMMC 5.1
microSD slotYesYes
Battery
Capacity5100 mAh3080 mAh
Wired charging18 W10 W
Wireless chargingNoNo
Cameras
Rear lenses12
Main resolution13 MP12 MP
Rear camera13 MP, f/2.0, 21mm (ultrawide), 1/3.1", 1.12µm, PDAF12 MP, f/2.2, 26mm (wide), 1/2.9", 1.25µm, PDAF, 12 MP, f/2.6, 50mm (telephoto), 1.0µm, AF, 2x optical zoom
Rear video4K@30fps, 1080p@30fps4K@30fps, 1080p@30fps, 720p@120fps
Front camera5 MP, f/2.25 MP
Body
Weight177 g165 g
Thickness8.3 mm7.3 mm
Height153 mm155.4 mm
Width76 mm75.8 mm
MaterialsGlass front (Gorilla Glass 3), aluminum back, aluminum frameGlass front (Gorilla Glass 3), aluminum back, aluminum frame
SIMNano-SIMNano-SIM
Sound and connectivity
Stereo speakersNoNo
3.5 mm jackYesYes
NFCYesNo
Bluetooth4.14.2
Wi-FiWi-Fi 802.11 a/b/g/n/ac, dual-bandWi-Fi 802.11 a/b/g/n/ac, dual-band, Wi-Fi Direct
USBmicroUSB 2.0USB Type-C 2.0
InfraredNoYes

Lenovo P2 JSON

GET/api/values/clean/getspecs/Lenovo/P2
cURL
curl 'https://gsmarenaparser.p.rapidapi.com/api/values/clean/getspecs/Lenovo/P2' \
-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("Lenovo", "P2")
print(device["normalized_specs"]["display"])
TypeScript
import { DeviceSpecsClient } from "@granturismo/devicespecs";
const client = new DeviceSpecsClient("YOUR_RAPIDAPI_KEY");
const device = await client.getSpecs("Lenovo", "P2");
console.log(device?.normalized_specs?.display);
C#
using var client = new DeviceSpecsClient("YOUR_RAPIDAPI_KEY");
var device = await client.GetSpecsAsync("Lenovo", "P2");
Console.WriteLine(device?.NormalizedSpecs?.Display?.SizeInches);
Get a free API key
Show raw response
{
  "id": 456225,
  "manufacturer": "Lenovo",
  "model": "P2",
  "network": "GSM / HSPA / LTE",
  "announceDate": "2016, September. Released 2016, November",
  "status": "Discontinued",
  "chipset": "Qualcomm MSM8953 Snapdragon 625",
  "androidVersion": "Android 6.0.1 (Marshmallow), upgradable to 7.0 (Nougat)",
  "battery_raw": "Li-Ion 5100 mAh, non-removable",
  "cpu_raw": "Octa-core 2.0 GHz Cortex-A53",
  "displayResolution_raw": "Super AMOLED",
  "displaySize_raw": "5.5 inches, 83.4 cm<sup>2</sup> (~71.7% screen-to-body ratio)",
  "displayType_raw": "Super AMOLED",
  "gpu": "Adreno 506",
  "internal_raw": "32GB 3GB RAM, 32GB 4GB RAM, 64GB 4GB RAM",
  "mainCameraFeatures": "Dual-LED dual-tone flash, HDR, panorama",
  "mainCameraSpecs_raw": "13 MP, f/2.0, 21mm (ultrawide), 1/3.1\", 1.12µm, PDAF",
  "mainVideoSpecs": "4K@30fps, 1080p@30fps",
  "selfieCameraFeatures": "",
  "selfieCameraSpecs_raw": "5 MP, f/2.2",
  "selfieVideoSpecs": "1080p@30fps",
  "sensors": "",
  "charging_raw": "18W wired",
  "price_usd": 0,
  "price_eur": 0,
  "price_gbp": 0,
  "imageUrl": "https://fdn2.gsmarena.com/vv/bigpic/lenovo-p2.jpg",
  "colors": [
    "Champagne gold",
    "Graphite gray"
  ],
  "variants": [
    {
      "id": 510611,
      "model_number": "P2a42"
    }
  ],
  "normalized_specs": {
    "id": 456230,
    "display": {
      "id": 456230,
      "size_inches": 5.5,
      "panel_type": "Super AMOLED",
      "refresh_rate_hz": 0,
      "peak_brightness_nits": 0,
      "protection_type": "Corning Gorilla Glass 3"
    },
    "processor": {
      "id": 456230,
      "total_cores": 8,
      "max_clock_speed_ghz": 2
    },
    "memory_options": {
      "id": 456230,
      "available_ram_gb": [
        3,
        4
      ],
      "available_storage_gb": [
        32,
        64
      ],
      "has_card_slot": true,
      "storage_technology": "eMMC 5.1"
    },
    "battery_and_charging": {
      "id": 456230,
      "capacities_mah": [
        5100
      ],
      "max_wired_charging_w": 18,
      "has_wireless_charging": false
    },
    "cameras": {
      "id": 456230,
      "main_lenses_count": 1,
      "max_main_resolution_mp": 13,
      "selfie_lenses_count": 1
    },
    "physical": {
      "id": 456230,
      "height_mm": 153,
      "width_mm": 76,
      "thickness_mm": 8.3,
      "weight_g": 177,
      "build_materials": [
        "Glass front (Gorilla Glass 3)",
        "aluminum back",
        "aluminum frame"
      ],
      "sim_options": [
        "Nano-SIM"
      ],
      "ip_rating": "",
      "is_water_resistant": false
    },
    "sound": {
      "id": 456230,
      "has_stereo_speakers": false,
      "has_jack_35mm": true,
      "audio_quality_features": []
    },
    "connectivity": {
      "id": 456230,
      "wlan_features": [
        "Wi-Fi 802.11 a/b/g/n/ac",
        "dual-band"
      ],
      "bluetooth_version": 4.1,
      "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": true
    },
    "benchmarks": {
      "id": 456230,
      "antutu_score": "",
      "geekbench_score": "",
      "measured_display_brightness_nits": 0,
      "measured_loudspeaker_lufs": 0,
      "measured_battery_active_use_hours": 0
    },
    "eu_label": {
      "id": 456230,
      "energy_class": "",
      "battery_endurance": "",
      "battery_endurance_hours": 0,
      "free_fall_class": "",
      "repairability_class": ""
    }
  }
}

Xiaomi Mi A1 (Mi 5X) JSON

GET/api/values/clean/getspecs/Xiaomi/Mi%20A1%20(Mi%205X)
cURL
curl 'https://gsmarenaparser.p.rapidapi.com/api/values/clean/getspecs/Xiaomi/Mi%20A1%20(Mi%205X)' \
-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", "Mi A1 (Mi 5X)")
print(device["normalized_specs"]["display"])
TypeScript
import { DeviceSpecsClient } from "@granturismo/devicespecs";
const client = new DeviceSpecsClient("YOUR_RAPIDAPI_KEY");
const device = await client.getSpecs("Xiaomi", "Mi A1 (Mi 5X)");
console.log(device?.normalized_specs?.display);
C#
using var client = new DeviceSpecsClient("YOUR_RAPIDAPI_KEY");
var device = await client.GetSpecsAsync("Xiaomi", "Mi A1 (Mi 5X)");
Console.WriteLine(device?.NormalizedSpecs?.Display?.SizeInches);
Get a free API key
Show raw response
{
  "id": 448228,
  "manufacturer": "Xiaomi",
  "model": "Mi A1 (Mi 5X)",
  "network": "GSM / HSPA / LTE",
  "announceDate": "2017, September. Released 2017, September",
  "status": "Discontinued",
  "chipset": "Qualcomm MSM8953 Snapdragon 625",
  "androidVersion": "Android 7.1.2 (Nougat), upgradable to Android 9.0 (Pie), Android One",
  "battery_raw": "Li-Po 3080 mAh, non-removable",
  "cpu_raw": "Octa-core 2.0 GHz Cortex-A53",
  "displayResolution_raw": "IPS LCD",
  "displaySize_raw": "5.5 inches, 82.6 cm<sup>2</sup> (~70.1% screen-to-body ratio)",
  "displayType_raw": "IPS LCD",
  "gpu": "Adreno 506",
  "internal_raw": "32GB 4GB RAM, 64GB 4GB RAM",
  "mainCameraFeatures": "Dual-LED dual-tone flash, HDR, panorama",
  "mainCameraSpecs_raw": "12 MP, f/2.2, 26mm (wide), 1/2.9\", 1.25µm, PDAF<br>\n12 MP, f/2.6, 50mm (telephoto), 1.0µm, AF, 2x optical zoom",
  "mainVideoSpecs": "4K@30fps, 1080p@30fps, 720p@120fps",
  "selfieCameraFeatures": "",
  "selfieCameraSpecs_raw": "5 MP",
  "selfieVideoSpecs": "1080p@30fps",
  "sensors": "",
  "charging_raw": "10W wired",
  "price_usd": 0,
  "price_eur": 0,
  "price_gbp": 0,
  "imageUrl": "https://fdn2.gsmarena.com/vv/bigpic/xiaomi-mi-a1.jpg",
  "colors": [
    "Black",
    "Gold",
    "Rose Gold",
    "Red"
  ],
  "variants": [
    {
      "id": 500650,
      "model_number": "MDG2"
    },
    {
      "id": 500651,
      "model_number": "MDI2"
    }
  ],
  "normalized_specs": {
    "id": 448233,
    "display": {
      "id": 448233,
      "size_inches": 5.5,
      "panel_type": "IPS LCD",
      "refresh_rate_hz": 0,
      "peak_brightness_nits": 0,
      "protection_type": "Corning Gorilla Glass 3"
    },
    "processor": {
      "id": 448233,
      "total_cores": 8,
      "max_clock_speed_ghz": 2
    },
    "memory_options": {
      "id": 448233,
      "available_ram_gb": [
        4
      ],
      "available_storage_gb": [
        32,
        64
      ],
      "has_card_slot": true,
      "storage_technology": "eMMC 5.1"
    },
    "battery_and_charging": {
      "id": 448233,
      "capacities_mah": [
        3080
      ],
      "max_wired_charging_w": 10,
      "has_wireless_charging": false
    },
    "cameras": {
      "id": 448233,
      "main_lenses_count": 2,
      "max_main_resolution_mp": 12,
      "selfie_lenses_count": 1
    },
    "physical": {
      "id": 448233,
      "height_mm": 155.4,
      "width_mm": 75.8,
      "thickness_mm": 7.3,
      "weight_g": 165,
      "build_materials": [
        "Glass front (Gorilla Glass 3)",
        "aluminum back",
        "aluminum frame"
      ],
      "sim_options": [
        "Nano-SIM"
      ],
      "ip_rating": "",
      "is_water_resistant": false
    },
    "sound": {
      "id": 448233,
      "has_stereo_speakers": false,
      "has_jack_35mm": true,
      "audio_quality_features": []
    },
    "connectivity": {
      "id": 448233,
      "wlan_features": [
        "Wi-Fi 802.11 a/b/g/n/ac",
        "dual-band",
        "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": "USB Type-C 2.0",
      "usb_has_otg": false
    },
    "benchmarks": {
      "id": 448233,
      "antutu_score": "",
      "geekbench_score": "4292 (v4.4)  GFXBench: 3.5fps (ES 3.1 onscreen)",
      "measured_display_brightness_nits": 0,
      "measured_loudspeaker_lufs": 0,
      "measured_battery_active_use_hours": 0
    },
    "eu_label": {
      "id": 448233,
      "energy_class": "",
      "battery_endurance": "",
      "battery_endurance_hours": 0,
      "free_fall_class": "",
      "repairability_class": ""
    }
  }
}

More comparisons