Get Zaps v2
curl --request GET \
--url https://api.zapier.com/v2/zaps \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.zapier.com/v2/zaps"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.zapier.com/v2/zaps', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.zapier.com/v2/zaps",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.zapier.com/v2/zaps"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.zapier.com/v2/zaps")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.zapier.com/v2/zaps")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body[
{
"links": {
"next": null,
"prev": null
},
"meta": {
"count": 1,
"offset": 0,
"limit": null
},
"data": [
{
"type": "zap",
"id": "00000000-0000-c000-8000-000000012345",
"is_enabled": false,
"last_successful_run_date": "2019-08-24T14:15:22Z",
"updated_at": "2019-08-24T14:15:22Z",
"title": "My Zap",
"links": {
"html_editor": "https://zapier.com/editor/7481?utm_source=partner&utm_medium=embed&utm_campaign=partner_api&referer=zapier"
},
"steps": [
{
"action": "uag:1f188536-6dd0-4172-8414-2b90914ddee9",
"authentication": "025256a5-1cd0-8ce2-9e55-ad520b3472bb",
"inputs": {
"deal_stage": "CLOSED_WON"
},
"title": "Pacific Railway Golden spike hammered"
},
{
"action": "uag:1f188536-6dd0-4172-8414-2b90914ddaa7",
"authentication": "02b2ab37-dcfc-8462-845f-9e49cb1b3a43",
"inputs": {
"full_name": "{{customer__full_name}}"
},
"title": "Record who dunnit"
}
]
}
]
}
]Zaps
Get Zaps v2
This endpoint returns a list of Zaps for the authenticated Zapier user.
The expand array can be used to expand selected fields into full objects in the response. Inputs with keys can
also be passed to filter Zaps by certain criteria.
Scope Selection:
- Use
zapif you have a Zapier integration and wish to get only Zaps using your integration. - Use
zap:allto get all of the user’s Zaps. - Use
zap:account:allto get all of the Zaps the user has access to in their account.
When using OAuth
This endpoint requires the zap, zap:all, or zap:account:all OAuth scopes.
GET
/
v2
/
zaps
Get Zaps v2
curl --request GET \
--url https://api.zapier.com/v2/zaps \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.zapier.com/v2/zaps"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.zapier.com/v2/zaps', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.zapier.com/v2/zaps",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.zapier.com/v2/zaps"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.zapier.com/v2/zaps")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.zapier.com/v2/zaps")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body[
{
"links": {
"next": null,
"prev": null
},
"meta": {
"count": 1,
"offset": 0,
"limit": null
},
"data": [
{
"type": "zap",
"id": "00000000-0000-c000-8000-000000012345",
"is_enabled": false,
"last_successful_run_date": "2019-08-24T14:15:22Z",
"updated_at": "2019-08-24T14:15:22Z",
"title": "My Zap",
"links": {
"html_editor": "https://zapier.com/editor/7481?utm_source=partner&utm_medium=embed&utm_campaign=partner_api&referer=zapier"
},
"steps": [
{
"action": "uag:1f188536-6dd0-4172-8414-2b90914ddee9",
"authentication": "025256a5-1cd0-8ce2-9e55-ad520b3472bb",
"inputs": {
"deal_stage": "CLOSED_WON"
},
"title": "Pacific Railway Golden spike hammered"
},
{
"action": "uag:1f188536-6dd0-4172-8414-2b90914ddaa7",
"authentication": "02b2ab37-dcfc-8462-845f-9e49cb1b3a43",
"inputs": {
"full_name": "{{customer__full_name}}"
},
"title": "Record who dunnit"
}
]
}
]
}
]Authorizations
See our OAuth2 authentication documentation here: https://docs.zapier.com/powered-by-zapier/api-reference/authentication
Query Parameters
Was this page helpful?