{
  "openapi": "3.0.1",
  "info": {
    "title": "Data Quality Gate",
    "description": "Before your AI agent acts on a dataset, check if it's trustworthy. Returns a deterministic verdict — RELIABLE / USABLE_WITH_CLEANING / UNRELIABLE — with exact facts: completeness,nulls,type errors,impossible values,duplicates, outliers.100% deterministic,no LLM, no hallucination. Any JSON dataset.",
    "version": "0.1",
    "x-build-id": "J1WtYmyjae2vRHRjE"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/aidatatools~data-quality-gate/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-aidatatools-data-quality-gate",
        "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/aidatatools~data-quality-gate/runs": {
      "post": {
        "operationId": "runs-sync-aidatatools-data-quality-gate",
        "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/aidatatools~data-quality-gate/run-sync": {
      "post": {
        "operationId": "run-sync-aidatatools-data-quality-gate",
        "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": {
          "rawJson": {
            "title": "Raw JSON dataset (array of objects)",
            "type": "array",
            "description": "The dataset to analyze, as a JSON array of row objects (e.g. items scraped by another Actor). Leave datasetId empty when using this.",
            "default": [
              {
                "id": 1,
                "address": "12 Elm Street",
                "city": "Springfield",
                "price": 250000,
                "surface_m2": 85,
                "rooms": 3,
                "agent_rating": 4.5,
                "listed_date": "2026-05-10",
                "agency": "Homefinder Realty",
                "description": "Charming 2-bedroom apartment near the park, recently renovated, close to transit.",
                "status": "active",
                "agent_notes": null
              },
              {
                "id": 2,
                "address": "45 Oak Avenue",
                "city": "Springfield",
                "price": 265000,
                "surface_m2": 88,
                "rooms": 3,
                "agent_rating": 4.2,
                "listed_date": "2026-05-11",
                "agency": "Homefinder Realty",
                "description": "Charming 2-bedroom apartment near the park, recently renovated, close to the transit stop.",
                "status": "active",
                "agent_notes": null
              },
              {
                "id": 1,
                "address": "12 Elm Street",
                "city": "Springfield",
                "price": 250000,
                "surface_m2": 85,
                "rooms": 3,
                "agent_rating": 4.5,
                "listed_date": "2026-05-10",
                "agency": "Homefinder Realty",
                "description": "Charming 2-bedroom apartment near the park, recently renovated, close to transit.",
                "status": "active",
                "agent_notes": null
              },
              {
                "id": 4,
                "address": "7 Pine Road",
                "city": "Shelbyville",
                "price": "$180,000",
                "surface_m2": 60,
                "rooms": 2,
                "agent_rating": 4.8,
                "listed_date": "2026-04-02",
                "agency": "Homefinder Realty",
                "description": "Cozy studio in the city center, walking distance to shops and restaurants.",
                "status": "active",
                "agent_notes": null
              },
              {
                "id": 5,
                "address": "9 Cedar Court",
                "city": "Shelbyville",
                "price": "$310,500",
                "surface_m2": 110,
                "rooms": 4,
                "agent_rating": 4.6,
                "listed_date": "2026-04-15",
                "agency": "Homefinder Realty",
                "description": "Spacious family home with a large backyard and a two-car garage.",
                "status": "sold",
                "agent_notes": null
              },
              {
                "id": 6,
                "address": "3 Birch Lane",
                "city": "Capital City",
                "price": "$425,000",
                "surface_m2": 140,
                "rooms": 5,
                "agent_rating": 4.9,
                "listed_date": "2026-06-01",
                "agency": "Homefinder Realty",
                "description": "Luxury villa with pool, modern kitchen, and panoramic city views.",
                "status": "active",
                "agent_notes": null
              },
              {
                "id": 7,
                "address": "21 Maple Drive",
                "city": "Capital City",
                "price": "$199,000",
                "surface_m2": -70,
                "rooms": 2,
                "agent_rating": 4.1,
                "listed_date": "2026-03-20",
                "agency": "Homefinder Realty",
                "description": "Bright and airy 1-bedroom condo close to downtown amenities.",
                "status": "active",
                "agent_notes": null
              },
              {
                "id": 8,
                "address": "18 Willow Way",
                "city": "Ogdenville",
                "price": "$145,000",
                "surface_m2": 55,
                "rooms": 2,
                "agent_rating": -1,
                "listed_date": "2026-02-18",
                "agency": "Homefinder Realty",
                "description": "Affordable starter home in a quiet residential neighborhood nearby.",
                "status": "active",
                "agent_notes": null
              },
              {
                "id": 9,
                "address": "30 Aspen Court",
                "city": "Ogdenville",
                "price": "$210,000",
                "surface_m2": 75,
                "rooms": 3,
                "agent_rating": 4.3,
                "listed_date": "1899-01-01",
                "agency": "Homefinder Realty",
                "description": "Recently updated 3-bedroom house with an updated kitchen and bath.",
                "status": "active",
                "agent_notes": null
              },
              {
                "id": 10,
                "address": "55 Chestnut St",
                "city": "North Haverbrook",
                "price": null,
                "surface_m2": 95,
                "rooms": 3,
                "agent_rating": 4.4,
                "listed_date": "2026-05-25",
                "agency": "Homefinder Realty",
                "description": "Modern townhouse with rooftop terrace and secure parking included.",
                "status": true,
                "agent_notes": null
              },
              {
                "id": 11,
                "address": "8 Poplar Place",
                "city": "North Haverbrook",
                "price": "$185,000",
                "surface_m2": 68,
                "agent_rating": 4,
                "listed_date": "2026-05-28",
                "agency": "Homefinder Realty",
                "description": "Well-maintained duplex close to schools and public transportation.",
                "status": "active",
                "agent_notes": null
              },
              {
                "id": 12,
                "address": "14 Sycamore Ave",
                "city": "Brockway",
                "price": "$220,000",
                "surface_m2": 80,
                "rooms": 3,
                "agent_rating": 4.5,
                "listed_date": "2026-06-10",
                "agency": "Homefinder Realty",
                "description": "Turn-key 3-bedroom home with updated appliances and fresh paint.",
                "status": "active",
                "agent_notes": null
              },
              {
                "id": 13,
                "address": "2 Magnolia Blvd",
                "city": "Brockway",
                "price": "",
                "surface_m2": 102,
                "rooms": 4,
                "agent_rating": 4.7,
                "listed_date": "2026-06-12",
                "agency": "Homefinder Realty",
                "description": "Elegant 4-bedroom colonial with a finished basement and deck.",
                "status": "active",
                "agent_notes": null
              },
              {
                "id": 14,
                "address": "27 Redwood Circle",
                "city": "Brockway",
                "price": "$275,000",
                "surface_m2": 90,
                "rooms": 3,
                "agent_rating": 4.2,
                "listed_date": "2026-06-15",
                "agency": "Homefinder Realty",
                "description": "Bright 3-bedroom ranch with an open floor plan and new roof.",
                "status": "active",
                "agent_notes": null
              },
              {
                "id": 15,
                "address": "41 Dogwood Trail",
                "city": "Capital City",
                "price": "$305,000",
                "surface_m2": 105,
                "rooms": 4,
                "agent_rating": 4.6,
                "listed_date": "2026-06-18",
                "agency": "Homefinder Realty",
                "description": "Updated 4-bedroom home near top-rated schools and parks nearby.",
                "status": "active",
                "agent_notes": null
              }
            ]
          },
          "datasetId": {
            "title": "Apify Dataset ID",
            "type": "string",
            "description": "ID of an existing Apify dataset to analyze instead of rawJson. Leave rawJson empty (or clear it to []) when using this."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}