{
  "openapi": "3.0.1",
  "info": {
    "title": "Google Search Negative Keyword Preflight",
    "description": "Check supplied Search queries against account, campaign, ad-group and attached shared-list negatives. Literal conflict evidence, explicit coverage gaps, CSV and HTML reports.",
    "version": "0.1",
    "x-build-id": "JDT35AEYVEZOyOItm"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/h_murdock~negative-keyword-preflight/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-h_murdock-negative-keyword-preflight",
        "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/h_murdock~negative-keyword-preflight/runs": {
      "post": {
        "operationId": "runs-sync-h_murdock-negative-keyword-preflight",
        "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/h_murdock~negative-keyword-preflight/run-sync": {
      "post": {
        "operationId": "run-sync-h_murdock-negative-keyword-preflight",
        "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": [
          "accountId"
        ],
        "properties": {
          "accountId": {
            "title": "Account ID",
            "minLength": 1,
            "maxLength": 128,
            "type": "string",
            "description": "All rows belong to this one supplied account. Use separate runs for different accounts."
          },
          "queries": {
            "title": "Test queries (JSON)",
            "maxItems": 1000,
            "type": "array",
            "description": "Provide either queries or queriesCsv. IDs must be unique strings. Missing campaign/ad-group scope may leave applicability unresolved.",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "title": "id",
                  "type": "string",
                  "description": "String identifier; preserve leading zeros.",
                  "minLength": 1,
                  "maxLength": 128
                },
                "query": {
                  "title": "query",
                  "type": "string",
                  "description": "Literal Search query, never positive-keyword expansion.",
                  "minLength": 1,
                  "maxLength": 512
                },
                "campaignId": {
                  "title": "campaignId",
                  "type": "string",
                  "description": "Optional scope identifier. Blank means unavailable.",
                  "maxLength": 128
                },
                "adGroupId": {
                  "title": "adGroupId",
                  "type": "string",
                  "description": "Optional scope identifier. Blank means unavailable.",
                  "maxLength": 128
                },
                "campaignType": {
                  "title": "campaignType",
                  "type": "string",
                  "description": "Use search. Other campaign types produce unsupported findings.",
                  "default": "search",
                  "maxLength": 32
                }
              },
              "required": [
                "id",
                "query"
              ],
              "additionalProperties": false
            }
          },
          "negatives": {
            "title": "Negatives (JSON)",
            "maxItems": 2000,
            "type": "array",
            "description": "Provide either negatives or negativesCsv. Scope IDs must be explicit. Duplicate IDs are rejected.",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "title": "id",
                  "type": "string",
                  "description": "String identifier; preserve leading zeros.",
                  "minLength": 1,
                  "maxLength": 128
                },
                "text": {
                  "title": "text",
                  "type": "string",
                  "description": "Literal negative text without match-type wrappers.",
                  "minLength": 1,
                  "maxLength": 512
                },
                "matchType": {
                  "title": "matchType",
                  "type": "string",
                  "description": "broad, phrase or exact; unknown values produce review.",
                  "minLength": 1,
                  "maxLength": 32
                },
                "scope": {
                  "title": "scope",
                  "type": "string",
                  "description": "account, campaign, adGroup or sharedList; unknown values never become global.",
                  "minLength": 1,
                  "maxLength": 32
                },
                "campaignId": {
                  "title": "campaignId",
                  "type": "string",
                  "description": "Optional scope identifier. Blank means unavailable.",
                  "maxLength": 128
                },
                "adGroupId": {
                  "title": "adGroupId",
                  "type": "string",
                  "description": "Optional scope identifier. Blank means unavailable.",
                  "maxLength": 128
                },
                "listId": {
                  "title": "listId",
                  "type": "string",
                  "description": "Optional scope identifier. Blank means unavailable.",
                  "maxLength": 128
                }
              },
              "required": [
                "id",
                "text",
                "matchType",
                "scope"
              ],
              "additionalProperties": false
            }
          },
          "queriesCsv": {
            "title": "Test queries (CSV)",
            "maxLength": 4000000,
            "type": "string",
            "description": "CSV text with id,query and optional campaignId,adGroupId,campaignType. Remove queries JSON to use CSV."
          },
          "negativesCsv": {
            "title": "Negatives (CSV)",
            "maxLength": 4000000,
            "type": "string",
            "description": "CSV text with id,text,matchType,scope and optional campaignId,adGroupId,listId. Remove negatives JSON to use CSV."
          },
          "queryColumns": {
            "title": "Query CSV column map",
            "type": "object",
            "description": "Canonical field to exact CSV header, for example {\"id\":\"Query ID\",\"query\":\"Search term\"}. Used only with CSV. Unmapped columns are ignored only when an explicit map is supplied."
          },
          "negativeColumns": {
            "title": "Negative CSV column map",
            "type": "object",
            "description": "Canonical field to exact CSV header. Used only with CSV."
          },
          "delimiter": {
            "title": "CSV delimiter",
            "enum": [
              ",",
              ";",
              "\t"
            ],
            "type": "string",
            "description": "Delimiter shared by both CSV inputs.",
            "default": ","
          },
          "sharedListAttachments": {
            "title": "Shared-list attachments",
            "maxItems": 2000,
            "type": "array",
            "description": "Explicit listId to campaignId mapping in this account. Omitted live attachments are unverified.",
            "items": {
              "type": "object",
              "properties": {
                "listId": {
                  "title": "listId",
                  "type": "string",
                  "description": "String identifier; preserve leading zeros.",
                  "minLength": 1,
                  "maxLength": 128
                },
                "campaignId": {
                  "title": "campaignId",
                  "type": "string",
                  "description": "String identifier; preserve leading zeros.",
                  "minLength": 1,
                  "maxLength": 128
                }
              },
              "required": [
                "listId",
                "campaignId"
              ],
              "additionalProperties": false
            },
            "default": []
          },
          "maxConflictPairs": {
            "title": "Maximum conflict pairs",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Fail before billing rather than truncate if this output bound is exceeded.",
            "default": 5000
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}