Skip to main content

Python client for the Apple Device Specs API by LorisLabs

Project description

apple-device-specs

Python client for the Apple Device Specs API by LorisLabs — detailed specs, feature badges, pricing, and depreciation estimates for every Apple device.

Install

pip install apple-device-specs

Quick start

from apple_device_specs import AppleDeviceAPI

# Initialize with your API key (omit for free-tier access)
client = AppleDeviceAPI(api_key="your_api_key_here")

# Look up a device by hardware identifier
device = client.get_device("iPhone16,1")
print(device["name"])          # iPhone 15 Pro
print(device["chip"])          # A17 Pro
print(device["released"])      # 2023-09-22

# Search by name
results = client.search("MacBook Pro 14")
for d in results["devices"]:
    print(d["identifier"], d["name"])

# List all iPhones (paginated)
page = client.list_devices(category="iPhone", page=1, limit=20)

# Get feature badges for a device
features = client.get_features("iPhone16,1")
print(features["features"])    # ["USB-C", "MagSafe", "Face ID", "5G", ...]

# Get current depreciation estimate
value = client.get_value("iPhone16,1")
print(value["estimatedValue"])

# Get pricing across storefronts
pricing = client.get_pricing("iPhone16,1", storefront=["US", "GB", "FR"])

# API stats
stats = client.get_stats()
print(stats["deviceCount"])

# Use as a context manager — connection closes automatically
with AppleDeviceAPI(api_key="your_api_key_here") as api:
    mac = api.get_device("Mac14,5")
    print(mac["name"])

Pricing

Tier Price Rate limit
Free $0 100 req/day
Pro $9.99/mo 10,000 req/day
Business $49.99/mo 100,000 req/day

Get an API key at api.lorislab.fr/docs/#pricing.

Docs

Full API reference: api.lorislab.fr/docs/

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

apple_device_specs-1.0.0.tar.gz (2.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

apple_device_specs-1.0.0-py3-none-any.whl (3.1 kB view details)

Uploaded Python 3

File details

Details for the file apple_device_specs-1.0.0.tar.gz.

File metadata

  • Download URL: apple_device_specs-1.0.0.tar.gz
  • Upload date:
  • Size: 2.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for apple_device_specs-1.0.0.tar.gz
Algorithm Hash digest
SHA256 b3e2cd8889054c07297a35cf4988d59f31cba6c9169da472443e5876006b1be1
MD5 6dd66ae406c5e54ad58302bec6565ec4
BLAKE2b-256 765a444d9863e8c49a3ae289ebd9f008d0b5952668a461a0f8cb6eb9c0f48049

See more details on using hashes here.

File details

Details for the file apple_device_specs-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for apple_device_specs-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a1cd3670820ff8c139620b24b52d5103690d0864811f5631fb5c31e9b0cce887
MD5 cfd5d92b33488dbba0f3d1d35bd9fdbd
BLAKE2b-256 435791f80e5ea9c87c3723ad5950156b72fdc679435c98a284cb9021a71ac358

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page