{
  "openapi": "3.0.1",
  "info": {
    "title": "CMS CLIA Laboratory Scraper - Certification & Lab Leads",
    "description": "Search the official CMS CLIA laboratory snapshot by CLIA number, facility, state, city, ZIP, certificate type, facility type, status, accreditor, and reported test volume. Get source-linked certification, location, accreditation-match, affiliation, ownership, and volume evidence.",
    "version": "0.1",
    "x-build-id": "i76erTMiRHW51G0cQ"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/pink_comic~cms-clia-laboratory-certification-search/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-pink_comic-cms-clia-laboratory-certification-search",
        "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/pink_comic~cms-clia-laboratory-certification-search/runs": {
      "post": {
        "operationId": "runs-sync-pink_comic-cms-clia-laboratory-certification-search",
        "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/pink_comic~cms-clia-laboratory-certification-search/run-sync": {
      "post": {
        "operationId": "run-sync-pink_comic-cms-clia-laboratory-certification-search",
        "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": {
          "cliaNumber": {
            "title": "Exact CLIA Number",
            "pattern": "^$|^[0-9]{2}[A-Za-z][0-9]{7}$",
            "type": "string",
            "description": "Exact 10-character CLIA provider number, such as 01D0026356. Exact lookup takes precedence only when supplied."
          },
          "query": {
            "title": "Facility or Address Keyword",
            "minLength": 2,
            "type": "string",
            "description": "CMS full-text search across facility and address fields, such as MAYO CLINIC. Broad keywords can match related fields; combine with geography or certificate filters."
          },
          "state": {
            "title": "State or Territory",
            "pattern": "^$|^[A-Za-z]{2}$",
            "type": "string",
            "description": "Exact two-letter state or territory abbreviation."
          },
          "city": {
            "title": "Exact City",
            "minLength": 2,
            "type": "string",
            "description": "Exact CMS city value, case-insensitive."
          },
          "zipCode": {
            "title": "Exact ZIP Code",
            "pattern": "^$|^[0-9]{5}$",
            "type": "string",
            "description": "Exact five-digit physical-location ZIP code."
          },
          "certificateType": {
            "title": "CLIA Certificate Type",
            "enum": [
              "",
              "COMPLIANCE",
              "WAIVER",
              "ACCREDITATION",
              "PPM",
              "REGISTRATION"
            ],
            "type": "string",
            "description": "Official CMS certificate type code from the CLIA Provider of Services layout.",
            "default": ""
          },
          "facilityType": {
            "title": "Facility Type",
            "enum": [
              "",
              "AMBULANCE",
              "AMBULATORY_SURGERY_CENTER",
              "ANCILLARY_TEST_SITE",
              "ASSISTED_LIVING_FACILITY",
              "BLOOD_BANK",
              "COMMUNITY_CLINIC",
              "COMPREHENSIVE_OUTPATIENT_REHABILITATION",
              "ESRD_DIALYSIS",
              "FEDERALLY_QUALIFIED_HEALTH_CENTER",
              "HEALTH_FAIR",
              "HEALTH_MAINTENANCE_ORGANIZATION",
              "HOME_HEALTH_AGENCY",
              "HOSPICE",
              "HOSPITAL",
              "INDEPENDENT",
              "INDUSTRIAL",
              "INSURANCE",
              "INTERMEDIATE_CARE_FACILITY",
              "MOBILE_LAB",
              "PHARMACY",
              "PHYSICIAN_OFFICE",
              "OTHER_PRACTITIONER",
              "PRISON",
              "PUBLIC_HEALTH_LABORATORY",
              "RURAL_HEALTH_CLINIC",
              "SCHOOL_STUDENT_HEALTH_SERVICE",
              "SKILLED_NURSING_FACILITY",
              "TISSUE_BANK_REPOSITORY",
              "OTHER"
            ],
            "type": "string",
            "description": "Official CMS general facility type. Common lead filters include hospital, independent lab, physician office, pharmacy, public health lab, and mobile lab.",
            "default": ""
          },
          "status": {
            "title": "Snapshot Status",
            "enum": [
              "ACTIVE",
              "TERMINATED",
              "ALL"
            ],
            "type": "string",
            "description": "ACTIVE filters CMS CLIA termination code 00. TERMINATED includes nonzero termination/revocation/closure codes. This is snapshot evidence, not a real-time certification determination.",
            "default": "ACTIVE"
          },
          "accreditor": {
            "title": "Accreditor Match",
            "enum": [
              "",
              "A2LA",
              "AABB",
              "AOA",
              "ASHI",
              "CAP",
              "COLA",
              "JOINT_COMMISSION"
            ],
            "type": "string",
            "description": "Require CMS's accreditation match indicator for an organization. A match is administrative evidence, not proof of current good standing.",
            "default": ""
          },
          "minAnnualTestVolume": {
            "title": "Minimum Reported Annual Test Volume",
            "minimum": 0,
            "type": "integer",
            "description": "Local filter using the applicable CMS-116/CMS-1557/waived/PPMP volume fields. Volumes are application-reported and are not audited throughput or a quality metric.",
            "default": 0
          },
          "sortBy": {
            "title": "Sort Results By",
            "enum": [
              "facilityName",
              "annualTestVolume",
              "certificateEffectiveDate"
            ],
            "type": "string",
            "description": "Sort the bounded candidate set by facility name, applicable reported annual test volume, or certificate effective date.",
            "default": "facilityName"
          },
          "sortDirection": {
            "title": "Sort Direction",
            "enum": [
              "",
              "asc",
              "desc"
            ],
            "type": "string",
            "description": "Automatic uses ascending for facility name and descending for volume/date; choose an explicit direction to override it.",
            "default": ""
          },
          "maxCandidates": {
            "title": "Maximum Source Candidates Checked",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Bound for broad queries before local volume/status filtering and sorting. Every result discloses whether this candidate bound applied.",
            "default": 1000
          },
          "maxResults": {
            "title": "Maximum Laboratory Records",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "Total output rows after filtering and sorting.",
            "default": 25
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}