Extract structured JSON from web pages via a webhook API with Gaffa
UnknownWhat this workflow does
This workflow has 9 nodes and runs when an HTTP POST request hits its webhook URL. Along the way it connects Gaffa (community).
How it runs
Trigger: When an HTTP POST request hits its webhook URL.
- Settings (Edit Fields (Set)): sets 1 field: max_cache_age
- Check the request (Code): runs custom JavaScript code
- Valid request? (If): checks a condition and branches into true / false
- Extract the fields (Gaffa): send request
- Reject the request (Respond to Webhook): sends the response back to the webhook caller
- Extracted? (If): checks a condition and branches into true / false
- Send the data (Respond to Webhook): sends the response back to the webhook caller
- Report the failure (Respond to Webhook): sends the response back to the webhook caller
Services it uses
Before you upgrade to n8n 3.0
We can't fully verify this one: it relies on 1 community package, and n8n 3.0 turns unverified community packages off by default (N8N_UNVERIFIED_PACKAGES_ENABLED=false).
- Check that @gaffa-dev/n8n-nodes-gaffa is verified or supports 3.0 (used in Extract the fields).
Nodes used (6)
- Webhook
n8n-nodes-base.webhook - Edit Fields (Set)
n8n-nodes-base.set - Code
n8n-nodes-base.code - If
n8n-nodes-base.if - Respond to Webhook
n8n-nodes-base.respondToWebhook - Gaffa
@gaffa-dev/n8n-nodes-gaffa.gaffa
From the author
Quick overview This workflow exposes a secured webhook that accepts a URL and a field schema, then uses Gaffa to load the web page and return structured JSON for the requested fields, with caching support and clear 400/502 error responses. How it works 1.…