← Personio + Scrapeless integrations

Scraping API with Scrapeless API on New Employee Created from Personio API

Pipedream makes it easy to connect APIs for Scrapeless, Personio and 2,700+ other apps remarkably fast.

Trigger workflow on
New Employee Created from the Personio API
Next, do this
Scraping API with the Scrapeless API
No credit card required
Intro to Pipedream
Watch us build a workflow
Watch us build a workflow
8 min
Watch now ➜

Trusted by 1,000,000+ developers from startups to Fortune 500 companies

Adyen logo
Appcues logo
Bandwidth logo
Checkr logo
ChartMogul logo
Dataminr logo
Gopuff logo
Gorgias logo
LinkedIn logo
Logitech logo
Replicated logo
Rudderstack logo
SAS logo
Scale AI logo
Webflow logo
Warner Bros. logo
Adyen logo
Appcues logo
Bandwidth logo
Checkr logo
ChartMogul logo
Dataminr logo
Gopuff logo
Gorgias logo
LinkedIn logo
Logitech logo
Replicated logo
Rudderstack logo
SAS logo
Scale AI logo
Webflow logo
Warner Bros. logo

Developers Pipedream

Getting Started

This integration creates a workflow with a Personio trigger and Scrapeless action. When you configure and deploy the workflow, it will run on Pipedream's servers 24x7 for free.

  1. Select this integration
  2. Configure the New Employee Created trigger
    1. Connect your Personio account
    2. Configure Polling interval
  3. Configure the Scraping API action
    1. Connect your Scrapeless account
    2. Select a Please select a API server
  4. Deploy the workflow
  5. Send a test event to validate your setup
  6. Turn on the trigger

Details

This integration uses pre-built, source-available components from Pipedream's GitHub repo. These components are developed by Pipedream and the community, and verified and maintained by Pipedream.

To contribute an update to an existing component or create a new component, create a PR on GitHub. If you're new to Pipedream component development, you can start with quickstarts for trigger span and action development, and then review the component API reference.

Trigger

Description:Emit new event when a new employee is created.
Version:0.0.1
Key:personio-new-employee-created

Personio Overview

The Personio API provides programmatic access to HR management functions, allowing you to manage employee data, time tracking, payroll, and recruitment processes. With Pipedream, you can leverage this API to create automations and workflows that can streamline HR operations, react to events in Personio in real-time, and connect HR data to other systems seamlessly.

Trigger Code

import { DEFAULT_POLLING_SOURCE_TIMER_INTERVAL } from "@pipedream/platform";
import personio from "../../personio.app.mjs";
import sampleEmit from "./test-event.mjs";

export default {
  key: "personio-new-employee-created",
  name: "New Employee Created",
  version: "0.0.1",
  description: "Emit new event when a new employee is created.",
  type: "source",
  dedupe: "unique",
  props: {
    personio,
    db: "$.service.db",
    timer: {
      label: "Polling interval",
      description: "Pipedream will poll the Personio on this schedule",
      type: "$.interface.timer",
      default: {
        intervalSeconds: DEFAULT_POLLING_SOURCE_TIMER_INTERVAL,
      },
    },
  },
  methods: {
    _getLastId() {
      return this.db.get("lastId") || 0;
    },
    _setLastId(lastId) {
      this.db.set("lastId", lastId);
    },
    async startEvent(maxResults = 0) {
      const { personio } = this;

      const lastId = this._getLastId();
      const items = personio.paginate({
        fn: personio.listEmployees,
        maxResults,
      });

      let responseArray = [];

      for await (const item of items) {
        responseArray.push(item);
        if (item.attributes?.id?.value <= lastId) break;
      }
      if (responseArray.length) this._setLastId(responseArray[0].attributes?.id?.value);

      for (const item of responseArray.reverse()) {
        this.$emit(
          item,
          {
            id: item.attributes?.id?.value,
            summary: `A new employee with id: "${item.attributes?.id?.value}" was created!`,
            ts: new Date(),
          },
        );
      }
    },
  },
  hooks: {
    async deploy() {
      await this.startEvent(25);
    },
  },
  async run() {
    await this.startEvent();
  },
  sampleEmit,
};

Trigger Configuration

This component may be configured based on the props defined in the component code. Pipedream automatically prompts for input values in the UI and CLI.
LabelPropTypeDescription
PersoniopersonioappThis component uses the Personio app.
N/Adb$.service.dbThis component uses $.service.db to maintain state between executions.
Polling intervaltimer$.interface.timer

Pipedream will poll the Personio on this schedule

Trigger Authentication

Personio uses OAuth authentication. When you connect your Personio account, Pipedream will open a popup window where you can sign into Personio and grant Pipedream permission to connect to your account. Pipedream securely stores and automatically refreshes the OAuth tokens so you can easily authenticate any Personio API.

Pipedream requests the following authorization scopes when you connect your account:

About Personio

Europe’s most valuable HR tech company offering an all-in-one HR software for SMEs.

Action

Description:Endpoints for fresh, structured data from 100+ popular sites. [See the documentation](https://apidocs.scrapeless.com/api-12919045).
Version:0.0.2
Key:scrapeless-scraping-api

Scrapeless Overview

Scrapeless – your go-to platform for powerful, compliant web data extraction. With tools like Universal Scraping API, Scrapeless makes it easy to access and gather data from complex sites. Focus on insights while we handle the technical hurdles. Scrapeless – data extraction made simple.

Action Code

import scrapeless from "../../scrapeless.app.mjs";
import { log } from "../../common/utils.mjs";
import {
  GOOGLE_DOMAIN_OPTIONS, GOOGLE_SEARCH_LR_OPTIONS,
  GOOGLE_SEARCH_TBM_OPTIONS,
  GOOGLE_TRENDS_DATA_TYPE_OPTIONS,
  GOOGLE_TRENDS_GEO_OPTIONS,
  GOOGLE_TRENDS_CATEGORY_OPTIONS,
  GOOGLE_TRENDS_PROPERTY_OPTIONS,
} from "../../common/constants.mjs";

export default {
  key: "scrapeless-scraping-api",
  name: "Scraping API",
  description: "Endpoints for fresh, structured data from 100+ popular sites. [See the documentation](https://apidocs.scrapeless.com/api-12919045).",
  version: "0.0.2",
  type: "action",
  props: {
    scrapeless,
    apiServer: {
      type: "string",
      label: "Please select a API server",
      default: "googleSearch",
      description: "Please select a API server to use",
      options: [
        {
          label: "Google Search",
          value: "googleSearch",
        },
        {
          label: "Google Trends",
          value: "googleTrends",
        },
      ],
      reloadProps: true,
    },
  },
  additionalProps() {
    const { apiServer } = this;

    const props = {};

    if (apiServer === "googleSearch") {
      props.g_search_query = {
        type: "string",
        label: "Search Query",
        description: "Parameter defines the query you want to search. You can use anything that you would use in a regular Google search. e.g. inurl:, site:, intitle:. We also support advanced search query parameters such as as_dt and as_eq.",
        default: "coffee",
      };

      props.g_search_language = {
        type: "string",
        label: "Language",
        description: "Parameter defines the language to use for the Google search. It's a two-letter language code. (e.g., en for English, es for Spanish, or fr for French).",
        default: "en",
      };

      props.g_search_country = {
        type: "string",
        label: "Country",
        description: "Parameter defines the country to use for the Google search. It's a two-letter country code. (e.g., us for the United States, uk for United Kingdom, or fr for France).",
        default: "us",
      };

      props.g_search_google_domain = {
        type: "string",
        label: "Domain",
        description: "Parameter defines the Google domain to use. It defaults to 'google.com'.",
        default: "google.com",
        options: GOOGLE_DOMAIN_OPTIONS.map((domain) => ({
          label: domain.label,
          value: domain.value,
        })),
        optional: true,
      };

      props.g_search_location = {
        type: "string",
        label: "Location",
        default: "",
        description: "Parameter defines from where you want the search to originate. If several locations match the location requested, we'll pick the most popular one. The location and uule parameters can't be used together. It is recommended to specify location at the city level in order to simulate a real user’s search. If location is omitted, the search may take on the location of the proxy.",
        optional: true,
      };

      props.g_search_start = {
        type: "integer",
        label: "Result Offset",
        description: "Parameter defines the result offset. It skips the given number of results. It's used for pagination. (e.g., `0` (default) is the first page of results, `10` is the 2nd page of results, `20` is the 3rd page of results, etc.).",
        default: 0,
        optional: true,
      };

      props.g_search_num = {
        type: "integer",
        label: "Number of Results",
        description: "Parameter defines the maximum number of results to return. (e.g., `10` (default) returns 10 results, `40` returns 40 results, and `100` returns 100 results).",
        default: 10,
        optional: true,
      };

      props.g_search_ludocid = {
        type: "string",
        label: "Google Place ID",
        description: "Parameter defines the id (`CID`) of the Google My Business listing you want to scrape. Also known as Google Place ID.",
        default: "",
        optional: true,
      };

      props.g_search_kgmid = {
        type: "string",
        label: "Google Knowledge Graph ID",
        description: "Parameter defines the id (`KGMID`) of the Google Knowledge Graph listing you want to scrape. Also known as Google Knowledge Graph ID. Searches with `kgmid` parameter will return results for the originally encrypted search parameters. For some searches, `kgmid` may override all other parameters except `start`, and `num` parameters.",
        default: "",
        optional: true,
      };

      props.g_search_ibp = {
        type: "string",
        label: "Google Element Rendering",
        default: "",
        description: "Parameter is responsible for rendering layouts and expansions for some elements (e.g., `gwp;0,7` to expand searches with `ludocid` for expanded knowledge graph).",
        optional: true,
      };

      props.g_search_cr = {
        type: "string",
        label: "Set Multiple Countries",
        default: "",
        description: "Parameter defines one or multiple countries to limit the search to. It uses country{two-letter upper-case country code} to specify countries and | as a delimiter. (e.g., countryFR|countryDE will only search French and German pages).",
        optional: true,
      };

      props.g_search_lr = {
        type: "string",
        label: "Set Multiple Languages",
        default: "",
        description: "Parameter defines one or multiple languages to limit the search to. It uses lang_{two-letter language code} to specify languages and | as a delimiter. (e.g., lang_fr|lang_de will only search French and German pages).",
        optional: true,
        options: GOOGLE_SEARCH_LR_OPTIONS.map((language) => ({
          label: language.label,
          value: language.value,
        })),
      };

      props.g_search_tbs = {
        type: "string",
        label: "Time Range",
        default: "",
        description: "(to be searched) parameter defines advanced search parameters that aren't possible in the regular query field. (e.g., advanced search for patents, dates, news, videos, images, apps, or text contents).",
        optional: true,
      };

      props.g_search_safe = {
        type: "string",
        label: "Safe Search",
        default: "",
        description: "Parameter defines the level of filtering for adult content. It can be set to `active` or `off`, by default Google will blur explicit content.",
        optional: true,
      };

      props.g_search_nfpr = {
        label: "Exclude Auto-corrected Results",
        type: "string",
        default: "",
        description: "Parameter defines whether to exclude auto-corrected results. It can be set to `true` or `false`, by default Google will include auto-corrected results.",
        optional: true,
      };

      props.g_search_filter = {
        label: "Results Filtering",
        type: "string",
        default: "",
        description: "Parameter defines if the filters for 'Similar Results' and 'Omitted Results' are on or off. It can be set to 1 (default) to enable these filters, or 0 to disable these filters.",
        optional: true,
      };

      props.g_search_tbm = {
        label: "Search Type",
        type: "string",
        default: "",
        description: "(to be matched) parameter defines the type of search you want to do.\n\nIt can be set to:\n`(no tbm parameter)`: `regular Google Search`,\n`isch`: `Google Images API`,\n`lcl` - `Google Local API`\n`vid`: `Google Videos API`,\n`nws`: `Google News API`,\n`shop`: `Google Shopping API`,\n`pts`: `Google Patents API`,\nor any other Google service.",
        optional: true,
        options: GOOGLE_SEARCH_TBM_OPTIONS.map((tbm) => ({
          label: tbm.label,
          value: tbm.value,
        })),
      };
    } else if (apiServer === "googleTrends") {
      props.g_trends_query = {
        type: "string",
        label: "Search Query",
        description: "Parameter defines the query or queries you want to search. You can use anything that you would use in a regular Google Trends search. The maximum number of queries per search is 5 (this only applies to `interest_over_time` and `compared_breakdown_by_region` data_type, other types of data will only accept 1 query per search).",
        default: "Mercedes-Benz,BMW X5",
      };

      props.g_trends_data_type = {
        type: "string",
        label: "Data Type",
        description: "The supported types are: `autocomplete`,`interest_over_time`,`compared_breakdown_by_region`,`interest_by_subregion`,`related_queries`,`related_topics`.",
        default: "interest_over_time",
        options: GOOGLE_TRENDS_DATA_TYPE_OPTIONS.map((dataType) => ({
          label: dataType.label,
          value: dataType.value,
        })),
      };

      props.g_trends_date = {
        type: "string",
        label: "Date",
        description: "The supported dates are: `now 1-H`, `now 4-H`, `now 1-d`, `now 7-d`, `today 1-m`, `today 3-m`, `today 12-m`, `today 5-y`, `all`. You can also pass custom values: Dates from 2004 to present: `yyyy-mm-dd yyyy-mm-dd` (e.g. `2021-10-15 2022-05-25`). Dates with hours within a week range: `yyyy-mm-ddThh yyyy-mm-ddThh` (e.g. `2022-05-19T10 2022-05-24T22`). Hours will be calculated depending on the tz (time zone) parameter.",
        default: "today 1-m",
        optional: true,
      };

      props.g_trends_language = {
        type: "string",
        label: "Language",
        description: "Parameter defines the language to use for the Google Trends search. It's a two-letter language code. (e.g., `en` for English, `es` for Spanish, or `fr` for French).",
        default: "en",
        optional: true,
      };

      props.g_trends_time_zone = {
        type: "string",
        label: "Time zone",
        description: "Time zone offset. default is `420`.",
        default: "420",
        optional: true,
      };

      props.g_trends_geo = {
        type: "string",
        label: "Location",
        description: "Parameter defines the location from where you want the search to originate. It defaults to Worldwide (activated when the value of geo parameter is not set or empty).",
        default: "",
        optional: true,
        options: GOOGLE_TRENDS_GEO_OPTIONS.map((geo) => ({
          label: geo.label,
          value: geo.value,
        })),
      };

      props.g_trends_category = {
        type: "string",
        label: "Category",
        description: "Parameter is used to define a search category. The default value is set to `0` (\"All categories\").",
        default: "",
        optional: true,
        options: GOOGLE_TRENDS_CATEGORY_OPTIONS.map((category) => ({
          label: category.label,
          value: category.value,
        })),
      };

      props.g_trends_property = {
        type: "string",
        label: "Property",
        description: "Parameter is used for sorting results by property. The default property is set to `Web Search` (activated when the value of property parameter is not set or empty). Other available options: `images` - Image Search `news` - News Search `froogle` - Google Shopping `youtube` - YouTube Search",
        default: "",
        optional: true,
        options: GOOGLE_TRENDS_PROPERTY_OPTIONS.map((property) => ({
          label: property.label,
          value: property.value,
        })),
      };
    }

    return props;
  },
  async run({ $ }) {
    const {
      scrapeless, apiServer, ...inputProps
    } = this;

    const MAX_RETRIES = 3;
    // 10 seconds
    const DELAY = 1000 * 10;
    const { run } = $.context;

    let submitData;
    let job;
    const client = await scrapeless._scrapelessClient();

    // pre check if the job is already in the context
    if (run?.context?.job) {
      job = run.context.job;
    }

    if (apiServer === "googleSearch") {
      submitData = {
        actor: "scraper.google.search",
        input: {
          q: inputProps.g_search_query,
          hl: inputProps.g_search_language,
          gl: inputProps.g_search_country,
          google_domain: inputProps.g_search_google_domain,
          location: inputProps.g_search_location,
          start: inputProps.g_search_start,
          num: inputProps.g_search_num,
          ludocid: inputProps.g_search_ludocid,
          kgmid: inputProps.g_search_kgmid,
          ibp: inputProps.g_search_ibp,
          cr: inputProps.g_search_cr,
          lr: inputProps.g_search_lr,
          tbs: inputProps.g_search_tbs,
          safe: inputProps.g_search_safe,
          nfpr: inputProps.g_search_nfpr,
          filter: inputProps.g_search_filter,
          tbm: inputProps.g_search_tbm,
        },
      };
    } else if (apiServer === "googleTrends") {
      submitData = {
        actor: "scraper.google.trends",
        input: {
          q: inputProps.g_trends_query,
          data_type: inputProps.g_trends_data_type,
          date: inputProps.g_trends_date,
          hl: inputProps.g_trends_language,
          tz: inputProps.g_trends_time_zone,
          geo: inputProps.g_trends_geo,
          cat: inputProps.g_trends_category,
          property: inputProps.g_trends_property,
        },
      };
    }

    log("submitData", submitData, "apiServer", apiServer, "inputProps", inputProps);

    if (!submitData) {
      throw new Error("No actor found");
    }
    // 1. Create a new scraping job
    if (!job) {
      job = await client.deepserp.createTask({
        actor: submitData.actor,
        input: submitData.input,
      });

      if (job.status === 200) {
        $.export("$summary", "Successfully retrieved scraping results");
        return job.data;
      }

      log("task in progress");
    }

    // 2. Wait for the job to complete
    if (run.runs === 1) {
      $.flow.rerun(DELAY, {
        job,
      }, MAX_RETRIES);
    } else if (run.runs > MAX_RETRIES ) {
      throw new Error("Max retries reached");
    } else if (job && job?.data?.taskId) {
      const result = await client.deepserp.getTaskResult(job.data.taskId);
      if (result.status === 200) {
        $.export("$summary", "Successfully retrieved scraping results");
        return result.data;
      } else {
        $.flow.rerun(DELAY, {
          job,
        }, MAX_RETRIES);
      }
    } else {
      throw new Error("No job found");
    }
  },

};

Action Configuration

This component may be configured based on the props defined in the component code. Pipedream automatically prompts for input values in the UI.

LabelPropTypeDescription
ScrapelessscrapelessappThis component uses the Scrapeless app.
Please select a API serverapiServerstringSelect a value from the drop down menu:{ "label": "Google Search", "value": "googleSearch" }{ "label": "Google Trends", "value": "googleTrends" }

Action Authentication

Scrapeless uses API keys for authentication. When you connect your Scrapeless account, Pipedream securely stores the keys so you can easily authenticate to Scrapeless APIs in both code and no-code steps.

About Scrapeless

Effortless Web Scraping Toolkit

More Ways to Connect Scrapeless + Personio

Submit Scrape Job with Scrapeless API on New Employee Created from Personio API
Personio + Scrapeless
 
Try it
Get Scrape Result with Scrapeless API on New Employee Created from Personio API
Personio + Scrapeless
 
Try it
Crawler with Scrapeless API on New Employee Created from Personio API
Personio + Scrapeless
 
Try it
Universal Scraping API with Scrapeless API on New Employee Created from Personio API
Personio + Scrapeless
 
Try it
New Employee Created from the Personio API

Emit new event when a new employee is created.

 
Try it
Create Application with the Personio API

Creates a new application. See the documentation

 
Try it
Create Employee with the Personio API

Creates a new employee. See the documentation

 
Try it
List Employees with the Personio API

Get a list of the company employees. See the documentation

 
Try it
Crawler with the Scrapeless API

Crawl any website at scale and say goodbye to blocks. See the documentation

 
Try it
Get Scrape Result with the Scrapeless API

Retrieve the result of a completed scraping job. See the documentation

 
Try it

Explore Other Apps

1
-
24
of
2,700+
apps by most popular

HTTP / Webhook
HTTP / Webhook
Get a unique URL where you can send HTTP or webhook requests
Node
Node
Anything you can do with Node.js, you can do in a Pipedream workflow. This includes using most of npm's 400,000+ packages.
Python
Python
Anything you can do in Python can be done in a Pipedream Workflow. This includes using any of the 350,000+ PyPi packages available in your Python powered workflows.
Pipedream Utils
Pipedream Utils
Utility functions to use within your Pipedream workflows
Notion
Notion
Notion is a new tool that blends your everyday work apps into one. It's the all-in-one workspace for you and your team.
OpenAI (ChatGPT)
OpenAI (ChatGPT)
OpenAI is an AI research and deployment company with the mission to ensure that artificial general intelligence benefits all of humanity. They are the makers of popular models like ChatGPT, DALL-E, and Whisper.
Anthropic (Claude)
Anthropic (Claude)
AI research and products that put safety at the frontier. Introducing Claude, a next-generation AI assistant for your tasks, no matter the scale.
Google Sheets
Google Sheets
Use Google Sheets to create and edit online spreadsheets. Get insights together with secure sharing in real-time and from any device.
Telegram
Telegram
Telegram, is a cloud-based, cross-platform, encrypted instant messaging (IM) service.
Google Drive
Google Drive
Google Drive is a file storage and synchronization service which allows you to create and share your work online, and access your documents from anywhere.
Pinterest
Pinterest
Pinterest is a visual discovery engine for finding ideas like recipes, home and style inspiration, and more.
Google Calendar
Google Calendar
With Google Calendar, you can quickly schedule meetings and events and get reminders about upcoming activities, so you always know what’s next.
Shopify
Shopify
Shopify is a complete commerce platform that lets anyone start, manage, and grow a business. You can use Shopify to build an online store, manage sales, market to customers, and accept payments in digital and physical locations.
Supabase
Supabase
Supabase is an open source Firebase alternative.
MySQL
MySQL
MySQL is an open-source relational database management system.
PostgreSQL
PostgreSQL
PostgreSQL is a free and open-source relational database management system emphasizing extensibility and SQL compliance.
Premium
AWS
AWS
Amazon Web Services (AWS) offers reliable, scalable, and inexpensive cloud computing services.
Premium
Twilio SendGrid
Twilio SendGrid
Send marketing and transactional email through the Twilio SendGrid platform with the Email API, proprietary mail transfer agent, and infrastructure for scalable delivery.
Amazon SES
Amazon SES
Amazon SES is a cloud-based email service provider that can integrate into any application for high volume email automation
Premium
Klaviyo
Klaviyo
Email Marketing and SMS Marketing Platform
Premium
Zendesk
Zendesk
Zendesk is award-winning customer service software trusted by 200K+ customers. Make customers happy via text, mobile, phone, email, live chat, social media.
Premium
ServiceNow
ServiceNow
The smarter way to workflow
Slack
Slack
Slack is a channel-based messaging platform. With Slack, people can work together more effectively, connect all their software tools and services, and find the information they need to do their best work — all within a secure, enterprise-grade environment.
Microsoft Teams
Microsoft Teams
Microsoft Teams has communities, events, chats, channels, meetings, storage, tasks, and calendars in one place.