Skip to main content

Overview

ApifyCloud APIs use Bearer tokens. You can obtain a token using the OAuth client credentials flow.

Step 1: Prepare credentials

You need your client_id and client_secret.

Step 2: Request a token

Send a POST request to /oauth/token with the client_credentials grant type.

Step 3: Use the token

Add the token to the Authorization header in subsequent requests:

Token lifetime

The response includes expires_in (in seconds). Request a new token when it expires.