Skip to content

Wildberries API TypeScript SDK / getOperationRateLimitKey

Function: getOperationRateLimitKey()

ts
function getOperationRateLimitKey(operationKey: string): string | undefined;

Defined in: config/operation-metadata.ts:3239

Get the rate limit key for an operation

Parameters

ParameterTypeDescription
operationKeystringOperation key in format '{module}.{methodName}'

Returns

string | undefined

The rate limit key, or undefined if operation not found

Example

typescript
import { getOperationRateLimitKey, productsRateLimits } from 'daytona-wildberries-typescript-sdk';

const rateLimitKey = getOperationRateLimitKey('products.getParentAll');
// Returns 'products.contentObjectParentAll'

const config = productsRateLimits[rateLimitKey!];
console.log(config.requestsPerMinute); // 100

Made with ❤️ for the Wildberries developer community