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

Samsung Galaxy A30s leads on 4 of the 5 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 A30s

Samsung Galaxy A30s

2019 · Exynos 7904
VS
Samsung Galaxy A40

Samsung Galaxy A40

2019 · Exynos 7904
SpecificationSamsung Galaxy A30sSamsung Galaxy A40
Release
Announced2019, August 22. Released 2019, September 112019, March 19. Released 2019, April
StatusDiscontinuedDiscontinued
Display
Size6.4 in5.9 in
PanelSuper AMOLEDSuper AMOLED
ResolutionSuper AMOLEDSuper AMOLED
Protection—Corning Gorilla Glass 3
Platform
ChipsetExynos 7904Exynos 7904
CPUOcta-core (2x1.8 GHz Cortex-A73 & 6x1.6 GHz Cortex-A53)Octa-core (2x1.77 GHz Cortex-A73 & 6x1.59 GHz Cortex-A53)
Cores88
Max clock1.8 GHz1.77 GHz
GPUMali-G71 MP2Mali-G71 MP2
OSAndroid 9.0 (Pie), upgradable to Android 11, One UI 3.1Android 9.0 (Pie), upgradable to Android 11
AnTuTu—106388 (v7) GeekBench: 4112 (v4.4) GFXBench: 4.6fps (ES 3.1 onscreen)
Geekbench—4112 (v4.4) GFXBench: 4.6fps (ES 3.1 onscreen)
Memory
RAM options3 GB / 4 GB4 GB
Storage options32 GB / 64 GB / 128 GB64 GB / 128 GB
Storage techeMMC 5.1eMMC 5.1
microSD slotYesYes
Battery
Capacity4000 mAh3100 mAh
Wired charging15 W15 W
Wireless chargingNoNo
Cameras
Rear lenses22
Main resolution25 MP16 MP
Rear camera25 MP, f/1.7, 27mm (wide), PDAF, 8 MP, f/2.2, 13mm (ultrawide), 1/4.0", 1.12µm, Auxiliary lens16 MP, f/1.7, 26mm (wide), PDAF, 5 MP, f/2.2, 13mm (ultrawide)
Rear video1080p@30fps1080p@30fps
Front camera16 MP, f/2.0, 26mm (wide), 1/3.06", 1.0µm25 MP, f/2.0, 25mm (wide), 1/2.8", 0.9µm
Body
Weight169 g140 g
Thickness7.8 mm7.9 mm
Height158.5 mm144.4 mm
Width74.7 mm69.2 mm
MaterialsGlass front, plastic back, plastic frameGlass front (Gorilla Glass 3), 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 A30s JSON

GET/api/values/clean/getspecs/Samsung/Galaxy%20A30s
cURL
curl 'https://gsmarenaparser.p.rapidapi.com/api/values/clean/getspecs/Samsung/Galaxy%20A30s' \
-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 A30s")
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 A30s");
console.log(device?.normalized_specs?.display);
C#
using var client = new DeviceSpecsClient("YOUR_RAPIDAPI_KEY");
var device = await client.GetSpecsAsync("Samsung", "Galaxy A30s");
Console.WriteLine(device?.NormalizedSpecs?.Display?.SizeInches);
Get a free API key
Show raw response
{
  "id": 450983,
  "manufacturer": "Samsung",
  "model": "Galaxy A30s",
  "network": "GSM / HSPA / LTE",
  "announceDate": "2019, August 22. Released 2019, September 11",
  "status": "Discontinued",
  "chipset": "Exynos 7904",
  "androidVersion": "Android 9.0 (Pie), upgradable to Android 11, One UI 3.1",
  "battery_raw": "Li-Po 4000 mAh, non-removable",
  "cpu_raw": "Octa-core (2x1.8 GHz Cortex-A73 & 6x1.6 GHz Cortex-A53)",
  "displayResolution_raw": "Super AMOLED",
  "displaySize_raw": "6.4 inches, 100.5 cm<sup>2</sup> (~84.9% screen-to-body ratio)",
  "displayType_raw": "Super AMOLED",
  "gpu": "Mali-G71 MP2",
  "internal_raw": "32GB 3GB RAM, 64GB 4GB RAM, 128GB 4GB RAM",
  "mainCameraFeatures": "LED flash, panorama, HDR",
  "mainCameraSpecs_raw": "25 MP, f/1.7, 27mm (wide), PDAF<br>\n8 MP, f/2.2, 13mm (ultrawide), 1/4.0\", 1.12µm<br>\nAuxiliary lens",
  "mainVideoSpecs": "1080p@30fps",
  "selfieCameraFeatures": "",
  "selfieCameraSpecs_raw": "16 MP, f/2.0, 26mm (wide), 1/3.06\", 1.0µ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-a30s.jpg",
  "colors": [
    "Prism Crush Black",
    "Prism Crush White",
    "Prism Crush Green",
    "Prism Crush Violet2"
  ],
  "variants": [
    {
      "id": 504441,
      "model_number": "SM-A307F"
    },
    {
      "id": 504442,
      "model_number": "SM-A307FN"
    },
    {
      "id": 504443,
      "model_number": "SM-A307G"
    },
    {
      "id": 504444,
      "model_number": "SM-A307GN"
    },
    {
      "id": 504445,
      "model_number": "SM-A307GT"
    }
  ],
  "normalized_specs": {
    "id": 450988,
    "display": {
      "id": 450988,
      "size_inches": 6.4,
      "panel_type": "Super AMOLED",
      "refresh_rate_hz": 0,
      "peak_brightness_nits": 0,
      "protection_type": ""
    },
    "processor": {
      "id": 450988,
      "total_cores": 8,
      "max_clock_speed_ghz": 1.8
    },
    "memory_options": {
      "id": 450988,
      "available_ram_gb": [
        3,
        4
      ],
      "available_storage_gb": [
        32,
        64,
        128
      ],
      "has_card_slot": true,
      "storage_technology": "eMMC 5.1"
    },
    "battery_and_charging": {
      "id": 450988,
      "capacities_mah": [
        4000
      ],
      "max_wired_charging_w": 15,
      "has_wireless_charging": false
    },
    "cameras": {
      "id": 450988,
      "main_lenses_count": 2,
      "max_main_resolution_mp": 25,
      "selfie_lenses_count": 1
    },
    "physical": {
      "id": 450988,
      "height_mm": 158.5,
      "width_mm": 74.7,
      "thickness_mm": 7.8,
      "weight_g": 169,
      "build_materials": [
        "Glass front",
        "plastic back",
        "plastic frame"
      ],
      "sim_options": [
        "Nano-SIM"
      ],
      "ip_rating": "",
      "is_water_resistant": false
    },
    "sound": {
      "id": 450988,
      "has_stereo_speakers": false,
      "has_jack_35mm": true,
      "audio_quality_features": []
    },
    "connectivity": {
      "id": 450988,
      "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": 450988,
      "antutu_score": "",
      "geekbench_score": "",
      "measured_display_brightness_nits": 0,
      "measured_loudspeaker_lufs": 0,
      "measured_battery_active_use_hours": 0
    },
    "eu_label": {
      "id": 450988,
      "energy_class": "",
      "battery_endurance": "",
      "battery_endurance_hours": 0,
      "free_fall_class": "",
      "repairability_class": ""
    }
  }
}

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 &amp; 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": ""
    }
  }
}

More comparisons