EK Clothes (ekclothes.ru) · Public API v1 & Agent Integration
EK Clothes API Documentation (ekclothes)
Free, self-serve, read-only HTTP JSON API for ek / EK Clothes (ekclothes.ru), a Moscow-based avant-garde clothing brand. Agents and developers can query the live catalog with cursor pagination, execute bulk queries via POST /api/v1/batch, inspect garment details, and negotiate Markdown representations without an API key or sales form.
Machine-Readable Discovery
- OpenAPI 3.1 Specification (/openapi.json) — Complete typed OpenAPI 3.1.0 schema for /api/v1 with unique operationIds, typed input schemas, cursor pagination, and batch operations.
- RFC 9727 API Catalog (/.well-known/api-catalog) — Standard linkset+json manifest with item entries linking the OpenAPI spec, documentation, and v1 API anchors.
- EK Clothes MCP Server (/mcp) — Stateless read-only Streamable HTTP MCP server (JSON-RPC 2.0) exposing catalog, product, store, and API docs tools.
- EK Clothes CLI (/en/cli) — Official zero-dependency Node.js CLI (ekclothes) with structured --json output for scripting and agents.
- llms.txt & llms-full.txt — Concise brand summary, shipping and return terms, key routes, and API pointers; full bilingual garment dossier at /llms-full.txt.
- XML Sitemap — Indexable public pages, active categories, and published product URLs in Russian and English.
- Commercial Product Feeds (Google XML & Yandex YML) — Structured XML product catalog feeds priced in RUB (/api/feeds/google.xml and /api/feeds/yandex.yml).
Free Tier, Self-Serve Access & Read-Only Sandbox
The EK Clothes Public Storefront API is 100% free with zero paid tiers, zero signup walls, zero API-key gate, and zero contact-sales forms. Any agent can integrate immediately using /openapi.json and /.well-known/api-catalog. Because every documented /api/v1/* endpoint is strictly read-only and side-effect-free, agents can test, replay, and validate requests safely as a live read-only sandbox without risking order mutations.
Versioning & Deprecation Policy
Stable REST endpoints use major-version URL paths under /api/v1 and accept an optional `API-Version: 1` request header (every response echoes `API-Version: 1`). Breaking changes require a new major path (/api/v2). Deprecations are announced at least 90 days in advance via RFC 9745 `Deprecation` headers, RFC 8594 `Sunset` headers, and `Link; rel="deprecation"` references to this policy. Unversioned `/api/*` paths remain active as compatibility aliases with no scheduled sunset.
Rate Limits & IETF RateLimit Headers
Per-IP sliding-window quotas protect availability: 60 requests per 60 seconds on catalog, product, and readiness endpoints; 30 requests per 60 seconds on POST /api/v1/batch, store settings, and free-shipping threshold. Every rate-limited response returns live IETF `RateLimit-Policy`, `RateLimit`, `RateLimit-Limit`, `RateLimit-Remaining`, and `RateLimit-Reset` headers so agents can self-throttle in real time. Exhausting a quota returns HTTP 429 with `Retry-After` and an RFC 9457 error payload.
Cursor-Based Pagination
List endpoints (`GET /api/v1/catalog/stream`) return a consistent `pagination` object containing `hasMore`, `nextCursor`, and `previousCursor` alongside `currentPage`, `pageSize`, `total`, and `totalPages`. Pass `pagination.nextCursor` into the `cursor` query parameter to fetch the next page; invalid cursors return HTTP 400 (`code: invalid_cursor`).
{
"currentPage": 1,
"pageSize": 12,
"total": 24,
"totalPages": 2,
"hasMore": true,
"nextCursor": "eyJwIjoyfQ",
"previousCursor": null
}Public v1 Endpoints
GET/api/v1/catalog/stream
listCatalogProducts · 60 req / 60sReturns cursor-paginated published EK clothing products and active categories. Supports `cursor`, `page`/`pageSize`, locale selection, full-text search, category, gender, size, color, fit, trouser rise, availability, price range, and sorting.
Parameters
API-Version("1" (header), optional): Optional API major version pin (defaults to 1).locale("ru" | "en", optional): Language for product and category labels (defaults to ru).cursor / page / pageSize(string / integer, optional): Opaque cursor from pagination.nextCursor (preferred over page), 1-based page fallback (1..500), and page size (1..48, defaults to 24).category / gender / q(string, optional): Category slug, department (Men, Women, Unisex), or search term.size / color / fit / rise / availability(string, optional): Garment filters for sizes, colors, silhouette fit, rise, and stock status.minPrice / maxPrice / sort(string, optional): RUB price bounds and sort order (newest, price-asc, price-desc, featured).
curl -sS -i "https://ekclothes.ru/api/v1/catalog/stream?locale=en&pageSize=12"POST/api/v1/batch
executeBatchOperations · 30 req / 60sAccepts a JSON `operations` array (1 to 10 read-only operations: listCatalogProducts, getProductBySlug, getStoreSettings, getFreeShippingThreshold, getHealthStatus) and returns an ordered `results` array with per-operation HTTP statuses and payloads.
Parameters
API-Version("1" (header), optional): Optional API major version pin (defaults to 1).operations(BatchOperationItem[] (body), required): 1 to 10 read-only operations within a 16 KiB JSON request body.
curl -sS -X POST "https://ekclothes.ru/api/v1/batch" -H "Content-Type: application/json" -d '{"operations":[{"id":"settings","operation":"getStoreSettings"},{"id":"shipping","operation":"getFreeShippingThreshold"}]}'GET/api/v1/products/{slug}
getProductBySlug · 60 req / 60sReturns customer-facing product details including localized copy, materials, care instructions, images, sizes, colors, and public variants (internal stock quantities and back-office fields are stripped).
Parameters
API-Version("1" (header), optional): Optional API major version pin (defaults to 1).slug(string (path), required): URL-safe product slug (for example `trench-oliva`).
curl -sS -i "https://ekclothes.ru/api/v1/products/trench-oliva"GET/api/v1/products?ids=...
getProductsByIds · 60 req / 60sRetrieves up to 50 published products matching a comma-separated list of product IDs.
Parameters
API-Version("1" (header), optional): Optional API major version pin (defaults to 1).ids(string (query), required): 1 to 50 comma-separated product identifiers.
curl -sS "https://ekclothes.ru/api/v1/products?ids=id1,id2"GET/api/v1/store-settings
getStoreSettings · 30 req / 60sReturns the storefront name and public support contact email.
Parameters
API-Version("1" (header), optional): Optional API major version pin (defaults to 1).
curl -sS -i "https://ekclothes.ru/api/v1/store-settings"GET/api/v1/shipping/free-threshold
getFreeShippingThreshold · 30 req / 60sReturns the minimum order total in RUB for complimentary CDEK delivery.
Parameters
API-Version("1" (header), optional): Optional API major version pin (defaults to 1).
curl -sS -i "https://ekclothes.ru/api/v1/shipping/free-threshold"GET/api/v1/health
getHealthStatus · UnthrottledConfirms the storefront application process responds over HTTP.
Parameters
API-Version("1" (header), optional): Optional API major version pin (defaults to 1).
curl -sS "https://ekclothes.ru/api/v1/health"GET/api/v1/health/ready
getReadinessStatus · 60 req / 60sProbes PostgreSQL and Redis connectivity. Returns 200 when ready and 503 when a required dependency is unavailable.
Parameters
API-Version("1" (header), optional): Optional API major version pin (defaults to 1).
curl -sS -i "https://ekclothes.ru/api/v1/health/ready"Markdown Content Negotiation (Accept: text/markdown)
Public storefront pages on ekclothes.ru (homepage, catalog, product detail pages, documentation, and editorial pages) honor Accept: text/markdown and respond with Content-Type: text/markdown; charset=utf-8 and Vary: Accept. Standard browser requests (Accept: text/html) continue receiving HTML with Vary: Accept. Nonexistent paths requested with Accept: text/markdown return HTTP 404 with a Markdown error explanation and discovery links.
curl -sS -L -i -H "Accept: text/markdown" "https://ekclothes.ru/"Structured JSON Errors (RFC 9457)
All public API errors — including unmatched /api/* paths, malformed cursors, unsupported API-Version headers, invalid batch payloads, missing products, and 429 rate limits — return application/problem+json containing a stable code, error summary, detailed message, and actionable resolution hint.
{
"type": "https://ekclothes.ru/en/docs#errors",
"title": "Product not found",
"status": 404,
"code": "product_not_found",
"error": "Product not found",
"message": "No published product matches slug 'unknown-item'.",
"detail": "No published product matches slug 'unknown-item'.",
"resolution": "List available products via GET /api/v1/catalog/stream and retry with a valid product slug.",
"docs": "https://ekclothes.ru/en/docs",
"instance": "/api/v1/products/unknown-item"
}