{
  "openapi": "3.0.1",
  "info": {
    "title": "CSV Anti-Join Finder",
    "description": "Find rows in one CSV that do not have matching keys in another CSV, with support for composite keys, normalization rules, duplicate diagnostics, and left-only/right-only export reports.",
    "version": "1.0",
    "x-build-id": "92RZh820Njev6oPDi"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/junipr~csv-anti-join-finder/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-junipr-csv-anti-join-finder",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/junipr~csv-anti-join-finder/runs": {
      "post": {
        "operationId": "runs-sync-junipr-csv-anti-join-finder",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor and returns information about the initiated run in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runsResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/acts/junipr~csv-anti-join-finder/run-sync": {
      "post": {
        "operationId": "run-sync-junipr-csv-anti-join-finder",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "properties": {
          "leftCsvUrl": {
            "title": "Left CSV URL",
            "type": "string",
            "description": "Public left CSV URL to fetch or inspect for CSV Anti-Join Finder.",
            "default": ""
          },
          "rightCsvUrl": {
            "title": "Right CSV URL",
            "type": "string",
            "description": "Public right CSV URL to fetch or inspect for CSV Anti-Join Finder.",
            "default": ""
          },
          "leftCsvText": {
            "title": "Left CSV Text",
            "type": "string",
            "description": "Supplied left CSV text to analyze directly.",
            "default": "Name,Code\nAfghanistan,AF\nAlbania,AL\nAlgeria,DZ\nAmerican Samoa,AS\nAndorra,AD\n"
          },
          "rightCsvText": {
            "title": "Right CSV Text",
            "type": "string",
            "description": "Supplied right CSV text to analyze directly.",
            "default": "official_name_en,ISO3166-1-Alpha-2\nAfghanistan,AF\nAlbania,AL\nAlgeria,DZ\nÅland Islands,AX\n"
          },
          "leftKeyColumns": {
            "title": "Left Key Columns",
            "type": "array",
            "description": "Left Key Columns controls CSV Anti-Join Finder processing for the supplied inputs; keep values conservative for first runs.",
            "items": {
              "type": "string"
            },
            "default": [
              "Code"
            ]
          },
          "rightKeyColumns": {
            "title": "Right Key Columns",
            "type": "array",
            "description": "Right Key Columns controls CSV Anti-Join Finder processing for the supplied inputs; keep values conservative for first runs.",
            "items": {
              "type": "string"
            },
            "default": [
              "ISO3166-1-Alpha-2"
            ]
          },
          "antiJoinMode": {
            "title": "Anti Join Mode",
            "type": "string",
            "description": "Anti Join Mode controlling how CSV Anti-Join Finder processes the supplied inputs.",
            "default": "both"
          },
          "normalizationRules": {
            "title": "Normalization Rules",
            "type": "object",
            "description": "Rules used by CSV Anti-Join Finder to classify findings and recommendations.",
            "default": {
              "trim": true,
              "case": "lower",
              "numeric": true
            },
            "additionalProperties": true
          },
          "includeSourceRows": {
            "title": "Include Source Rows",
            "type": "boolean",
            "description": "Include source rows in output rows or reports when available.",
            "default": true
          },
          "includeMatchedSummary": {
            "title": "Include Matched Summary",
            "type": "boolean",
            "description": "Include matched summary in output rows or reports when available.",
            "default": true
          },
          "maxRows": {
            "title": "Max Rows",
            "minimum": 0,
            "maximum": 1000000,
            "type": "number",
            "description": "Maximum rows to process in one run; keep defaults low for safe first runs.",
            "default": 10
          },
          "sampleLimit": {
            "title": "Sample Limit",
            "minimum": 0,
            "maximum": 1000000,
            "type": "number",
            "description": "Sample Limit controls CSV Anti-Join Finder processing for the supplied inputs; keep values conservative for first runs.",
            "default": 10
          },
          "timeoutMs": {
            "title": "Timeout ms",
            "minimum": 0,
            "maximum": 1000000,
            "type": "number",
            "description": "Maximum time in milliseconds allowed for the CSV Anti-Join Finder operation before it is treated as timed out.",
            "default": 5000
          },
          "maxChargeUsd": {
            "title": "Max Charge USD",
            "minimum": 0,
            "maximum": 1000000,
            "type": "number",
            "description": "Maximum estimated PPE charge allowed for the run before the actor stops gracefully.",
            "default": 1
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}