{
  "openapi": "3.0.1",
  "info": {
    "title": "Landing Page Experiment Planner",
    "description": "Turn up to 50 supplied landing page audits into experiment cards. Each card includes source evidence, a proposed change, a conversion metric and guardrails. Send your audit JSON to prepare a plan for review.",
    "version": "0.1",
    "x-build-id": "AQbqE1qDVzrmmQ8ST"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/danielmichalek~landing-page-ab-hypothesis-generator/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-danielmichalek-landing-page-ab-hypothesis-generator",
        "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/danielmichalek~landing-page-ab-hypothesis-generator/runs": {
      "post": {
        "operationId": "runs-sync-danielmichalek-landing-page-ab-hypothesis-generator",
        "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/danielmichalek~landing-page-ab-hypothesis-generator/run-sync": {
      "post": {
        "operationId": "run-sync-danielmichalek-landing-page-ab-hypothesis-generator",
        "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": [
          "pages",
          "conversionGoal"
        ],
        "properties": {
          "conversionGoal": {
            "title": "Conversion goal",
            "enum": [
              "lead_submission",
              "purchase",
              "signup"
            ],
            "type": "string",
            "description": "Choose the customer action measured by the proposed experiment."
          },
          "measurementReady": {
            "title": "Conversion measurement confirmed",
            "type": "boolean",
            "description": "Set true only after confirming the conversion event, eligible visitor denominator, assignment and guardrail measurements. Detection of analytics in HTML alone does not establish readiness.",
            "default": false
          },
          "pages": {
            "title": "Supplied page audits",
            "minItems": 1,
            "maxItems": 50,
            "type": "array",
            "description": "Supply 1 to 50 page objects with unique pageId and at most 40 findings each. Use the landing-page-ad-audit finding IDs and exact PASS, WARN, FAIL or INFO statuses. The complete input is limited to 1.5 MB.",
            "items": {
              "type": "object",
              "required": [
                "pageId",
                "findings"
              ],
              "properties": {
                "pageId": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 160,
                  "title": "Page identifier",
                  "description": "Stable unique identifier used to join cards to the supplied audit.",
                  "editor": "textfield"
                },
                "url": {
                  "type": "string",
                  "maxLength": 2048,
                  "title": "Source page URL",
                  "description": "An HTTP or HTTPS reference used as an identifier. Query strings and fragments are removed from the report.",
                  "editor": "textfield"
                },
                "ok": {
                  "type": "boolean",
                  "title": "Source page accessible",
                  "description": "Copy the audit's accessibility result when it is available."
                },
                "adPromise": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 800,
                  "title": "Approved ad promise",
                  "description": "The exact offer promise approved for this page and its qualifiers.",
                  "editor": "textarea"
                },
                "verifiedTrustEvidence": {
                  "type": "boolean",
                  "title": "Verified trust evidence available",
                  "description": "Confirm that authentic evidence and permission to use it have been reviewed."
                },
                "findings": {
                  "type": "array",
                  "maxItems": 40,
                  "items": {
                    "type": "object",
                    "required": [
                      "id",
                      "status",
                      "message"
                    ],
                    "properties": {
                      "id": {
                        "type": "string",
                        "maxLength": 64,
                        "pattern": "^[a-z][a-z0-9_]*$",
                        "title": "Finding ID",
                        "description": "Exact source rule ID, such as cta or message_match.",
                        "editor": "textfield"
                      },
                      "status": {
                        "type": "string",
                        "enum": [
                          "PASS",
                          "WARN",
                          "FAIL",
                          "INFO"
                        ],
                        "title": "Finding status",
                        "description": "Exact source status.",
                        "editor": "select"
                      },
                      "message": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 2000,
                        "title": "Finding evidence",
                        "description": "The original bounded observation, retained as supplied data.",
                        "editor": "textarea"
                      }
                    }
                  },
                  "title": "Source audit findings",
                  "description": "Findings from the supplied audit, with unique IDs and exact statuses.",
                  "editor": "json"
                }
              }
            }
          },
          "maxItems": {
            "title": "Complete reports per run",
            "minimum": 1,
            "maximum": 1,
            "type": "integer",
            "description": "One complete report contains all supplied pages, experiment cards and prerequisites.",
            "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
                  },
                  "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}