epicstore_api
An unofficial library to work with Epic Games Store Web API.
Installing
Python 3.6 or higher is required
To install the library you can just run the following command:
# Linux/macOS
python3 -m pip install -U epicstore_api
# Windows
py -3 -m pip install -U epicstore_api
Quick Example
api = EpicGamesStoreAPI()
namespace, slug = next(iter(api.get_product_mapping().items()))
first_product = api.get_product(slug)
offers = [
OfferData(page['namespace'], page['offer']['id'])
for page in first_product['pages']
if page.get('offer') and 'id' in page['offer']
]
offers_data = api.get_offers_data(*offers)
for offer_data in offers_data:
data = offer_data['data']['Catalog']['catalogOffer']
developer_name = ''
for custom_attribute in data['customAttributes']:
if custom_attribute['key'] == 'developerName':
developer_name = custom_attribute['value']
print('Offer ID:', data['id'], '\nDeveloper Name:', developer_name)
You can find more examples in the examples directory.
Contributing
Feel free to contribute by creating PRs and sending your issues
Links
Metadata
Release files for epicstore-api 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| epicstore_api-0.2.0-py3-none-any.whl | Python 3 | none | any | Details |
Release files / epicstore_api-0.2.0-py3-none-any.whl
| Download URL | epicstore_api-0.2.0-py3-none-any.whl |
|---|---|
| Size | 18.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
953225ef9f73d7486e27e8e3d332c29a5a1a4dbdabf98b46d8c4ad2fa3a173c9
|
|
BLAKE2b-256 checksum How to use checksums |
11c14913a1ed4c45fbf0f4683a8e57ad4e91fa75c5f6c9e3fbe70f5184f6446e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.0
|