-
Notifications
You must be signed in to change notification settings - Fork 6.3k
Expand file tree
/
Copy pathLatchshot — capture a public webpage.json
More file actions
141 lines (141 loc) · 3.79 KB
/
Copy pathLatchshot — capture a public webpage.json
File metadata and controls
141 lines (141 loc) · 3.79 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
{
"id": "LatchshotCapture",
"name": "Latchshot — capture a public webpage",
"nodes": [
{
"parameters": {},
"id": "5ccf21c2-f99b-4f11-9ac2-f71751120649",
"name": "Run workflow",
"type": "n8n-nodes-base.manualTrigger",
"typeVersion": 1,
"position": [
0,
240
]
},
{
"parameters": {
"assignments": {
"assignments": [
{
"id": "1fb79dbb-0813-4d30-9987-d85dcaf69142",
"name": "url",
"value": "https://example.com",
"type": "string"
},
{
"id": "833ef5dc-57ec-4cd8-b092-14ba989ed70d",
"name": "width",
"value": 1440,
"type": "number"
},
{
"id": "0052935e-b186-466b-98e7-024fd6a72dbe",
"name": "height",
"value": 900,
"type": "number"
},
{
"id": "0209741d-e9a4-4576-b540-fbd41106a2a0",
"name": "fullPage",
"value": false,
"type": "boolean"
},
{
"id": "98d81481-ab42-474c-b95a-c392a3e5134b",
"name": "delayMs",
"value": 250,
"type": "number"
}
]
},
"options": {}
},
"id": "e674a44c-c554-471a-b3fc-e94284bc7f46",
"name": "Set capture input",
"type": "n8n-nodes-base.set",
"typeVersion": 3.4,
"position": [
240,
240
]
},
{
"parameters": {
"method": "POST",
"url": "https://latchshot.fly.dev/v1/render",
"authentication": "genericCredentialType",
"genericAuthType": "httpBearerAuth",
"sendBody": true,
"specifyBody": "json",
"jsonBody": "={{ { url: $json.url, kind: 'screenshot', format: 'png', width: $json.width, height: $json.height, fullPage: $json.fullPage, delayMs: $json.delayMs } }}",
"options": {
"timeout": 45000,
"response": {
"response": {
"responseFormat": "file",
"outputPropertyName": "capture"
}
}
}
},
"id": "864e3340-6a02-4f0e-93bb-24ab48b99df2",
"name": "Capture public page",
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 4.4,
"position": [
500,
240
]
},
{
"parameters": {
"content": "### Add the credential before the first run\nGet a recurring Free key at https://latchshot.fly.dev/?intent=n8ncatalog#trial — 100 successful renders each UTC month, no card.\n\nOpen **Capture public page**, select or create a **Bearer Auth** credential, and paste only the `ls_live_…` token. The exported workflow contains no API key.\n\nThe successful response is binary field `capture`. Connect it to storage, email, chat, or another file-capable node.",
"height": 250,
"width": 390
},
"id": "a35d101a-a644-4e92-a4a4-9de8cf997f18",
"name": "Setup note",
"type": "n8n-nodes-base.stickyNote",
"typeVersion": 1,
"position": [
380,
-80
]
}
],
"pinData": {},
"connections": {
"Run workflow": {
"main": [
[
{
"node": "Set capture input",
"type": "main",
"index": 0
}
]
]
},
"Set capture input": {
"main": [
[
{
"node": "Capture public page",
"type": "main",
"index": 0
}
]
]
}
},
"active": false,
"settings": {
"executionOrder": "v1"
},
"versionId": "ee32aad4-30a7-4752-9e30-9282573fad24",
"meta": {
"templateCredsSetupCompleted": false
},
"tags": []
}