# ResourceClient<!-- -->

Base class for synchronous resource clients.

### Hierarchy

* [ResourceClientBase](https://docs.apify.com/api/client/python/reference/class/ResourceClientBase.md)

  * *ResourceClient*

    * [ActorClient](https://docs.apify.com/api/client/python/reference/class/ActorClient.md)
    * [ActorCollectionClient](https://docs.apify.com/api/client/python/reference/class/ActorCollectionClient.md)
    * [ActorEnvVarClient](https://docs.apify.com/api/client/python/reference/class/ActorEnvVarClient.md)
    * [ActorEnvVarCollectionClient](https://docs.apify.com/api/client/python/reference/class/ActorEnvVarCollectionClient.md)
    * [ActorServerClient](https://docs.apify.com/api/client/python/reference/class/ActorServerClient.md)
    * [ActorVersionClient](https://docs.apify.com/api/client/python/reference/class/ActorVersionClient.md)
    * [ActorVersionCollectionClient](https://docs.apify.com/api/client/python/reference/class/ActorVersionCollectionClient.md)
    * [BuildClient](https://docs.apify.com/api/client/python/reference/class/BuildClient.md)
    * [BuildCollectionClient](https://docs.apify.com/api/client/python/reference/class/BuildCollectionClient.md)
    * [DatasetClient](https://docs.apify.com/api/client/python/reference/class/DatasetClient.md)
    * [DatasetCollectionClient](https://docs.apify.com/api/client/python/reference/class/DatasetCollectionClient.md)
    * [KeyValueStoreClient](https://docs.apify.com/api/client/python/reference/class/KeyValueStoreClient.md)
    * [KeyValueStoreCollectionClient](https://docs.apify.com/api/client/python/reference/class/KeyValueStoreCollectionClient.md)
    * [LogClient](https://docs.apify.com/api/client/python/reference/class/LogClient.md)
    * [RequestQueueClient](https://docs.apify.com/api/client/python/reference/class/RequestQueueClient.md)
    * [RequestQueueCollectionClient](https://docs.apify.com/api/client/python/reference/class/RequestQueueCollectionClient.md)
    * [RunClient](https://docs.apify.com/api/client/python/reference/class/RunClient.md)
    * [RunCollectionClient](https://docs.apify.com/api/client/python/reference/class/RunCollectionClient.md)
    * [ScheduleClient](https://docs.apify.com/api/client/python/reference/class/ScheduleClient.md)
    * [ScheduleCollectionClient](https://docs.apify.com/api/client/python/reference/class/ScheduleCollectionClient.md)
    * [StoreCollectionClient](https://docs.apify.com/api/client/python/reference/class/StoreCollectionClient.md)
    * [TaskClient](https://docs.apify.com/api/client/python/reference/class/TaskClient.md)
    * [TaskCollectionClient](https://docs.apify.com/api/client/python/reference/class/TaskCollectionClient.md)
    * [UserClient](https://docs.apify.com/api/client/python/reference/class/UserClient.md)
    * [WebhookClient](https://docs.apify.com/api/client/python/reference/class/WebhookClient.md)
    * [WebhookCollectionClient](https://docs.apify.com/api/client/python/reference/class/WebhookCollectionClient.md)
    * [WebhookDispatchClient](https://docs.apify.com/api/client/python/reference/class/WebhookDispatchClient.md)
    * [WebhookDispatchCollectionClient](https://docs.apify.com/api/client/python/reference/class/WebhookDispatchCollectionClient.md)

## Index[](#Index)

### Methods

* [\_\_init\_\_](https://docs.apify.com/api/client/python/reference/class/ResourceClient.md#__init__)

### Properties

* [resource_id](https://docs.apify.com/api/client/python/reference/class/ResourceClient.md#resource_id)

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

### [](#__init__)\_\_init\_\_

* **\_\_init\_\_**(\*, base_url, public_base_url, http_client, resource_path, client_registry, resource_id, params, api_base_url): None

- Overrides [ResourceClient.\_\_init\_\_](https://docs.apify.com/api/client/python/reference/class/ResourceClient.md#__init__)

  Initialize the resource client.

  ***

  #### Parameters

  * ##### keyword-onlybase_url: str

    API base URL.

  * ##### keyword-onlypublic_base_url: str

    Public CDN base URL.

  * ##### keyword-onlyhttp_client: [HttpClient](https://docs.apify.com/api/client/python/reference/class/HttpClient.md)

    HTTP client for making requests.

  * ##### keyword-onlyresource_path: str

    Resource endpoint path (e.g., 'actors', 'datasets').

  * ##### keyword-onlyclient_registry: [ClientRegistry](https://docs.apify.com/api/client/python/reference/class/ClientRegistry.md)

    Bundle of client classes for dependency injection.

  * ##### optionalkeyword-onlyresource_id: str | None = <!-- -->None

    Optional resource ID for single-resource clients.

  * ##### optionalkeyword-onlyparams: [QueryParams](https://docs.apify.com/api/client/python/reference.md#QueryParams) | None = <!-- -->None

    Optional default parameters for all requests.

  * ##### optionalkeyword-onlyapi_base_url: str | None = <!-- -->None

    Base URL of the API itself, for clients of top-level resources. Defaults to `base_url`.

  #### Returns None

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

### [](#resource_id)resource_id

resource_id: str | None

Inherited from [ResourceClientBase.resource_id](https://docs.apify.com/api/client/python/reference/class/ResourceClientBase.md#resource_id)

Get the resource ID.
