{
  "name": "ApiOne: enrich Gulf companies (fallback when other providers return empty)",
  "nodes": [
    {
      "parameters": {},
      "id": "a1",
      "name": "Manual trigger",
      "type": "n8n-nodes-base.manualTrigger",
      "typeVersion": 1,
      "position": [
        0,
        0
      ]
    },
    {
      "parameters": {
        "jsCode": "// Replace with your own list or connect a Google Sheet / CRM node instead\nreturn ['foodics.com','tamara.co','lean.sa'].map(domain => ({ json: { domain } }));"
      },
      "id": "a2",
      "name": "Domains to enrich",
      "type": "n8n-nodes-base.code",
      "typeVersion": 2,
      "position": [
        220,
        0
      ]
    },
    {
      "parameters": {
        "method": "POST",
        "url": "https://api.apione.store/api/v1/companies/enrich",
        "authentication": "genericCredentialType",
        "genericAuthType": "httpHeaderAuth",
        "sendBody": true,
        "specifyBody": "json",
        "jsonBody": "={{ { \"domain\": $json.domain } }}",
        "options": {
          "timeout": 60000,
          "response": {
            "response": {
              "neverError": true
            }
          }
        }
      },
      "id": "a3",
      "name": "ApiOne company enrich",
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.2,
      "position": [
        440,
        0
      ],
      "notes": "Create a Header Auth credential: name X-API-Key, value = your ApiOne key. Misses and errors are free."
    },
    {
      "parameters": {
        "conditions": {
          "options": {
            "caseSensitive": true,
            "typeValidation": "loose"
          },
          "conditions": [
            {
              "id": "c1",
              "leftValue": "={{ $json._meta.grounded }}",
              "rightValue": true,
              "operator": {
                "type": "boolean",
                "operation": "true",
                "singleValue": true
              }
            }
          ],
          "combinator": "and"
        },
        "options": {}
      },
      "id": "a4",
      "name": "Has live evidence?",
      "type": "n8n-nodes-base.if",
      "typeVersion": 2,
      "position": [
        660,
        0
      ]
    }
  ],
  "connections": {
    "Manual trigger": {
      "main": [
        [
          {
            "node": "Domains to enrich",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Domains to enrich": {
      "main": [
        [
          {
            "node": "ApiOne company enrich",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "ApiOne company enrich": {
      "main": [
        [
          {
            "node": "Has live evidence?",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "settings": {
    "executionOrder": "v1"
  }
}