![Power Webhook Integration avatar](https://images.apifyusercontent.com/h7JvDhS--GlfKjF1ipukKxrM9E5-6aSdrgjBxGY7n1w/rs:fill:250:250/aHR0cHM6Ly9hcGlmeS1pbWFnZS11cGxvYWRzLXByb2QuczMuYW1hem9uYXdzLmNvbS9sV3VDQVI1d245cTkwZHJPcy8zZW1xR0RiejQ5WUF3RTdZOC00MjI5MzUxLnBuZw.webp)
Power Webhook Integration
Try for free
14 days trial then $5.00/month - No credit card required now
View all Actors![Power Webhook Integration](https://images.apifyusercontent.com/h7JvDhS--GlfKjF1ipukKxrM9E5-6aSdrgjBxGY7n1w/rs:fill:250:250/aHR0cHM6Ly9hcGlmeS1pbWFnZS11cGxvYWRzLXByb2QuczMuYW1hem9uYXdzLmNvbS9sV3VDQVI1d245cTkwZHJPcy8zZW1xR0RiejQ5WUF3RTdZOC00MjI5MzUxLnBuZw.webp)
![Power Webhook Integration](https://images.apifyusercontent.com/h7JvDhS--GlfKjF1ipukKxrM9E5-6aSdrgjBxGY7n1w/rs:fill:250:250/aHR0cHM6Ly9hcGlmeS1pbWFnZS11cGxvYWRzLXByb2QuczMuYW1hem9uYXdzLmNvbS9sV3VDQVI1d245cTkwZHJPcy8zZW1xR0RiejQ5WUF3RTdZOC00MjI5MzUxLnBuZw.webp)
Power Webhook Integration
pocesar/run-webhook-digest
Try for free
14 days trial then $5.00/month - No credit card required now
Allows you to provide multiple HTTP endpoints, that receive a more complete JSON from the run, and allow you to hit those endpoints using a proxy, and enable you to do conditional webhook calls with some lines of Javascript code and you can link/chain one actor to another
The code examples below show how to run the Actor and get its results. To run the code, you need to have an Apify account. Replace <YOUR_API_TOKEN> in the code with your API token, which you can find under Settings > Integrations in Apify Console. Learn more
1from apify_client import ApifyClient
2
3# Initialize the ApifyClient with your Apify API token
4client = ApifyClient("<YOUR_API_TOKEN>")
5
6# Prepare the Actor input
7run_input = {
8 "method": "POST",
9 "statuses": [
10 "ACTOR.RUN.SUCCEEDED",
11 "ACTOR.RUN.FAILED",
12 "ACTOR.RUN.TIMED_OUT",
13 ],
14 "customData": {},
15 "transformEndpoint": """async ({ Apify, url, dataset, requestQueue, keyValueStore, abort, data, input: { customData } }) => {
16 return data;
17}""",
18 "triggerCondition": """async ({ Apify, dataset, requestQueue, keyValueStore, abort, data, input: { customData } }) => {
19 return true;
20}""",
21}
22
23# Run the Actor and wait for it to finish
24run = client.actor("pocesar/run-webhook-digest").call(run_input=run_input)
25
26# Fetch and print Actor results from the run's dataset (if there are any)
27print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
28for item in client.dataset(run["defaultDatasetId"]).iterate_items():
29 print(item)
30
31# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start
Developer
Maintained by Community
Actor metrics
- 1 monthly user
- 1 star
- 99.9% runs succeeded
- Created in Aug 2021
- Modified almost 2 years ago
Categories