Back to blog

Guides ยท Jul 18, 2023

Integrate Crontap Schedules with IFTTT and post to Twitter

In this post you're going to learn how to integrate Crontap schedules with IFTTT webhooks to automate your Twitter account.
crontap.com / blog
Learn how to leverage Crontap webhook schedules to seamlessly integrate IFTTT with your workflows, enabling posting to twitter & other automated tasks and efficient data management.

Looking to automate tweets for your personal account or business?
With Crontap & IFTTT it is possible to call your API (or any other API, really) and automatically tweet!

However, parsing the response from the API requires a little bit of scripting. So keep in mind, this article assumes you have at least some basic JavaScript knowledge.

๐Ÿšจ The Twitter integration on IFTTT requires that you have a Pro subscription.
Moreover, if you want to connect more than one Twitter account, you will need a Pro+ subscription.

The Crontap free plan has no limitation on integrations though, so integrate away!

Primer on webhooks

Crontap is capable of integrating with various services via webhooks.

Webhooks are the digital messengers that deliver real-time updates and data between applications, enabling seamless integration and automation. With webhooks, you can streamline processes, trigger custom actions, and revolutionize the way applications communicate and collaborate.

Still curios? Check out this in-depth article on webhooks.

Short intro

In this guide, we will be sending out a tweet hunted.space every day at 10:00 PM & 18:00 PM.

The tweet will looks something like this:

Tweet example

We're going to use the Hunted Space API to fetch the latest hunted products.

However, this will work with any API that returns JSON data + any twitter account.
The only difference is in formatting the tweet, which is done via an IFTTT script.

Preparing IFTTT

Sign in to your IFTTT account and create a new applet, then

  1. In the "If this" section press "Add", then

    • search for the "Webhooks" service
    • and select it
  2. Select the Received a web request with a JSON payload trigger.

    IFTTT add service

    IFTTT webhooks service

    IFTTT received a web request with a JSON payload

  3. Give it a name e.g. "TweetHuntedProducts".

    • avoid spaces and special characters
    • keep this name handy, we will need it later
  4. Press Create Trigger

    IFTTT name webhook

  5. In the "Then that" section press "Add", then

    • search for the "Twitter" service
    • and select it
  6. Select the Post a tweet action.

IFTTT add then that service

IFTTT select post a tweet action

  1. Connect your Twitter account or select an existing one.
  2. Press Create action.

IFTTT create post tweet action

Leave the default tweet text as is, we will be overriding it with our own text in the next section.

Those are all the actions we need to do on IFTTT. Now we need to add the script that will parse the JSON data from the API and create the tweet.

Parsing data on IFTTT using "Filter code"

Now we'll need to take the data that Crontap will send us and parse it into a tweet. To do that:

  1. press the round plus icon button in between the "If" and "Then" sections.

press the round plus icon button on IFTTT

  1. press on the "Filter code" option.

    • you'll be taken to the code editor
  2. add the code that parses the response and creates the tweet


    • in general, you can get the response data by accessing the data variable. let payload = JSON.parse(MakerWebhooks.jsonEvent.JsonPayload);

    • then, you need to format your tweet and set it like this: Twitter.postNewTweet.setTweet('...');


  1. Press Add filter. IFTTT add filter code

  2. Press Continue.

  3. Press Finish (feel free to change the title of the applet).

IFTTT continue to create applet

IFTTT finish creating applet

๐Ÿ˜… Phew! That was the hard part.
Now we only need to get the IFTTT webhook URL and then jump to Crontap. That's going to be a lot easier to set up!

Getting your IFTTT webhook URL

Before we switch to Crontap, we need to grab your webhook URL.

To do that got to the webhook integrations page here: https://ifttt.com/maker_webhooks.

IFTTT webhook documentation

  1. Press on the Documentation button.

  2. On this page, you will find your webhook URL. Replace the {event} part with the name you gave your webhook in step 3 (e.g. TweetHuntedProducts).

IFTTT Change webhook event name

Copy the URL as highlighted above and keep it handy, we will paste that shortly in the Crontap integration section.

Setting up with a schedule in Crontap

Start by creating a new schedule in Crontap.

  1. Select the "Cron Syntax" schedule type.
  2. As the url, add the API endpoint you want to call. In our case, it is https://api.hunted.space/todayStats.
  3. Set the schedule interval to 0 10,18 * * * (this will run the schedule every day at 10:00 PM & 18:00 PM).

Crontap schedule example

Scroll down to the last section called Integrations.

Crontap webhook integrations

  1. Press the Add Integration button.
    • Paste the webhook URL you copied from IFTTT ealier into Webhook URL field.
    • Enable the Call on success option.
  2. Press Save integrations.

Crontap IFTTT webhook configuration

  1. Press Create schedule.

That's it! ๐ŸŽ‰
You have successfully configured your IFTTT integration with Crontap.

If you'd like to test your integration, you can press on Perform test in Crontap and see if the tweet was sent out.

Crontap perform test to tweet via IFTTT



If you can't see the tweet, but the test was successful, check your IFTTT activity feed for more information. To do that, find your applet and press on the Activity button.

navigate to IFTTT activity feed

IFTTT activity feed

Guides, patterns and product updates.

Tutorials on scheduling API calls, webhooks and automations, plus deep dives into cron syntax, timezones and reliability.

Alternatives

Vercel Cron every minute: beating the Hobby hourly limit

Vercel Cron caps Hobby at hourly cadence and 5 jobs, and ties every change to a redeploy. Here is the external cron pattern teams use to ship per-minute schedules, per-IANA timezones, and one dashboard across projects without paying $20/mo per user for Pro.

Guides

Why your WordPress scheduled tasks are missing (and how to fix wp-cron)

wp-cron only fires on visitor traffic, which is why your 5am Monday digest lands at 8:14am. Here is the documented fix: disable wp-cron, point Crontap at wp-cron.php on a real clock, and get scheduled posts and WooCommerce renewals firing on time.

Alternatives

Cloud Run cron without Cloud Scheduler

Cloud Scheduler costs $0.10 per job per month after the first 3 and asks for OIDC plus IAM bindings on every target. Here is the IAM-free pattern Cloud Run teams use to fire their .run.app URLs on a clock with one bearer token and one dashboard across every GCP project.

Alternatives

Heroku Scheduler alternative: any cron expression without the add-on

Heroku Scheduler caps you at three cadences and account-wide UTC, and spins a one-off dyno per run. Here is the external cron pattern that gives you any cron expression, per-schedule timezones, and zero per-execution dyno spin-up cost.

Guides

Running an OpenAI sentiment pipeline on a real scheduler

OpenAI batch work needs a clock, not a user session. Here is the scheduled HTTP-route pattern teams use to drain LLM batches at a sustainable rate inside OpenAI's rate limits, with per-task failure alerts.

Reference

Cron syntax cheat sheet with real-world examples

Cron syntax without the math. Every pattern you're likely to reach for (every 5 minutes, weekdays, business hours, first of the month), with a practical example and a link to a free debugger.