@ipregistry/client
    Preparing search index...

    Interface IpregistryClientOptions

    Configuration options for constructing an IpregistryClient.

    interface IpregistryClientOptions {
        apiKey: string;
        baseUrl?: string;
        batchConcurrency?: number;
        cache?: IpregistryCache<IpregistryCacheValue>;
        maxBatchSize?: number;
        maxRetries?: number;
        requestHandler?: IpregistryRequestHandler;
        retryInterval?: number;
        retryOnServerError?: boolean;
        retryOnTooManyRequests?: boolean;
        timeout?: number;
    }
    Index

    Properties

    apiKey: string

    The API key used for authenticating requests to Ipregistry.

    baseUrl?: string

    The base URL of the Ipregistry API, or the shorthand 'eu' for the European Union endpoint. Defaults to 'https://api.ipregistry.co'.

    batchConcurrency?: number

    How many batch sub-requests are dispatched concurrently when a batch is split into chunks. Defaults to 4.

    The cache used to memoize lookups. Defaults to NoCache.

    maxBatchSize?: number

    The maximum number of values sent in a single batch request. Capped at DEFAULT_MAX_BATCH_SIZE (the API limit).

    maxRetries?: number

    The maximum number of automatic retries performed in addition to the initial attempt. Defaults to 3. Use 0 to disable retries.

    requestHandler?: IpregistryRequestHandler

    A custom handler for API requests.

    retryInterval?: number

    The base backoff (in milliseconds) between retries. Defaults to 1000.

    retryOnServerError?: boolean

    Whether 5xx responses (and transient network errors) are retried. Defaults to true.

    retryOnTooManyRequests?: boolean

    Whether 429 Too Many Requests responses are retried, honoring the Retry-After header when present. Defaults to false.

    timeout?: number

    The timeout (in milliseconds) for API requests. Defaults to 5000.