Webhook logo
Apify logo

Workflow template

Read Apify dataset items from a webhook

Read up to ten records from an existing Apify dataset when your webhook receives its dataset_id. Fetch the first page as JSON without starting an Actor; adjust the prepared offset to read another page.

How it works

From a dataset ID in a webhook to a JSON page

1 Trigger · 1 Action
Webhook1 · Trigger

Web request

Receive a JSON request at the workflow's generated webhook URL. The request supplies dataset_id for an existing dataset accessible through your connected Apify account.

Apify2 · Action

Read Apify dataset items from a webhook

Read datasetId from the request and fetch items with limit 10, offset 0 and format json. This reads one page only; it does not start an Actor or automatically request subsequent pages.

The result

The first JSON page from your existing dataset

The action output contains up to ten dataset records. Their fields come from that dataset; the example below shows the webhook request that selects it, not a fixed result schema.

Example dataset-read webhook JSON

{ "dataset_id": "YOUR_DATASET_ID" }

Replace the placeholder with your own accessible dataset ID. The prepared action uses limit 10 and offset 0. Inspect its action output for the records; a dataset with fewer items returns fewer records.

Before activation

Set up your workflow

  1. Choose an existing Apify dataset

    Connect Apify and identify an existing dataset that the account can read. Use a small dataset containing fictional records for your first check; this recipe does not create a dataset or run an Actor.

  2. Prepare the webhook JSON and page settings

    Copy the workflow's generated webhook URL for your sender and provide dataset_id as shown. Keep limit 10, offset 0 and JSON format for the first page. Protect the URL and review who is allowed to request your dataset reads.

  3. Inspect one page, then configure any further reads

    Activate and send a request with your own test dataset ID. Compare the action output with that dataset. For a following page, change the action's offset, for example to 10; no loop or automatic pagination is prepared.

Details and limitations
  • This reads data without running an Actor. The action reads an existing dataset accessible to the connected account. It does not start a scraping run, write records, send a notification or export them to another app.

  • One request reads one configured page. limit is 10 and offset is 0. The body maps only dataset_id; adding offset to incoming JSON does not override the action's constant offset. Edit that field or add your own pagination logic for additional pages.

  • Record structure belongs to the dataset. The template does not prescribe record columns or transform their content. Inspect the action output for the actual JSON records. It does not wait for a separate Actor to finish populating the dataset.

Questions about this template

Does reading the dataset start an Actor?

No. It reads records from an existing dataset accessible to your connected Apify account. Actor execution, dataset creation and writing records are not part of this recipe.

What JSON should the webhook receive?

Send dataset_id with your own dataset ID, replacing YOUR_DATASET_ID in the example. The prepared mapping uses that value as datasetId in the Apify action.

Will it return every record automatically?

No. It requests one JSON page with limit 10 and offset 0. Change the action's offset to read another page; incoming offset fields do not override the prepared constant and no pagination loop is included.

What fields will the returned records contain?

Their fields are defined by your dataset, not this template. Inspect the action output for the actual records. The example on this page is the incoming request, and the workflow does not wait for an Actor to finish producing data.

Explore connected apps

App integrations