---
id: access-apify-api
title: Accessing Apify API
description: Use the built-in Apify API client to access platform features not covered by the SDK.
---

import RunnableCodeBlock from '@site/src/components/RunnableCodeBlock';

import ApiLink from '@theme/ApiLink';
import ActorClientExample from '!!raw-loader!roa-loader!./code/08_actor_client.py';
import ActorNewClientExample from '!!raw-loader!roa-loader!./code/08_actor_new_client.py';

The Apify SDK provides a built-in instance of the [Apify API Client](https://docs.apify.com/api/client/python) for accessing Apify platform features beyond what the SDK covers directly.

## Actor client

To access the provided instance of [`ApifyClientAsync`](https://docs.apify.com/api/client/python/reference/class/ApifyClientAsync), you can use the <ApiLink to="class/Actor#apify_client">`Actor.apify_client`</ApiLink> property.

For example, to get the details of your user, you can use this snippet:

<RunnableCodeBlock className="language-python" language="python">
    {ActorClientExample}
</RunnableCodeBlock>

## Actor new client

If you want to create a completely new instance of the client, for example, to get a client for a different user or change the configuration of the client, you can use the <ApiLink to="class/Actor#new_client">`Actor.new_client`</ApiLink> method:

<RunnableCodeBlock className="language-python" language="python">
    {ActorNewClientExample}
</RunnableCodeBlock>

For the full API client documentation, see the [Apify API Client for Python](https://docs.apify.com/api/client/python).
