# ApifyClientCustomHttpClientOptions<!-- -->

Configuration options for [ApifyClient.withCustomHttpClient](https://docs.apify.com/api/client/js/reference/class/ApifyClient.md#withCustomHttpClient). Retries, timeouts and headers are configured on the HTTP client itself.

## Index[](#Index)

### Properties

* [baseUrl](#baseUrl)
* [httpClient](#httpClient)
* [publicBaseUrl](#publicBaseUrl)
* [token](#token)

## Properties<!-- -->[](#Properties)

### [](#baseUrl)[](https://github.com/apify/apify-client-js/blob/af7590882995a0bde27cc341c79f21d08bec1e56/src/apify_client.ts#L769)optionalbaseUrl

baseUrl?

<!-- -->

: string = https\://api.apify.com

URL of the Apify API, with or without the `/v2` version path, which is appended when missing.

### [](#httpClient)[](https://github.com/apify/apify-client-js/blob/af7590882995a0bde27cc341c79f21d08bec1e56/src/apify_client.ts#L779)httpClient

httpClient: [HttpClient](https://docs.apify.com/api/client/js/reference/class/HttpClient.md)

The HTTP client to send the requests through.

### [](#publicBaseUrl)[](https://github.com/apify/apify-client-js/blob/af7590882995a0bde27cc341c79f21d08bec1e56/src/apify_client.ts#L775)optionalpublicBaseUrl

publicBaseUrl?

<!-- -->

: string = https\://api.apify.com

Publicly accessible URL of the Apify API, used in the URLs the client generates. Like `baseUrl`, with or without the `/v2` version path.

### [](#token)[](https://github.com/apify/apify-client-js/blob/af7590882995a0bde27cc341c79f21d08bec1e56/src/apify_client.ts#L777)optionaltoken

token?

<!-- -->

: string

Set as the HTTP client's `Authorization` header, unless it already has one.
