Skip to content
Maua.Culturewire

Apify

Web scrapers and automations (actors): run and collect data

AI and machine learningCatalog2 tools · 0 triggers

Managed auth

Authentication

Methods your end users can connect with. Credentials are stored encrypted, and secret values are never shown again or returned by the API.

  • API key

    Your users enter

    • Personal API token (apify_api_…)SecretRequired

    Where to find them

    1. Create an account at apify.com: the free plan includes 5 USD of usage per month.
    2. At console.apify.com → “Settings” → “API & Integrations” copy the “Personal API token” or create another one, which you can limit to certain actors and data. Each run uses credits according to compute time and, for some actors, the number of results.

    Get credentials (opens in a new tab)

Tools (2)

  • Apify API requestAPIFY_SEND_REQUEST

    Authenticated call to the Apify API (https://api.apify.com/v2). Any endpoint of the API is allowed. Actors are given as user~name (e.g. apify~website-content-crawler) or by their ID. Examples: GET /store?search=google maps&limit=10 (search public actors), GET /acts?my=true, GET /acts/{actor}, POST /acts/{actor}/runs {input} (asynchronous: returns data.id and data.defaultDatasetId), GET /actor-runs/{run_id} (status READY, RUNNING, SUCCEEDED, FAILED…), GET /actor-runs/{run_id}/dataset/items?clean=true&limit=100, GET /datasets/{dataset_id}/items?clean=true&format=json&limit=100, GET /actor-tasks, POST /actor-tasks/{task}/run-sync-get-dataset-items, GET /key-value-stores/{store_id}/records/OUTPUT, GET /users/me/limits (usage for the cycle and limits), GET /users/me/usage/monthly. To run and collect the data in a single call, use APIFY_RUN_ACTOR.

    Required scopes

    No scopes required

    Input

    Apify API request input
    NameTypeDescription
    methodstringHTTP methodOne of: GET, POST, PUT, PATCH, DELETEDefault: "GET"
    pathrequiredstringPath relative to the API base URL, or a full URL on the same API (e.g. a next-page link)
    queryobjectQuery string parameters
    bodyunknownJSON body
    formobjectBody as application/x-www-form-urlencoded instead of JSON
    body_base64stringBinary body, base64 (at most 960000 characters)
    content_typestringContent-Type of body_base64
    headersobjectExtra headers such as Accept. Authentication is added automatically.
  • Run an actor and get its dataAPIFY_RUN_ACTOR

    Run an Apify actor (scraper or automation: Google Maps, social networks, websites…) with the given input, wait for it to finish (up to 5 minutes) and return the items of its dataset. Uses Apify credits depending on the actor; for long runs use POST /acts/{actor}/runs with APIFY_SEND_REQUEST.

    Required scopes

    No scopes required

    Input

    Run an actor and get its data input
    NameTypeDescription
    actorrequiredstringActor: user/name (e.g. apify/website-content-crawler or compass/crawler-google-places) or its ID
    inputobjectJSON input for the actor (see its “Input” tab at apify.com/store)Default: {}
    max_itemsintegerMaximum number of items returned (and charged for pay-per-result actors)Default: 50
    fieldsstring[]Return only these fields of each item
    max_timeintegerMaximum seconds the actor may runDefault: 240
    memory_mbintegerActor memory in MB (power of 2)
    max_usdnumberMaximum spend in USD (pay-per-event actors)