{
  "openapi": "3.0.1",
  "info": {
    "title": "Healthcare Exclusion Screening - LEIE+Medicaid+FDA, $0.005",
    "description": "$0.005/exclusion record - screening a name against LEIE, Medicaid exclusion lists, and FDA debarment lists costs a nickel or two under the default cap (cap=0 for exhaustive). 'Diamond' returned 10 records for $0.05 (16 LEIE matches, 3 delivered under the cap). Monitor runs add $0.05/run. No API key.",
    "version": "0.1",
    "x-build-id": "efurQ5b545qJulpLI"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/mooseandraven~healthcare-exclusion-suite/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-mooseandraven-healthcare-exclusion-suite",
        "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/mooseandraven~healthcare-exclusion-suite/runs": {
      "post": {
        "operationId": "runs-sync-mooseandraven-healthcare-exclusion-suite",
        "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/mooseandraven~healthcare-exclusion-suite/run-sync": {
      "post": {
        "operationId": "run-sync-mooseandraven-healthcare-exclusion-suite",
        "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": {
          "names": {
            "title": "Names to screen",
            "type": "array",
            "description": "Individual or business names to screen against the selected exclusion sources (substring match, diacritic-folded, tolerant of \"Last, First\" vs \"First Last\" order — a deliberately simple screen, not a fuzzy-matching compliance engine; see README). Default is a real, honest worked example (\"Diamond\" — matches real excluded individuals/entities across several sources, capped by the default maxRecordsPerRun below). Leave empty to just fetch/monitor the selected sources without screening a specific list of names — in that case, with the default sources left untouched, this actor pulls only the current LEIE monthly supplement (a real, non-empty default) rather than all 7 full sources. Provide names for a real, exhaustive screen across ALL selected sources.",
            "default": [
              "Diamond"
            ],
            "items": {
              "type": "string"
            }
          },
          "sources": {
            "title": "Exclusion sources to include",
            "type": "array",
            "description": "Which sources to pull this run. LEIE = federal HHS-OIG List of Excluded Individuals/Entities. CA/GA/OH/NY = state Medicaid exclusion lists (only these 4 states are included — Illinois and Texas were evaluated and excluded: Illinois's data source turned out to be a bot-hostile portal with no real bulk file, Texas is Akamai-blocked). FDA_DEBARMENT = FDA drug-application debarment list. FDA_INVESTIGATORS = FDA disqualified/restricted clinical investigators. CMS_OPTOUT = Medicare opt-out affidavit list (OPT-IN ONLY — not in the default set; practitioners who opted out of Medicare for private contracting. This is a billing status, NOT an exclusion, so hits come back as separate `medicare-optout-record` items flagged `notAnExclusion: true`). This is NOT a legally-mandated \"screen all 50 states\" product — see README for the honest scope and mandate framing.",
            "items": {
              "type": "string",
              "enum": [
                "LEIE",
                "CA",
                "GA",
                "OH",
                "NY",
                "FDA_DEBARMENT",
                "FDA_INVESTIGATORS",
                "CMS_OPTOUT"
              ]
            },
            "default": [
              "LEIE",
              "CA",
              "GA",
              "OH",
              "NY",
              "FDA_DEBARMENT",
              "FDA_INVESTIGATORS"
            ]
          },
          "monitorMode": {
            "title": "Incremental monitor mode",
            "type": "boolean",
            "description": "When on, remembers what's already been seen (via Apify's key-value store) and emits a separate `new-listing` record for anything not seen on a prior run — designed for scheduled runs watching for newly-added exclusions. Also switches LEIE's fetch to the monthly supplement file (new additions only) instead of the full historical file when no names are being screened, since \"what's new\" is the natural monitoring question. Charges one `monitor-run` PPE event in addition to per-record events.",
            "default": false
          },
          "maxRecordsPerRun": {
            "title": "Max records per source (quota guard)",
            "minimum": 0,
            "type": "integer",
            "description": "Safety cap on matched records delivered per source, applied INDEPENDENTLY to each source (not shared — a shared budget would let one large source starve a smaller one while the run still reports success). Default of 3 keeps the default \"Diamond\" worked example an honest ~10-record sample (disclosed via a TRUNCATED status record per source where the cap bites) rather than silently billing for every real match. Set to 0 for no cap for your own real, exhaustive screen. The bare zero-input default path (no names, default sources) is internally capped at 500 regardless of this setting, to guarantee Apify's own daily auto-test run stays fast and cheap.",
            "default": 3
          },
          "includeStreetAddress": {
            "title": "Include street address (CMS_OPTOUT only)",
            "type": "boolean",
            "description": "Only affects the opt-in CMS_OPTOUT source. By default Medicare opt-out records omit the practitioner's street address (city and state are still returned) because the CMS list publishes practitioner practice addresses. Turn on to include the street address line(s) in the `address` field. No effect on any other source.",
            "default": false
          }
        }
      },
      "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
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "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
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}