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
| Parameter | Type | Description |
|---|---|---|
operationKey | string | Operation 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