Skip to main content

Wildberries Content API Client for Python

Project description

WB API Client

Python клиент для Wildberries Content API.

Установка

pip install wb-api-client

Использование

from wb_api_client import WildberriesAPIClient

# Создание клиента
client = WildberriesAPIClient(api_key="your-api-key")

# Получение категорий
categories = client.get_parent_categories()

# Получение товаров
cards = client.get_all_cards()

# Создание карточки
card_data = {
    "subjectID": 123,
    "variants": [{
        "title": "Название товара",
        "description": "Описание",
        "price": 1000,
        # ...
    }]
}
result = client.create_cards([card_data])

# Загрузка медиа
client.upload_media_file(nm_id=12345, photo_number=1, file_path="image.jpg")

Возможности

  • ✅ Аутентификация по API ключу
  • ✅ Rate limiting (автоматическое соблюдение лимитов)
  • ✅ Повторные запросы при ошибках
  • ✅ Все методы Content API v2/v3:
    • Категории и характеристики
    • CRUD карточек товаров
    • Управление медиа
    • Справочники (цвета, страны, бренды)
    • Генерация баркодов

Документация API

https://openapi.wildberries.ru/

Лицензия

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 Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

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

wb_api_client-1.0.0-py3-none-any.whl (6.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: wb_api_client-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 6.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.9

File hashes

Hashes for wb_api_client-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5179dbd5a1f1bbec6de7157810c5540a074f7555e8d9c0ba62f2c64c5b55208f
MD5 d723be0aeea4f2e2d584f9eea9521eed
BLAKE2b-256 32e45603de8366f70330bc6940ee6c0b585ced662b2cab9d1c7495afebe10713

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