{
  "name": "Programmatically retrieve embeddable Getty Images",
  "nodes": [
    {
      "id": "f4ed726d-21cd-48b3-a4ec-17b57238be44",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -80,
        404
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "5bf1311a-1180-46ae-9a9e-3e1b20cac4e5",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1280,
        900
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "a98fd7b8-96dd-42b4-92e0-cf3b2b04bdd0",
      "name": "Sticky Note5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        658,
        402
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "af5d60ee-f8cb-4efa-8bac-bc6fdab15fe8",
      "name": "Parse results page for first image",
      "type": "n8n-nodes-base.html",
      "position": [
        140,
        620
      ]
    },
    {
      "id": "4365311f-2c04-4cbf-926b-9bd8a4e6dcab",
      "name": "Continue if a result exists",
      "type": "n8n-nodes-base.if",
      "position": [
        340,
        620
      ]
    },
    {
      "id": "fdbd15ac-2e38-40ff-9e1e-678e79874b49",
      "name": "Extract the Getty image_id from url",
      "type": "n8n-nodes-base.set",
      "position": [
        700,
        720
      ]
    },
    {
      "id": "9173f29a-6986-45e4-b4b7-1e8fd9d99e31",
      "name": "Get photo details",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        700,
        480
      ]
    },
    {
      "id": "3544930a-c623-421b-8815-455d418f8d60",
      "name": "GET img src",
      "type": "n8n-nodes-base.html",
      "position": [
        900,
        480
      ]
    },
    {
      "id": "18067de2-1ee1-4c0e-8fc4-8bd430c4d5bb",
      "name": "Get Embeddable iframeSnippet",
      "type": "n8n-nodes-base.set",
      "position": [
        1120,
        720
      ]
    },
    {
      "id": "59e887a1-ba83-4ae3-a0af-95d0aa844b18",
      "name": "Sticky Note6",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        860,
        900
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "eb1bf559-435f-4ed2-af70-813e779ff6c0",
      "name": "Request Getty Images Embed code",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        900,
        720
      ]
    },
    {
      "id": "f9f02bab-6f9a-4dd1-be90-c1e6c1dde662",
      "name": "Raise error when no results",
      "type": "n8n-nodes-base.stopAndError",
      "position": [
        520,
        800
      ]
    },
    {
      "id": "8519d771-d78b-4a90-91da-ab5ef3d71720",
      "name": "Replace with CMS node",
      "type": "n8n-nodes-base.noOp",
      "position": [
        1320,
        720
      ]
    },
    {
      "id": "cfa22c39-ad39-4324-8fe6-f24bdb78824f",
      "name": "Sticky Note10",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -80,
        820
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "38050f94-c884-4bcb-b55a-ce12cb9628c2",
      "name": "Sticky Note11",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        658,
        673
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "dff414b9-3945-406d-a247-76fa4d90e327",
      "name": "Getty Images Editorial Search",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -60,
        620
      ]
    },
    {
      "id": "df05b448-4901-4713-99fb-2923970f8703",
      "name": "When clicking ‘Test workflow’",
      "type": "n8n-nodes-base.manualTrigger",
      "position": [
        -460,
        620
      ]
    },
    {
      "id": "94c6fc16-a97d-4e1e-932c-2c5009a9e474",
      "name": "Replaceable input",
      "type": "n8n-nodes-base.set",
      "position": [
        -260,
        620
      ]
    },
    {
      "id": "2e146f9e-cb67-457d-844e-e958cff8d8ae",
      "name": "Preview image (view binary)",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1120,
        480
      ]
    }
  ],
  "connections": {
    "GET img src": {
      "main": [
        [
          {
            "node": "Preview image (view binary)",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get photo details": {
      "main": [
        [
          {
            "node": "GET img src",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Replaceable input": {
      "main": [
        [
          {
            "node": "Getty Images Editorial Search",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Continue if a result exists": {
      "main": [
        [
          {
            "node": "Extract the Getty image_id from url",
            "type": "main",
            "index": 0
          },
          {
            "node": "Get photo details",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Raise error when no results",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Embeddable iframeSnippet": {
      "main": [
        [
          {
            "node": "Replace with CMS node",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Getty Images Editorial Search": {
      "main": [
        [
          {
            "node": "Parse results page for first image",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Request Getty Images Embed code": {
      "main": [
        [
          {
            "node": "Get Embeddable iframeSnippet",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "When clicking ‘Test workflow’": {
      "main": [
        [
          {
            "node": "Replaceable input",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Parse results page for first image": {
      "main": [
        [
          {
            "node": "Continue if a result exists",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Extract the Getty image_id from url": {
      "main": [
        [
          {
            "node": "Request Getty Images Embed code",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}