{
  "name": "Extract text from Instagram posts (single & carousel) using HikerAPI & OCR.Space",
  "nodes": [
    {
      "id": "09c146a6-9715-413d-9d67-02ffbf09b1e7",
      "name": "IGPost URL",
      "type": "n8n-nodes-base.set",
      "position": [
        -448,
        240
      ]
    },
    {
      "id": "e84fb49c-c0e7-48a1-ab4e-0bd10228bc53",
      "name": "Loop Over Items1",
      "type": "n8n-nodes-base.splitInBatches",
      "position": [
        592,
        240
      ]
    },
    {
      "id": "463738b0-db8c-433c-a273-ff6a6a2f1499",
      "name": "Merge All Parsed Text",
      "type": "n8n-nodes-base.aggregate",
      "position": [
        784,
        0
      ]
    },
    {
      "id": "12cb278c-c5df-4a5f-b3a9-c625e7b2ccf1",
      "name": "Retrieve Media",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -224,
        240
      ]
    },
    {
      "id": "6b232510-5d1b-4fca-bf92-27485534cae1",
      "name": "getOnlyText",
      "type": "n8n-nodes-base.code",
      "position": [
        1136,
        256
      ]
    },
    {
      "id": "a5b3bac1-82e1-4c7e-bca2-055c67034ae1",
      "name": "get_all_slide",
      "type": "n8n-nodes-base.code",
      "position": [
        224,
        240
      ]
    },
    {
      "id": "dbb9c2bf-8768-4e43-bf6e-351ee3586b69",
      "name": "OCR_Slide",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        864,
        256
      ]
    },
    {
      "id": "8afdc123-ac76-4f19-9202-79aa86ed1185",
      "name": "OCR_Single",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        224,
        0
      ]
    },
    {
      "id": "57330077-2514-4b0f-8b36-7df966d51424",
      "name": "getSingleText",
      "type": "n8n-nodes-base.code",
      "position": [
        512,
        0
      ]
    },
    {
      "id": "0894ac96-b32d-4e48-90f0-f5f4da743519",
      "name": "No Operation, do nothing",
      "type": "n8n-nodes-base.noOp",
      "position": [
        224,
        432
      ]
    },
    {
      "id": "a856d7dc-7a17-4b97-9c9d-0f67479b216b",
      "name": "Result of Raw Text",
      "type": "n8n-nodes-base.code",
      "position": [
        1056,
        0
      ]
    },
    {
      "id": "ef6e1690-e477-42d8-bb55-9631ea4513f4",
      "name": "When clicking ‘Execute workflow’",
      "type": "n8n-nodes-base.manualTrigger",
      "position": [
        -672,
        240
      ]
    },
    {
      "id": "87bd3834-aa95-4ebd-806d-e117858a2bc9",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1264,
        -32
      ],
      "parameters": {
        "width": 512,
        "height": 448,
        "content": "## Get Raw Text of Instagram Post with OCR\n\n### How it works\n• Takes an Instagram post URL (single post or carousel)\n• Retrieves media data using the HikerAPI Get Media endpoint\n• Detects post type (s"
      }
    },
    {
      "id": "5241a211-38fe-4b17-b87b-bf4887e20645",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1264,
        480
      ],
      "parameters": {
        "width": 512,
        "height": 336,
        "content": "## Workflow Creator Profile – Pake.AI\n\n**Pake.AI** is an AI Enabler from Indonesia, committed to helping creators, entrepreneurs, and businesses automate their operations through practical and accessi"
      }
    },
    {
      "id": "8fa5694c-5338-4ff6-9210-857ca4b9cc1a",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -528,
        176
      ],
      "parameters": {
        "width": 480,
        "height": 240,
        "content": "## 1. Get Media of IG Post"
      }
    },
    {
      "id": "968f2ae7-4d80-4ede-bc22-5538e4a2d01d",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        512,
        176
      ],
      "parameters": {
        "width": 816,
        "height": 304,
        "content": "## 2b. Extract the Text within the loop of Carousel Post to scan with OCR API\n"
      }
    },
    {
      "id": "92516339-7db8-417a-aae6-c63833756bd3",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        144,
        -96
      ],
      "parameters": {
        "width": 544,
        "height": 256,
        "content": "## 2a. Extract the Text for Image on Single Post with OCR API\n"
      }
    },
    {
      "id": "c061650e-f28e-43d2-9856-e55ff7860c34",
      "name": "Sticky Note5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        736,
        -96
      ],
      "parameters": {
        "width": 592,
        "height": 256,
        "content": "## 3. The Result\nYou can connect this nodes with your purpose\n"
      }
    },
    {
      "id": "7e12f3d9-91db-439c-8ceb-6a0d7b9e07e9",
      "name": "Post Type Selector",
      "type": "n8n-nodes-base.switch",
      "position": [
        0,
        224
      ]
    }
  ],
  "connections": {
    "OCR_Slide": {
      "main": [
        [
          {
            "node": "getOnlyText",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "IGPost URL": {
      "main": [
        [
          {
            "node": "Retrieve Media",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "OCR_Single": {
      "main": [
        [
          {
            "node": "getSingleText",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "getOnlyText": {
      "main": [
        [
          {
            "node": "Loop Over Items1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "getSingleText": {
      "main": [
        [
          {
            "node": "Merge All Parsed Text",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "get_all_slide": {
      "main": [
        [
          {
            "node": "Loop Over Items1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Retrieve Media": {
      "main": [
        [
          {
            "node": "Post Type Selector",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Loop Over Items1": {
      "main": [
        [
          {
            "node": "Merge All Parsed Text",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "OCR_Slide",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Post Type Selector": {
      "main": [
        [
          {
            "node": "OCR_Single",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "get_all_slide",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "No Operation, do nothing",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Merge All Parsed Text": {
      "main": [
        [
          {
            "node": "Result of Raw Text",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "When clicking ‘Execute workflow’": {
      "main": [
        [
          {
            "node": "IGPost URL",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}