Go to example tasks

Call a JSON REST API with a bearer token

Send GET requests to a REST API you are authorized to use, with your API key in an encrypted secret field sent as an Authorization: Bearer header. List the endpoint URLs and get one dataset record per URL with status, headers and the parsed JSON body. Add your own key after you duplicate the task; no key is stored in this task.

Try for free
HTTP API Request Runner
HTTP API Request Runnerluxe_tasks/http-runner
#
URL
Status
HTTP
+10 fields
Text
Number
Boolean
List
Object

Input

Request URLs(required):https://httpbin.org/get
HTTP method:GET
API key placement:bearer
Response body format:json

Output fields

#
URL
Status
HTTP
Ok
Charged
Charged events
Method
Status
Content type
Bytes
Request ms
Final url
Error

How it works

Sign up on Apify or log in

The HTTP API Request Runner Actor is ready to run with the inputs already set for "Call a JSON REST API with a bearer token". Sign up or log in and you'll land in Apify Console with a copy of this exact task.

Start the "Call a JSON REST API with a bearer token" task

The HTTP API Request Runner Actor will start running based on the input automatically. You can also change all the input fields, like request urls, HTTP method, and more, to match your specific use case.

Receive the "Call a JSON REST API with a bearer token" output

Monitor the progress in real time. You will be notified as soon as your dataset is complete and ready for review. Each result includes data such as #, URL, status, and more.

Integrate into your workflow

The final output is delivered in JSON, CSV, or Excel format, ready to be plugged into your workflow. You can also run the "Call a JSON REST API with a bearer token" task via API.

Image

Integrate "Call a JSON REST API with a bearer token" into your workflow

Connect "Call a JSON REST API with a bearer token" with 100+ integrations, or run it via API or MCP.

Webhook

Webhook

n8n

n8n

Make

Make

Zapier

Zapier

Airbyte

Airbyte

Keboola

Keboola

IFTTT

IFTTT

Hubspot

Hubspot

GDrive

GDrive

Gmail

Gmail

Apify MCP

Apify MCP

GitHub

GitHub

Slack

Slack

LangChain

LangChain

LlamaIndex

LlamaIndex

Flowise

Flowise

Pinecone

Pinecone

OpenAI

OpenAI

Mastra

Mastra

Clay

Clay

Frequently asked questions

In the Call a JSON REST API with a bearer token task, paste the key into the API key (secret) field; it is an encrypted Apify secret input that is never logged or returned.

The Call a JSON REST API with a bearer token task costs $2 per 1,000 requests answered 2xx or 3xx plus a start fee of $0.005 per run at the default 1 GB of memory; failed requests have no per-request charge.

You must not. The Call a JSON REST API with a bearer token task is only for APIs and accounts you own or are authorized to use, under the API's terms.