Skip to content

spireuz/uzum-statistics

Repository files navigation

Uzum Trends API

This project aims to give an example of integrating applications into Uzum API. This is not an official API, so it is not recommended for production usage. NOTICE: Some of the APIs or variables could have been changed in Uzum API. Please, check out uzum.uz

REST API Integration

Base URL

https://api.umarket.uz/api

Headers

- Authorization: Bearer AUTH_TOKEN
- Accept-Language: uz-UZ
- Accept: application/json

Endpoints

GET /main/city
GET /main/cities
GET /v2/delivery/min-free-price?cityId=
GET /main/delivery?cityId=
GET /main/root-categories
GET /shop/{shopName}
GET /v2/product/{productId}
GET /product/{productId}/reviews
GET /v2/product/{productId}/similar

GraphQL Integration

Base URL

https://graphql.umarket.uz

Headers

- Authorization: Bearer AUTH_TOKEN
- X-Iid: X_IID
- Accept-Language: uz-UZ
- Accept: application/json

Endpoints

POST /

Checkout the Code to see query example for Product Search

Variables used in the doc

You need to update these periodically by opening uzum.uz website and checking the response headers in the Network tab

AUTH_TOKEN=eyJraWQiOiIwcE9oTDBBVXlWSXF1V0w1U29NZTdzcVNhS2FqYzYzV1N5THZYb0ZhWXRNIiwiYWxnIjoiRWREU0EiLCJ0eXAiOiJKV1QifQ.eyJpc3MiOiJVenVtIElEIiwiaWF0IjoxNzA5MTQyMjI5LCJzdWIiOiJjYmMyZTcyYi0zM2MyLTQ5NzQtODBhNS1kZGE1YTA2YzBhOTQiLCJhdWQiOlsidXp1bV9hcHBzIiwibWFya2V0L3dlYiJdLCJldmVudHMiOnt9LCJleHAiOjE3MDkxNDI5NDl9.ozeWufT9AZkJwKph2DotkwooT8YzDSPKdEtYBxpOSqTnzxFanGv1-6eNjph49XRq9v04MH8s5VsRqI71KeYrDA
X_IID=7c56d8ee-6c57-4d14-9c81-c89fd734698a