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 A40 vs Samsung Galaxy M20

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

Samsung Galaxy A40

2019 · Exynos 7904
VS
Samsung Galaxy M20

Samsung Galaxy M20

2019 · Exynos 7904
SpecificationSamsung Galaxy A40Samsung Galaxy M20
Release
Announced2019, March 19. Released 2019, April2019, January 28. Released 2019, February
StatusDiscontinuedDiscontinued
Display
Size5.9 in6.3 in
PanelSuper AMOLEDPLS LCD
ResolutionSuper AMOLEDPLS LCD
ProtectionCorning Gorilla Glass 3—
Platform
ChipsetExynos 7904Exynos 7904
CPUOcta-core (2x1.77 GHz Cortex-A73 & 6x1.59 GHz Cortex-A53)Octa-core (2x1.8 GHz Cortex-A73 & 6x1.6 GHz Cortex-A53)
Cores88
Max clock1.77 GHz1.8 GHz
GPUMali-G71 MP2Mali-G71 MP2
OSAndroid 9.0 (Pie), upgradable to Android 11Android 8.1 (Oreo), upgradable to Android 10, One UI 2
AnTuTu106388 (v7) GeekBench: 4112 (v4.4) GFXBench: 4.6fps (ES 3.1 onscreen)108658 (v7) GeekBench: 4160 (v4.4) GFXBench: 4.4fps (ES 3.1 onscreen)
Geekbench4112 (v4.4) GFXBench: 4.6fps (ES 3.1 onscreen)4160 (v4.4) GFXBench: 4.4fps (ES 3.1 onscreen)
Memory
RAM options4 GB3 GB / 4 GB
Storage options64 GB / 128 GB32 GB / 64 GB
Storage techeMMC 5.1eMMC 5.1
microSD slotYesYes
Battery
Capacity3100 mAh5000 mAh
Wired charging15 W15 W
Wireless chargingNoNo
Cameras
Rear lenses22
Main resolution16 MP13 MP
Rear camera16 MP, f/1.7, 26mm (wide), PDAF, 5 MP, f/2.2, 13mm (ultrawide)13 MP, f/1.9, 1/3.1", 1.12µm, PDAF, 5 MP, f/2.2, 12mm (ultrawide)
Rear video1080p@30fps1080p@30fps
Front camera25 MP, f/2.0, 25mm (wide), 1/2.8", 0.9µm8 MP, f/2.0, 25mm (wide)
Body
Weight140 g186 g
Thickness7.9 mm8.8 mm
Height144.4 mm156.4 mm
Width69.2 mm74.5 mm
MaterialsGlass front (Gorilla Glass 3), plastic back, plastic frameGlass 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 b/g/n, Wi-Fi Direct
USBUSB Type-C 2.0USB Type-C 2.0
InfraredNoNo

Samsung Galaxy A40 JSON

GET/api/values/clean/getspecs/Samsung/Galaxy%20A40
cURL
curl 'https://gsmarenaparser.p.rapidapi.com/api/values/clean/getspecs/Samsung/Galaxy%20A40' \
-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 A40")
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 A40");
console.log(device?.normalized_specs?.display);
C#
using var client = new DeviceSpecsClient("YOUR_RAPIDAPI_KEY");
var device = await client.GetSpecsAsync("Samsung", "Galaxy A40");
Console.WriteLine(device?.NormalizedSpecs?.Display?.SizeInches);
Get a free API key
Show raw response
{
  "id": 451011,
  "manufacturer": "Samsung",
  "model": "Galaxy A40",
  "network": "GSM / HSPA / LTE",
  "announceDate": "2019, March 19. Released 2019, April",
  "status": "Discontinued",
  "chipset": "Exynos 7904",
  "androidVersion": "Android 9.0 (Pie), upgradable to Android 11",
  "battery_raw": "Li-Po 3100 mAh, non-removable",
  "cpu_raw": "Octa-core (2x1.77 GHz Cortex-A73 & 6x1.59 GHz Cortex-A53)",
  "displayResolution_raw": "Super AMOLED",
  "displaySize_raw": "5.9 inches, 85.5 cm<sup>2</sup> (~85.5% screen-to-body ratio)",
  "displayType_raw": "Super AMOLED",
  "gpu": "Mali-G71 MP2",
  "internal_raw": "64GB 4GB RAM, 128GB 4GB RAM",
  "mainCameraFeatures": "LED flash, panorama, HDR",
  "mainCameraSpecs_raw": "16 MP, f/1.7, 26mm (wide), PDAF<br>\n5 MP, f/2.2, 13mm (ultrawide)",
  "mainVideoSpecs": "1080p@30fps",
  "selfieCameraFeatures": "",
  "selfieCameraSpecs_raw": "25 MP, f/2.0, 25mm (wide), 1/2.8\", 0.9µm",
  "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-a40.jpg",
  "colors": [
    "Black",
    "White",
    "Blue",
    "Coral"
  ],
  "variants": [
    {
      "id": 504578,
      "model_number": "SM-A405F"
    },
    {
      "id": 504579,
      "model_number": "SM-A405FN"
    },
    {
      "id": 504580,
      "model_number": "SM-A405FM"
    },
    {
      "id": 504581,
      "model_number": "SM-A405S"
    }
  ],
  "normalized_specs": {
    "id": 451016,
    "display": {
      "id": 451016,
      "size_inches": 5.9,
      "panel_type": "Super AMOLED",
      "refresh_rate_hz": 0,
      "peak_brightness_nits": 0,
      "protection_type": "Corning Gorilla Glass 3"
    },
    "processor": {
      "id": 451016,
      "total_cores": 8,
      "max_clock_speed_ghz": 1.77
    },
    "memory_options": {
      "id": 451016,
      "available_ram_gb": [
        4
      ],
      "available_storage_gb": [
        64,
        128
      ],
      "has_card_slot": true,
      "storage_technology": "eMMC 5.1"
    },
    "battery_and_charging": {
      "id": 451016,
      "capacities_mah": [
        3100
      ],
      "max_wired_charging_w": 15,
      "has_wireless_charging": false
    },
    "cameras": {
      "id": 451016,
      "main_lenses_count": 2,
      "max_main_resolution_mp": 16,
      "selfie_lenses_count": 1
    },
    "physical": {
      "id": 451016,
      "height_mm": 144.4,
      "width_mm": 69.2,
      "thickness_mm": 7.9,
      "weight_g": 140,
      "build_materials": [
        "Glass front (Gorilla Glass 3)",
        "plastic back",
        "plastic frame"
      ],
      "sim_options": [
        "Nano-SIM"
      ],
      "ip_rating": "",
      "is_water_resistant": false
    },
    "sound": {
      "id": 451016,
      "has_stereo_speakers": false,
      "has_jack_35mm": true,
      "audio_quality_features": []
    },
    "connectivity": {
      "id": 451016,
      "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": 451016,
      "antutu_score": "106388 (v7)  GeekBench: 4112 (v4.4)  GFXBench: 4.6fps (ES 3.1 onscreen)",
      "geekbench_score": "4112 (v4.4)  GFXBench: 4.6fps (ES 3.1 onscreen)",
      "measured_display_brightness_nits": 548,
      "measured_loudspeaker_lufs": 0,
      "measured_battery_active_use_hours": 0
    },
    "eu_label": {
      "id": 451016,
      "energy_class": "",
      "battery_endurance": "",
      "battery_endurance_hours": 0,
      "free_fall_class": "",
      "repairability_class": ""
    }
  }
}

Samsung Galaxy M20 JSON

GET/api/values/clean/getspecs/Samsung/Galaxy%20M20
cURL
curl 'https://gsmarenaparser.p.rapidapi.com/api/values/clean/getspecs/Samsung/Galaxy%20M20' \
-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 M20")
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 M20");
console.log(device?.normalized_specs?.display);
C#
using var client = new DeviceSpecsClient("YOUR_RAPIDAPI_KEY");
var device = await client.GetSpecsAsync("Samsung", "Galaxy M20");
Console.WriteLine(device?.NormalizedSpecs?.Display?.SizeInches);
Get a free API key
Show raw response
{
  "id": 451005,
  "manufacturer": "Samsung",
  "model": "Galaxy M20",
  "network": "GSM / HSPA / LTE",
  "announceDate": "2019, January 28. Released 2019, February",
  "status": "Discontinued",
  "chipset": "Exynos 7904",
  "androidVersion": "Android 8.1 (Oreo), upgradable to Android 10, One UI 2",
  "battery_raw": "Li-Po 5000 mAh, non-removable",
  "cpu_raw": "Octa-core (2x1.8 GHz Cortex-A73 &amp; 6x1.6 GHz Cortex-A53)",
  "displayResolution_raw": "PLS LCD",
  "displaySize_raw": "6.3 inches, 97.4 cm<sup>2</sup> (~83.6% screen-to-body ratio)",
  "displayType_raw": "PLS LCD",
  "gpu": "Mali-G71 MP2",
  "internal_raw": "32GB 3GB RAM, 64GB 4GB RAM",
  "mainCameraFeatures": "LED flash, panorama, HDR",
  "mainCameraSpecs_raw": "13 MP, f/1.9, 1/3.1\", 1.12µm, PDAF<br>\n5 MP, f/2.2, 12mm (ultrawide)",
  "mainVideoSpecs": "1080p@30fps",
  "selfieCameraFeatures": "HDR",
  "selfieCameraSpecs_raw": "8 MP, f/2.0, 25mm (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-m20-m205f.jpg",
  "colors": [
    "Ocean Blue",
    "Charcoal Black"
  ],
  "variants": [
    {
      "id": 504539,
      "model_number": "SM-M205F"
    },
    {
      "id": 504540,
      "model_number": "SM-M205FN"
    },
    {
      "id": 504541,
      "model_number": "SM-M205G"
    },
    {
      "id": 504542,
      "model_number": "SM-M205M"
    },
    {
      "id": 504543,
      "model_number": "SM-M205N"
    }
  ],
  "normalized_specs": {
    "id": 451010,
    "display": {
      "id": 451010,
      "size_inches": 6.3,
      "panel_type": "PLS LCD",
      "refresh_rate_hz": 0,
      "peak_brightness_nits": 0,
      "protection_type": ""
    },
    "processor": {
      "id": 451010,
      "total_cores": 8,
      "max_clock_speed_ghz": 1.8
    },
    "memory_options": {
      "id": 451010,
      "available_ram_gb": [
        3,
        4
      ],
      "available_storage_gb": [
        32,
        64
      ],
      "has_card_slot": true,
      "storage_technology": "eMMC 5.1"
    },
    "battery_and_charging": {
      "id": 451010,
      "capacities_mah": [
        5000
      ],
      "max_wired_charging_w": 15,
      "has_wireless_charging": false
    },
    "cameras": {
      "id": 451010,
      "main_lenses_count": 2,
      "max_main_resolution_mp": 13,
      "selfie_lenses_count": 1
    },
    "physical": {
      "id": 451010,
      "height_mm": 156.4,
      "width_mm": 74.5,
      "thickness_mm": 8.8,
      "weight_g": 186,
      "build_materials": [
        "Glass front",
        "plastic back",
        "plastic frame"
      ],
      "sim_options": [
        "Nano-SIM"
      ],
      "ip_rating": "",
      "is_water_resistant": false
    },
    "sound": {
      "id": 451010,
      "has_stereo_speakers": false,
      "has_jack_35mm": true,
      "audio_quality_features": []
    },
    "connectivity": {
      "id": 451010,
      "wlan_features": [
        "Wi-Fi 802.11 b/g/n",
        "Wi-Fi Direct"
      ],
      "bluetooth_version": 5,
      "bluetooth_features": [
        "A2DP",
        "LE"
      ],
      "positioning_tech": [
        "GPS",
        "GLONASS",
        "BDS"
      ],
      "has_nfc": true,
      "has_infrared": false,
      "has_radio": false,
      "usb_type": "USB Type-C 2.0",
      "usb_has_otg": false
    },
    "benchmarks": {
      "id": 451010,
      "antutu_score": "108658 (v7)  GeekBench: 4160 (v4.4)  GFXBench: 4.4fps (ES 3.1 onscreen)",
      "geekbench_score": "4160 (v4.4)  GFXBench: 4.4fps (ES 3.1 onscreen)",
      "measured_display_brightness_nits": 0,
      "measured_loudspeaker_lufs": 0,
      "measured_battery_active_use_hours": 0
    },
    "eu_label": {
      "id": 451010,
      "energy_class": "",
      "battery_endurance": "",
      "battery_endurance_hours": 0,
      "free_fall_class": "",
      "repairability_class": ""
    }
  }
}

More comparisons