Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

Zapier: API Calls or Webhook Steps?

· 8 min read · Home Tech

In this article
  1. What Are API Call Steps in Zapier?
  2. What Are Webhook Steps in Zapier?
  3. API Call vs. Webhook Trigger: How to Choose
  4. How to Build an API Call Step in Zapier
  5. How to Set Up a Webhook Trigger in Zapier
  6. Common Problems and How to Fix Them
  7. Costs and Limits to Keep in Mind
  8. Alternatives to API Calls and Webhook Steps
  9. Frequently Asked Questions

When building a Zapier integration, you can connect to external services using either API calls (via Webhooks by Zapier) or webhook steps, and the choice depends on whether you need a direct, custom HTTP request or a trigger that listens for incoming data. In short, use an API call when you want Zapier to send a request to another service, and use a webhook trigger when you want another service to send data to Zapier. This article explains the difference, when to use each, and how to avoid common pitfalls.

What Are API Call Steps in Zapier?

API call steps are actions that use the Webhooks by Zapier app's "POST", "GET", "PUT", or "DELETE" actions. These let you send a raw HTTP request to any URL, with custom headers, query parameters, and a JSON or form-encoded body. For example, you could call a REST API to create a record in a custom database, update a CRM, or fetch data from a third-party service that doesn't have a native Zapier integration.

Key characteristics:

  • They are outbound—Zapier initiates the request.
  • You must know the API's endpoint, authentication method (e.g., API key, Basic Auth, OAuth2), and request format.
  • They can be used in any part of a Zap, including as an action after a trigger or another action.
  • They support dynamic data from previous steps via Zapier's "Insert Data" menu.
  • They can be used to poll a REST API with the "GET" action, but only when the Zap runs (not on a schedule unless you add a Schedule trigger).

What Are Webhook Steps in Zapier?

Webhook steps in Zapier are of two types: Triggers ("Catch Hook" or "Catch Raw Hook") and Actions ("POST", "GET", etc.). The trigger type is what most people mean by "webhook step"—it gives you a unique URL that another system can send HTTP requests to, starting the Zap each time. The action type is essentially the same as an API call step, so the real distinction is between a webhook trigger and an API action.

Key characteristics:

  • Webhook triggers are inbound—another service sends data to Zapier.
  • They are ideal for real-time event notifications (e.g., a new payment, a form submission, a shipment update).
  • They require the sending system to support outbound webhooks.
  • "Catch Hook" parses JSON or form-encoded data into readable fields; "Catch Raw Hook" gives you the raw request body for custom parsing.
  • They can be tested with the provided URL using tools like Postman or curl.

API Call vs. Webhook Trigger: How to Choose

The decision is simple: Does the other system send data to you, or do you need to fetch/send data from it? If the other system can push events to a URL, use a webhook trigger. If you need to pull data or perform an action on a schedule, use an API call action.

Consider these scenarios:

  • Use a webhook trigger when your e-commerce platform sends a "new order" event to a URL. You set up a Catch Hook trigger, copy the URL into the platform's webhook settings, and each order starts the Zap.
  • Use an API call action when you want to add a row to Google Sheets every time a new lead is captured in a form. The form submission is the trigger; the API call to a custom service is the action.
  • Use an API call action with a Schedule trigger when you need to check a REST API for new records every hour. The Schedule trigger runs the Zap, and the API call fetches the data.

A common misconception is that a webhook step is always faster or more reliable than an API call. In reality, both are HTTP requests; the difference is who initiates them. Webhooks are real-time, but they depend on the sending service's reliability. API calls are on-demand, but they may introduce delay if you poll frequently.

How to Build an API Call Step in Zapier

To add an API call step, you use the Webhooks by Zapier app and select an action like "POST" or "GET". Here is a step-by-step approach:

  1. In the Zap editor, click "Add Step" and choose "Webhooks by Zapier".
  2. Select the action type (e.g., POST, GET, PUT, DELETE).
  3. Enter the URL of the API endpoint. You can include query parameters directly in the URL or use the "Query Params" field.
  4. Configure authentication: choose "Basic Auth", "API Key", or "Custom Headers" depending on the API's requirements.
  5. For POST/PUT, enter the request body as JSON or form-encoded. Use Zapier's data insertion to map fields from previous steps.
  6. Test the step to see the response. You can then use data from the response in later steps.

For example, to create a contact in a custom CRM, you might send a POST request to https://api.example.com/contacts with a JSON body like {"name": "John Doe", "email": "john@example.com"} and an API key header.

How to Set Up a Webhook Trigger in Zapier

Setting up a webhook trigger is straightforward:

  1. Add a trigger step and choose "Webhooks by Zapier".
  2. Select "Catch Hook" (or "Catch Raw Hook" for raw data).
  3. Zapier generates a unique URL. Copy it.
  4. In the external system, configure its webhook settings to send events to that URL. You may need to specify which events to send.
  5. Back in Zapier, click "Test" to generate a sample. The external system must send a real request to the URL for the test to succeed.
  6. Once the test is successful, map the webhook fields to subsequent steps.

One important detail: if you change the webhook URL after setting it up, you must update the external system. Also, webhook triggers only fire when the external system sends data; they do not run on a schedule.

Common Problems and How to Fix Them

Both API calls and webhook triggers can fail. Here are typical issues:

  • Authentication errors (401/403): Check that your API key or token is correct and that you are using the right auth method. Some APIs require the key in a header, others in the URL.
  • Malformed request (400): Verify the JSON syntax and that all required fields are present. Use a tool like Postman to test the API first.
  • Webhook not firing: Confirm the external system is configured to send the correct event. Check its logs for errors. Also, ensure the URL is exactly as provided—no trailing spaces.
  • Data mapping issues: When using a Catch Hook, the fields may appear as "1", "2", etc. If you need nested data, use "Catch Raw Hook" and parse the JSON with a Code step.
  • Rate limits: APIs often limit requests per minute. If you are polling with a Schedule trigger, set a reasonable interval (e.g., every 15 minutes) to avoid hitting limits.

Costs and Limits to Keep in Mind

Zapier's pricing is based on the number of tasks (each time a Zap runs counts as one task) and the plan's features. API calls and webhook steps both consume tasks. There are no extra charges for using Webhooks by Zapier, but you are subject to your plan's task limits and API rate limits from the external service. On free plans, Zaps run every 15 minutes; on paid plans, you can run them as often as every 1 minute (or less on higher tiers). Webhook triggers are real-time, so they are not subject to polling intervals.

Another limit: the Zapier webhook URL is tied to your account and Zap. If you duplicate a Zap, you get a new URL. Also, webhook payloads are limited to 10 MB, and the response from an API call is limited to a certain size (usually a few MB). For large payloads, consider using a Code step or a different integration method.

Alternatives to API Calls and Webhook Steps

If you find yourself writing many API calls, consider these alternatives:

  • Native Zapier integrations: Many popular services (Salesforce, HubSpot, Slack, etc.) have pre-built triggers and actions that handle authentication and data mapping for you. They are often more reliable and easier to maintain.
  • Code steps (Python or JavaScript): For complex logic or chaining multiple API calls, a Code step can give you more control. You can make HTTP requests using libraries like requests (Python) or fetch (JavaScript).
  • Zapier's built-in "Webhooks" app vs. "Custom Request": The Webhooks app is the standard. There is also a "Custom Request" action in some apps, but it is essentially the same.
  • Other automation platforms: If Zapier's limitations bother you, tools like Make (Integromat) or n8n offer different webhook and API capabilities, but they have their own learning curves.

For simple integrations, native apps are usually the best choice. For niche APIs, webhook triggers or API call steps are the way to go.

Frequently Asked Questions

Can I use a webhook trigger to call an API?

No. A webhook trigger is inbound—it receives data. To call an API, you need an action step (like Webhooks by Zapier POST). You can combine both: a webhook trigger receives data, and then an API call action sends that data to another service.

What is the difference between "Catch Hook" and "Catch Raw Hook"?

"Catch Hook" parses JSON or form-encoded data into individual fields, making it easy to map. "Catch Raw Hook" gives you the entire request body as a single string, which is useful for custom parsing or when the data is not JSON (e.g., XML). Use Raw Hook if you need to extract nested data with a Code step.

Do API call steps work with OAuth2 authentication?

Yes, but you must manage the token yourself. You can use a "Get Access Token" action (if available) or manually refresh the token using a Code step. For OAuth2, it is often easier to use a native integration if one exists.

Why is my webhook trigger not showing any data in the test?

The test waits for an actual HTTP request to the URL. If you haven't sent a request, it will hang. Use a tool like Postman or curl to send a sample payload to the URL. Also, ensure the external system is configured to send the correct event.

Can I use a webhook trigger in the middle of a Zap?

No. Triggers can only be the first step of a Zap. If you need to receive data mid-Zap, you would need to split it into two Zaps or use a webhook action (which is just an API call).

What happens if the API returns an error?

Zapier will mark the step as failed and retry it a few times (depending on your plan). You can set up error handling with "Filter" steps or use a "Code" step to catch errors. For webhooks, if the request fails, the external system may retry automatically, but that depends on its settings.