← eSputnik + twocaptcha integrations

Submit Captcha for Solving with twocaptcha API on New Contact in Segment from eSputnik API

Pipedream makes it easy to connect APIs for twocaptcha, eSputnik and 2,800+ other apps remarkably fast.

Trigger workflow on
New Contact in Segment from the eSputnik API
Next, do this
Submit Captcha for Solving with the twocaptcha 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 eSputnik trigger and twocaptcha 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 Contact in Segment trigger
    1. Connect your eSputnik account
    2. Configure Polling Interval
    3. Optional- Configure Max API Requests per Execution
    4. Select a Segment
  3. Configure the Submit Captcha for Solving action
    1. Connect your twocaptcha account
    2. Select a Task Type
    3. Optional- Select a Language Pool
    4. Optional- Configure Soft Id
  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 contact is added in the specified segment
Version:0.0.2
Key:esputnik-new-contact-in-segment

eSputnik Overview

The eSputnik API is a powerful tool for managing and automating your email marketing campaigns and other messaging services. Through the API, you can create targeted email sequences, manage contact lists, track email metrics, and dynamically segment your audience based on their interactions. By leveraging Pipedream's capabilities, you can connect eSputnik with hundreds of other apps to synchronize your marketing efforts, automate responses based on customer behavior, and analyze the effectiveness of your campaigns with advanced analytics.

Trigger Code

import common from "../common/base.mjs";

export default {
  ...common,
  key: "esputnik-new-contact-in-segment",
  name: "New Contact in Segment",
  description: "Emit new event when a new contact is added in the specified segment",
  version: "0.0.2",
  type: "source",
  dedupe: "unique",
  props: {
    ...common.props,
    segment: {
      propDefinition: [
        common.props.esputnik,
        "segment",
      ],
    },
  },
  methods: {
    ...common.methods,
    generateMeta(contact) {
      return this.generateContactMeta(contact);
    },
  },
  async run() {
    const contacts = await this.getPaginatedContacts(this.esputnik.listSegmentContacts.bind(this), {
      params: {
        orderByTs: true,
        asc: false,
      },
      segmentId: this.segment,
    });
    for await (const contact of contacts) {
      const meta = this.generateMeta(contact);
      this.$emit(contact, meta);
    }
  },
};

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
eSputnikesputnikappThis component uses the eSputnik app.
N/Adb$.service.dbThis component uses $.service.db to maintain state between executions.
Polling Intervaltimer$.interface.timer

Pipedream will poll the eSputnik API on this schedule

Max API Requests per ExecutionmaxRequestsinteger

The maximum number of API requests to make per execution (e.g., multiple requests are required to retrieve paginated results).

SegmentsegmentstringSelect a value from the drop down menu.

Trigger Authentication

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

You can get your API Key from your eSputnik account in Profile > Settings > API.

About eSputnik

Communicate with customers through the most convenient channel for them: email, SMS, Viber, web and mobile push notifications, or combine several channels at once.

Action

Description:Send a new captcha to the 2Captcha service for solving. Required props are clientKey and task object.
Version:0.0.1
Key:_twocaptcha-submit-captcha

twocaptcha Overview

The 2Captcha API enables automated solving of captchas and reCaptcha. On Pipedream, you can integrate this API into workflows to handle captcha challenges when scraping websites, automating form submissions, or any process that encounters captchas. The API takes the captcha image or reCaptcha data as input and returns the text or token needed to bypass the captcha, effectively allowing your automations to mimic human interaction.

Action Code

import { ConfigurationError } from "@pipedream/platform";
import _twocaptcha from "../../_twocaptcha.app.mjs";
import {
  TASK_TYPE_OPTIONS,
  filterProxy,
  taskProps,
} from "../../common/constants.mjs";
import proxy from "../../common/taskProps/proxy.mjs";

export default {
  key: "_twocaptcha-submit-captcha",
  name: "Submit Captcha for Solving",
  description: "Send a new captcha to the 2Captcha service for solving. Required props are clientKey and task object.",
  version: "0.0.1",
  type: "action",
  props: {
    _twocaptcha,
    taskType: {
      type: "string",
      label: "Task Type",
      description: "The type of the task you want to create.",
      reloadProps: true,
      options: TASK_TYPE_OPTIONS,
    },
    languagePool: {
      type: "string",
      label: "Language Pool",
      description: "Used to choose the workers for solving the captcha by their language. Applicable to image-based and text-based captchas.",
      options: [
        "en",
        "rn",
      ],
      optional: true,
    },
    softId: {
      type: "integer",
      label: "Soft Id",
      description: "The ID of your software registered in our [Software catalog](https://2captcha.com/software)",
      optional: true,
    },
  },
  async additionalProps() {
    let props = {};
    if (this.taskType) {
      props = taskProps[this.taskType];

      if ((this.taskType === "geetest") && (this.version === "4")) {
        props.initParameters.optional = false;
      }

      if (this.type && (!filterProxy.includes(this.taskType)) && !this.type.endsWith("Proxyless")) {
        props = {
          ...props,
          ...proxy,
        };
      }
    }
    return props;
  },
  async run({ $ }) {
    const {
      _twocaptcha,
      taskType,
      languagePool,
      softId,
      ...task
    } = this;

    if (taskType === "key") {
      task.s_s_c_user_id = task.sscUserId;
      task.s_s_c_session_id = task.sscSessionId;
      task.s_s_c_web_server_sign = task.sscWebServerSign;
      task.s_s_c_web_server_sign2 = task.sscWebServerSign2;
      delete task.sscUserId;
      delete task.sscSessionId;
      delete task.sscWebServerSign;
      delete task.sscWebServerSign2;
    }

    const response = await _twocaptcha.createTask({
      $,
      data: {
        languagePool,
        softId,
        task,
      },
    });

    if (response.errorId) {
      throw new ConfigurationError(response.errorDescription);
    }

    $.export("$summary", `Successfully submitted captcha with task ID ${response.taskId}`);
    return response;
  },
};

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
twocaptcha_twocaptchaappThis component uses the twocaptcha app.
Task TypetaskTypestringSelect a value from the drop down menu:{ "label": "Normal CAPTCHA", "value": "normal" }{ "label": "reCAPTCHA V2", "value": "rev2" }{ "label": "reCAPTCHA V3", "value": "rev3" }{ "label": "Arkose Labs CAPTCHA", "value": "arkose" }{ "label": "hCAPTCHA", "value": "hcap" }{ "label": "GeeTest CAPTCHA", "value": "geetest" }{ "label": "Cloudflare Turnstile", "value": "cloudflare" }{ "label": "reCAPTCHA Enterprise", "value": "reEnter" }{ "label": "Capy Puzzle CAPTCHA", "value": "capy" }{ "label": "KeyCAPTCHA", "value": "key" }{ "label": "Lemin CAPTCHA", "value": "lemin" }{ "label": "Amazon CAPTCHA", "value": "amazon" }{ "label": "Text CAPTCHA", "value": "text" }{ "label": "Rotate CAPTCHA", "value": "rotate" }{ "label": "Click CAPTCHA", "value": "click" }{ "label": "Draw Around", "value": "draw" }{ "label": "Grid CAPTCHA", "value": "grid" }{ "label": "Audio CAPTCHA", "value": "audio" }{ "label": "CyberSiARA", "value": "cyber" }{ "label": "MTCAPTCHA", "value": "mt" }{ "label": "DataDome CAPTCHA", "value": "datadome" }{ "label": "Friendly Captcha", "value": "friendly" }{ "label": "Bounding Box", "value": "bounding" }{ "label": "Cutcaptcha", "value": "cutcaptcha" }
Language PoollanguagePoolstringSelect a value from the drop down menu:enrn
Soft IdsoftIdinteger

The ID of your software registered in our Software catalog

Action Authentication

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

Sign in and copy your API Key from Account Settings

About twocaptcha

Captcha Solving Service. 2captcha is a service for solving CAPTCHA. We solve all types of.

More Ways to Connect twocaptcha + eSputnik

Check 2Captcha Account Balance with twocaptcha API on New Contact in Segment from eSputnik API
eSputnik + twocaptcha
 
Try it
Check 2Captcha Account Balance with twocaptcha API on New Contact from eSputnik API
eSputnik + twocaptcha
 
Try it
Retrieve Captcha Solution with twocaptcha API on New Contact in Segment from eSputnik API
eSputnik + twocaptcha
 
Try it
Retrieve Captcha Solution with twocaptcha API on New Contact from eSputnik API
eSputnik + twocaptcha
 
Try it
Submit Captcha for Solving with twocaptcha API on New Contact from eSputnik API
eSputnik + twocaptcha
 
Try it
New Contact from the eSputnik API

Emit new event when a new contact is added

 
Try it
New Contact in Segment from the eSputnik API

Emit new event when a new contact is added in the specified segment

 
Try it
New 2Captcha Balance Updated from the twocaptcha API

Emit new event when the user's balance in 2Captcha API is changed.

 
Try it
New Captcha Solved from the twocaptcha API

Emit new event when a captcha has been successfully solved by the 2Captcha service.

 
Try it
Create Contact with the eSputnik API

Create a new contact in eSputnik. See the docs here

 
Try it
Send Event with the eSputnik API

Send an event in eSputnik. See the docs here

 
Try it
Subscribe Contact with the eSputnik API

Create a new unverified contact in eSputnik. For use with double opt-in implementation. User will need to verify the email to confirm their subscription. See the docs here

 
Try it
Update Contact with the eSputnik API

Update an existing contact in eSputnik. See the docs here

 
Try it
Check 2Captcha Account Balance with the twocaptcha API

Get the current account balance from the 2Captcha API. See the documentation

 
Try it

Explore Other Apps

1
-
24
of
2,800+
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.