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

Samsung Galaxy M21 2021 vs Samsung Galaxy M31s

Samsung Galaxy M31s leads on 4 of the 6 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.

Samsung Galaxy M21 2021

Samsung Galaxy M21 2021

2021 · Exynos 9611
VS
Samsung Galaxy M31s

Samsung Galaxy M31s

2020 · Exynos 9611
SpecificationSamsung Galaxy M21 2021Samsung Galaxy M31s
Release
Announced2021, July 212020, July 30. Released 2020, August 06
StatusAvailable. Released 2021, July 26Discontinued
Display
Size6.4 in6.5 in
PanelSuper AMOLEDSuper AMOLED
Peak brightness420 nits—
ResolutionSuper AMOLED, 420 nits (peak)Super AMOLED
Protection—Corning Gorilla Glass 3
Platform
ChipsetExynos 9611Exynos 9611
CPUOcta-core (4x2.3 GHz Cortex-A73 & 4x1.7 GHz Cortex-A53)Octa-core (4x2.3 GHz Cortex-A73 & 4x1.7 GHz Cortex-A53)
Cores88
Max clock2.3 GHz2.3 GHz
GPUMali-G72 MP3Mali-G72 MP3
OSAndroid 11, One UI 3.1 CoreAndroid 10, upgradable to Android 12, One UI 4.1
Memory
RAM options4 GB / 6 GB6 GB / 8 GB
Storage options64 GB / 128 GB128 GB
Storage tech—UFS 2.1
microSD slotYesYes
Battery
Capacity6000 mAh6000 mAh
Wired charging15 W25 W
Wireless chargingNoNo
Cameras
Rear lenses23
Main resolution48 MP64 MP
Rear camera48 MP, f/2.0, 26mm (wide), 1/2.0", 0.8µm, PDAF, 8 MP, f/2.2, 123˚ (ultrawide), 1/4.0", 1.12µm, Auxiliary lens64 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@30fps, 720p@240fps, gyro-EIS4K@30fps, 1080p@30fps, gyro-EIS
Front camera20 MP, f/2.2, 26mm (wide)32 MP, f/2.2, 26mm (wide), 1/2.8", 0.8µm
Body
Weight192 g203 g
Thickness9 mm9.3 mm
Height159 mm159.3 mm
Width75.1 mm74.4 mm
MaterialsGlass front, plastic back, plastic frame—
SIMNano-SIMNano-SIM
Sound and connectivity
Stereo speakersNoNo
3.5 mm jackYesYes
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 2.0USB Type-C 2.0
InfraredNoNo

Samsung Galaxy M21 2021 JSON

GET/api/values/clean/getspecs/Samsung/Galaxy%20M21%202021
cURL
curl 'https://gsmarenaparser.p.rapidapi.com/api/values/clean/getspecs/Samsung/Galaxy%20M21%202021' \
-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 M21 2021")
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 M21 2021");
console.log(device?.normalized_specs?.display);
C#
using var client = new DeviceSpecsClient("YOUR_RAPIDAPI_KEY");
var device = await client.GetSpecsAsync("Samsung", "Galaxy M21 2021");
Console.WriteLine(device?.NormalizedSpecs?.Display?.SizeInches);
Get a free API key
Show raw response
{
  "id": 450890,
  "manufacturer": "Samsung",
  "model": "Galaxy M21 2021",
  "network": "GSM / HSPA / LTE",
  "announceDate": "2021, July 21",
  "status": "Available. Released 2021, July 26",
  "chipset": "Exynos 9611",
  "androidVersion": "Android 11, One UI 3.1 Core",
  "battery_raw": "Li-Po 6000 mAh",
  "cpu_raw": "Octa-core (4x2.3 GHz Cortex-A73 & 4x1.7 GHz Cortex-A53)",
  "displayResolution_raw": "Super AMOLED, 420 nits (peak)",
  "displaySize_raw": "6.4 inches, 100.5 cm<sup>2</sup> (~84.2% screen-to-body ratio)",
  "displayType_raw": "Super AMOLED, 420 nits (peak)",
  "gpu": "Mali-G72 MP3",
  "internal_raw": "64GB 4GB RAM, 128GB 6GB RAM",
  "mainCameraFeatures": "LED flash, panorama, HDR",
  "mainCameraSpecs_raw": "48 MP, f/2.0, 26mm (wide), 1/2.0\", 0.8µm, PDAF<br>\n8 MP, f/2.2, 123˚ (ultrawide), 1/4.0\", 1.12µm<br>\nAuxiliary lens",
  "mainVideoSpecs": "4K@30fps, 1080p@30fps, 720p@240fps, gyro-EIS",
  "selfieCameraFeatures": "HDR",
  "selfieCameraSpecs_raw": "20 MP, f/2.2, 26mm (wide)",
  "selfieVideoSpecs": "1080p@30fps",
  "sensors": "",
  "charging_raw": "15W wired",
  "price_usd": 0,
  "price_eur": 0,
  "price_gbp": 0,
  "imageUrl": "https://fdn2.gsmarena.com/vv/bigpic/samsung-galaxy-m21-2021.jpg",
  "colors": [
    "Charcoal Black",
    "Arctic Blue"
  ],
  "variants": [
    {
      "id": 504015,
      "model_number": "SM-M215G"
    },
    {
      "id": 504016,
      "model_number": "SM-M215G/DS"
    }
  ],
  "normalized_specs": {
    "id": 450895,
    "display": {
      "id": 450895,
      "size_inches": 6.4,
      "panel_type": "Super AMOLED",
      "refresh_rate_hz": 0,
      "peak_brightness_nits": 420,
      "protection_type": ""
    },
    "processor": {
      "id": 450895,
      "total_cores": 8,
      "max_clock_speed_ghz": 2.3
    },
    "memory_options": {
      "id": 450895,
      "available_ram_gb": [
        4,
        6
      ],
      "available_storage_gb": [
        64,
        128
      ],
      "has_card_slot": true,
      "storage_technology": ""
    },
    "battery_and_charging": {
      "id": 450895,
      "capacities_mah": [
        6000
      ],
      "max_wired_charging_w": 15,
      "has_wireless_charging": false
    },
    "cameras": {
      "id": 450895,
      "main_lenses_count": 2,
      "max_main_resolution_mp": 48,
      "selfie_lenses_count": 1
    },
    "physical": {
      "id": 450895,
      "height_mm": 159,
      "width_mm": 75.1,
      "thickness_mm": 9,
      "weight_g": 192,
      "build_materials": [
        "Glass front",
        "plastic back",
        "plastic frame"
      ],
      "sim_options": [
        "Nano-SIM"
      ],
      "ip_rating": "",
      "is_water_resistant": false
    },
    "sound": {
      "id": 450895,
      "has_stereo_speakers": false,
      "has_jack_35mm": true,
      "audio_quality_features": []
    },
    "connectivity": {
      "id": 450895,
      "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": 450895,
      "antutu_score": "",
      "geekbench_score": "",
      "measured_display_brightness_nits": 0,
      "measured_loudspeaker_lufs": 0,
      "measured_battery_active_use_hours": 0
    },
    "eu_label": {
      "id": 450895,
      "energy_class": "",
      "battery_endurance": "",
      "battery_endurance_hours": 0,
      "free_fall_class": "",
      "repairability_class": ""
    }
  }
}

Samsung Galaxy M31s JSON

GET/api/values/clean/getspecs/Samsung/Galaxy%20M31s
cURL
curl 'https://gsmarenaparser.p.rapidapi.com/api/values/clean/getspecs/Samsung/Galaxy%20M31s' \
-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 M31s")
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 M31s");
console.log(device?.normalized_specs?.display);
C#
using var client = new DeviceSpecsClient("YOUR_RAPIDAPI_KEY");
var device = await client.GetSpecsAsync("Samsung", "Galaxy M31s");
Console.WriteLine(device?.NormalizedSpecs?.Display?.SizeInches);
Get a free API key
Show raw response
{
  "id": 450939,
  "manufacturer": "Samsung",
  "model": "Galaxy M31s",
  "network": "GSM / HSPA / LTE",
  "announceDate": "2020, July 30. Released 2020, August 06",
  "status": "Discontinued",
  "chipset": "Exynos 9611",
  "androidVersion": "Android 10, upgradable to Android 12, One UI 4.1",
  "battery_raw": "Li-Po 6000 mAh",
  "cpu_raw": "Octa-core (4x2.3 GHz Cortex-A73 &amp; 4x1.7 GHz Cortex-A53)",
  "displayResolution_raw": "Super AMOLED",
  "displaySize_raw": "6.5 inches, 102.0 cm<sup>2</sup> (~86.1% screen-to-body ratio)",
  "displayType_raw": "Super AMOLED",
  "gpu": "Mali-G72 MP3",
  "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, gyro-EIS",
  "selfieCameraFeatures": "HDR",
  "selfieCameraSpecs_raw": "32 MP, f/2.2, 26mm (wide), 1/2.8\", 0.8µm",
  "selfieVideoSpecs": "4K@30fps, 1080p@30fps",
  "sensors": "",
  "charging_raw": "25W wired\n4.5W reverse wired",
  "price_usd": 0,
  "price_eur": 0,
  "price_gbp": 0,
  "imageUrl": "https://fdn2.gsmarena.com/vv/bigpic/samsung-galaxy-m31s.jpg",
  "colors": [
    "Mirage Black",
    "Mirage Blue"
  ],
  "variants": [
    {
      "id": 504224,
      "model_number": "SM-M317F"
    },
    {
      "id": 504225,
      "model_number": "SM-M317F/DS"
    }
  ],
  "normalized_specs": {
    "id": 450944,
    "display": {
      "id": 450944,
      "size_inches": 6.5,
      "panel_type": "Super AMOLED",
      "refresh_rate_hz": 0,
      "peak_brightness_nits": 0,
      "protection_type": "Corning Gorilla Glass 3"
    },
    "processor": {
      "id": 450944,
      "total_cores": 8,
      "max_clock_speed_ghz": 2.3
    },
    "memory_options": {
      "id": 450944,
      "available_ram_gb": [
        6,
        8
      ],
      "available_storage_gb": [
        128
      ],
      "has_card_slot": true,
      "storage_technology": "UFS 2.1"
    },
    "battery_and_charging": {
      "id": 450944,
      "capacities_mah": [
        6000
      ],
      "max_wired_charging_w": 25,
      "has_wireless_charging": false
    },
    "cameras": {
      "id": 450944,
      "main_lenses_count": 3,
      "max_main_resolution_mp": 64,
      "selfie_lenses_count": 1
    },
    "physical": {
      "id": 450944,
      "height_mm": 159.3,
      "width_mm": 74.4,
      "thickness_mm": 9.3,
      "weight_g": 203,
      "build_materials": [],
      "sim_options": [
        "Nano-SIM"
      ],
      "ip_rating": "",
      "is_water_resistant": false
    },
    "sound": {
      "id": 450944,
      "has_stereo_speakers": false,
      "has_jack_35mm": true,
      "audio_quality_features": []
    },
    "connectivity": {
      "id": 450944,
      "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": 450944,
      "antutu_score": "",
      "geekbench_score": "",
      "measured_display_brightness_nits": 0,
      "measured_loudspeaker_lufs": 0,
      "measured_battery_active_use_hours": 0
    },
    "eu_label": {
      "id": 450944,
      "energy_class": "",
      "battery_endurance": "",
      "battery_endurance_hours": 0,
      "free_fall_class": "",
      "repairability_class": ""
    }
  }
}

More comparisons