Blueprints

Run Apify actor and update Notion

Source

yaml
id: apify-to-notion
namespace: company.team

tasks:
  - id: run_actor
    type: io.kestra.plugin.apify.actor.Run
    actorId: GdWCkxBtKWOsKjdch
    maxItems: 1
    apiToken: "{{ secret('APIFY_API_TOKEN') }}"
    input:
      excludePinnedPosts: false
      hashtags: [ "fyp" ]
      resultsPerPage: 2

  - id: get_dataset
    type: io.kestra.plugin.apify.dataset.Get
    apiToken: "{{ secret('APIFY_API_TOKEN') }}"
    datasetId: "{{ outputs.run_actor.defaultDatasetId }}"

  - id: update_page
    type: io.kestra.plugin.notion.page.Update
    apiToken: "{{ secret('NOTION_API_TOKEN') }}"
    pageId: "{{ secret('NOTION_PAGE_ID') }}"
    content: |
      # Weekly Apify Scrape Result

      Actor run:
      {{ outputs.run_actor }}

      Dataset:
      {{ outputs.get_dataset }}

About this blueprint

Data

This flow runs on demand and:

  • Runs an Apify actor
  • Fetches the default dataset from that run
  • Updates a Notion page with the scraped results

Run

Get

Update

More Related Blueprints

New to Kestra?

Use blueprints to kickstart your first workflows.

Get started with Kestra