{
  "openapi": "3.0.1",
  "info": {
    "title": "Actor Quality Guard",
    "description": "Audit Apify Actors for contract integrity, machine discovery, execution readiness, pricing, safety, and Store readiness. Returns deterministic scores, blockers, rule IDs, and repair recommendations.",
    "version": "0.0",
    "x-build-id": "4DwZicdD8UQAhdsOd"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/skilled_glee~actor-quality-guard/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-skilled_glee-actor-quality-guard",
        "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/skilled_glee~actor-quality-guard/runs": {
      "post": {
        "operationId": "runs-sync-skilled_glee-actor-quality-guard",
        "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/skilled_glee~actor-quality-guard/run-sync": {
      "post": {
        "operationId": "run-sync-skilled_glee-actor-quality-guard",
        "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",
        "required": [
          "assessments"
        ],
        "properties": {
          "assessments": {
            "title": "Actor assessments",
            "minItems": 1,
            "maxItems": 25,
            "type": "array",
            "description": "One to 25 actor assessments. Each must carry enough evidence for quality evaluation; missing evidence is reported as unknown, never invented.",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "actorRef"
              ],
              "properties": {
                "actorRef": {
                  "title": "Actor reference",
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "actorId",
                    "slug"
                  ],
                  "properties": {
                    "actorId": {
                      "type": "string",
                      "maxLength": 60,
                      "title": "Actor ID",
                      "description": "Apify Actor ID."
                    },
                    "slug": {
                      "type": "string",
                      "maxLength": 80,
                      "title": "Actor slug",
                      "description": "URL-friendly Actor slug."
                    },
                    "name": {
                      "type": "string",
                      "maxLength": 120,
                      "title": "Actor name",
                      "description": "Human-readable Actor name."
                    }
                  },
                  "description": "Identifies the Actor being assessed."
                },
                "correlationId": {
                  "title": "Correlation ID",
                  "description": "Caller-supplied identifier preserved in the report for batch correlation.",
                  "type": "string",
                  "maxLength": 120
                },
                "manifest": {
                  "title": "Actor manifest",
                  "description": "Contents of .actor/actor.json.",
                  "type": "object"
                },
                "inputSchema": {
                  "title": "Input schema",
                  "description": "Contents of .actor/input_schema.json.",
                  "type": "object"
                },
                "outputSchema": {
                  "title": "Output schema",
                  "description": "Contents of .actor/output_schema.json.",
                  "type": "object"
                },
                "datasetSchema": {
                  "title": "Dataset schema",
                  "description": "Dataset fields from manifest storages.",
                  "type": "object"
                },
                "capabilityCard": {
                  "title": "Capability card",
                  "description": "provides, outputContract, useCases.",
                  "type": "object"
                },
                "discovery": {
                  "title": "Discovery metadata",
                  "description": "Title, description, categories, keywords.",
                  "type": "object"
                },
                "pricing": {
                  "title": "Pricing configuration",
                  "description": "Pricing model and paid-event definitions.",
                  "type": "object"
                },
                "readme": {
                  "title": "README text",
                  "description": "Store README or description markdown.",
                  "type": "string",
                  "maxLength": 50000
                },
                "exampleInput": {
                  "title": "Example input",
                  "description": "Runnable example input.",
                  "type": "object"
                },
                "exampleOutput": {
                  "title": "Example output",
                  "description": "Example output.",
                  "type": "object"
                },
                "runEvidence": {
                  "title": "Run or benchmark evidence",
                  "description": "Recorded runs and cost evidence.",
                  "type": "object"
                },
                "repairBundle": {
                  "title": "Repair bundle",
                  "description": "Repair-bundle evidence from the Capability Contract Repair Bridge.",
                  "type": "object"
                }
              }
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}