The DropX catalog in your site, bot and CRM
Your server pulls products with your prices and stock per size, then every few minutes gets only what changed. Orders are not placed through the API.
{ "data": [ { "id": 1024, "sync_version": 48211, "status": "active", "product": { "id": 1024, "sku": "SKU-1024", "name": "Adidas Samba OG", "currency": "UAH", "cost_price": "2300.00", "price": "2990.00", "old_price": null, "in_stock": true, "total_stock": 17, "sizes": [ { "size": "40", "sku": "SKU-1024_40", "stock": 8, "in_stock": true, "cost_price": "2300.00", "price": "2990.00", "old_price": null }, { "size": "41", "sku": "SKU-1024_41", "stock": 5, "in_stock": true, "cost_price": "2300.00", "price": "2990.00", "old_price": null }, { "size": "44", "sku": "SKU-1024_44", "stock": 3, "in_stock": true, "cost_price": "2350.00", "price": "3055.00", "old_price": null }, { "size": "46", "sku": "SKU-1024_46", "stock": 1, "in_stock": true, "cost_price": "2400.00", "price": "3120.00", "old_price": null } ], "images": [ { "url": "https://…/00_main.jpg", "is_main": true } ] } }, { "id": 977, "sync_version": 48214, "status": "removed", "product": null } ], "meta": { "has_more": false, "next_cursor": "eyJ2Ijo0ODIxNH0", "pricing": { "price_calculation": "max", "markup_percent": "30", "discount_percent": null, "old_price_markup_percent": null } } }
- products per request
- 200
- requests per minute
- 60
- names and descriptions
- RU · UK
- minutes between syncs
- 5-15
What the API returns
One summary card per product: everything you need to sell it yourself.
Only changes
After the first export you get only products whose price, stock, photos or description changed, and the ones taken off sale.
Your prices
The cost price always comes back. Pass a markup and the API works out the retail and crossed-out price, for every size too.
Stock per size
How many of each size are left across all suppliers. One request checks 200 products.
Full product cards
Descriptions in Russian and Ukrainian, marketplace text, the whole gallery, brand, attributes, weight and dimensions.
The API has no names, contacts or prices of individual suppliers. Where to order a product is shown in the catalog on the site.
Connect in three steps
- 1
Create a key
On the Ultra plan, in your profile, "Public API" tab. Copy it right away: we won't show the key again. One key per account.
- 2
Send it in a header
X-API-Keyon every request from your server. - 3
Check the key
GET /mereturns your plan and limits. A 401 means the key was copied partly or revoked.
Sync your store with one request
Call /products/changes in a loop with a bookmark. Suppliers update about once an hour, so running every 5-15 minutes is enough for your site.
- 1
The first run returns the whole catalog, 200 products at a time.
- 2
Every response has a bookmark,
meta.next_cursor. Save it after every response, even an empty one. - 3
Every 5-15 minutes pass it in
cursor, and only changes come back. - 4
A product with
status: removedwas taken off sale. Remove it from your site.
import os import time import requests API = "https://api.dropx.site/v1" HEADERS = {"X-API-Key": os.environ["DROPX_API_KEY"]} MARKUP = 30 # price = cost_price + 30%; send the same value on every call def sync(cursor=None): """Apply every change since `cursor`; returns the cursor to store for the next run.""" while True: params = {"limit": 200, "markup_percent": MARKUP} if cursor: params["cursor"] = cursor response = requests.get(f"{API}/products/changes", headers=HEADERS, params=params, timeout=30) if response.status_code == 429: if response.json()["error"]["code"] == "daily_quota_exceeded": raise RuntimeError("Daily quota used up, the next run tomorrow will continue") time.sleep(int(response.headers.get("Retry-After", "5"))) continue response.raise_for_status() body = response.json() for change in body["data"]: if change["status"] == "removed": remove_product(change["id"]) # take it off your shop else: upsert_product(change["product"]) # create or update it cursor = body["meta"]["next_cursor"] save_cursor(cursor) # store it even when nothing changed if not body["meta"]["has_more"]: return cursor # Run every 5-15 minutes (cron, Celery, systemd timer): # sync(load_cursor())
Prices follow the request parameters
Export settings in your profile don't affect them. All amounts are in hryvnias; the applied parameters are in meta.pricing.
cost_price- Cost price
Always returned. Based on the suppliers that have the product in stock.
price- Retail price
Only present when markup_percent is passed, so a cost price never reaches your storefront by accident.
old_price- Crossed-out price
Set by discount_percent or old_price_markup_percent.
sizes[].price- Size price
Based only on the suppliers that have that size: size 40 can cost 2,300 UAH and size 46 2,400 UAH.
price_calculation- Which supplier to price from
When several suppliers have a product, the highest price (max) is used by default so you never sell at a loss. You can pick min or avg.
Send the same price parameters on every sync request. If you change the markup, the API answers pricing_changed: start the export again without cursor and all prices are recalculated.
Limits and errors
The headers X-RateLimit-Remaining (per minute) and X-Quota-Remaining (per day) show how many requests are left.
Limits
- Requests per minute per key
- 60
- Requests at a time
- 3
- Requests per day per account
- 10 000
- Products per page
- 200
- Products per /stock request
- 200
Error codes
- 401
invalid_api_keyThe key is missing, copied partly or revoked - 403
plan_requiredYour plan has no API access or Ultra has expired - 404
not_foundThe product doesn't exist, was taken off sale, or the URL is wrong - 405
method_not_allowedThe API accepts GET requests only - 422
validation_errorA parameter is wrong; details says which - 422
invalid_cursorThe bookmark is broken; start the export again without cursor - 422
pricing_changedThe price parameters differ from the ones the sync started with - 429
rate_limitedToo many requests; wait Retry-After seconds - 429
daily_quota_exceededThe daily quota is used up; wait Retry-After seconds
An error always looks like {"error": {"code", "message", "request_id"}}. Send support the request_id.
Three rules
Only from your server
The API won't answer a browser: a key in the page code would be visible to every visitor.
Keep products on your side
Store the catalog in your own database and don't call the API every time a customer opens a page.
One key per account
If the key leaks, reissue it in your profile and the old one stops working at once.
Connect the catalog to your store
The reference has every request and field with examples, and you can send any request right from it. The OpenAPI file opens in Postman and Insomnia and can generate a client in your language.
Version v1. New fields are added to this same version, so just skip fields you don't know. Removing or renaming anything only happens in v2: the old version then keeps working for at least 6 months, and we'll warn you in advance.