{
  "openapi": "3.0.1",
  "info": {
    "title": "Browser Network & HAR Inspector | XHR, Fetch, API Traffic",
    "description": "Capture real browser network traffic, inspect XHR, Fetch and API calls, detect failures and redirects, and export HAR 1.2 files from public webpages.",
    "version": "0.1",
    "x-build-id": "RRXNiuDI5bi22DZbQ"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/produkdigitalali~browser-network-har-capture-inspector/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-produkdigitalali-browser-network-har-capture-inspector",
        "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/produkdigitalali~browser-network-har-capture-inspector/runs": {
      "post": {
        "operationId": "runs-sync-produkdigitalali-browser-network-har-capture-inspector",
        "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/produkdigitalali~browser-network-har-capture-inspector/run-sync": {
      "post": {
        "operationId": "run-sync-produkdigitalali-browser-network-har-capture-inspector",
        "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": [
          "startUrls"
        ],
        "properties": {
          "startUrls": {
            "title": "Start URLs",
            "minItems": 1,
            "maxItems": 20,
            "type": "array",
            "description": "Public HTTP(S) pages to capture. Private, loopback, link-local, metadata, reserved, and credential-bearing destinations are rejected.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "waitUntil": {
            "title": "Navigation wait condition",
            "enum": [
              "domcontentloaded",
              "load",
              "networkidle"
            ],
            "type": "string",
            "description": "When initial navigation is considered complete before the optional capture delay.",
            "default": "domcontentloaded"
          },
          "captureDurationMs": {
            "title": "Capture duration after navigation",
            "minimum": 0,
            "maximum": 30000,
            "type": "integer",
            "description": "Additional milliseconds to keep the page open so late XHR/fetch activity can be observed.",
            "default": 1500
          },
          "includePatterns": {
            "title": "Include URL patterns",
            "maxItems": 50,
            "type": "array",
            "description": "Optional glob patterns for recorded requests, for example *api* or https://api.example.com/*. Browser loading is not blocked by this filter.",
            "items": {
              "type": "string",
              "maxLength": 500
            }
          },
          "excludePatterns": {
            "title": "Exclude URL patterns",
            "maxItems": 50,
            "type": "array",
            "description": "Optional glob patterns excluded from HAR/detail recording.",
            "items": {
              "type": "string",
              "maxLength": 500
            }
          },
          "resourceTypes": {
            "title": "Resource types",
            "maxItems": 20,
            "type": "array",
            "description": "Optional resource-type filter. Leave empty to capture all supported browser requests.",
            "items": {
              "type": "string",
              "enum": [
                "document",
                "stylesheet",
                "image",
                "media",
                "font",
                "script",
                "texttrack",
                "xhr",
                "fetch",
                "eventsource",
                "websocket",
                "manifest",
                "other"
              ]
            }
          },
          "includeDetailedRows": {
            "title": "Include detailed request rows",
            "type": "boolean",
            "description": "When enabled, push one dataset row per captured network request in addition to the page summary. Disabled by default to keep datasets compact.",
            "default": false
          },
          "captureResponseBodies": {
            "title": "Capture response bodies",
            "type": "boolean",
            "description": "OFF by default. When enabled, only bounded textual response bodies are embedded in the HAR. Secret headers remain redacted.",
            "default": false
          },
          "maxResponseBodyBytes": {
            "title": "Maximum response body bytes",
            "minimum": 0,
            "maximum": 1048576,
            "type": "integer",
            "description": "Per-response upper bound for optional textual body capture.",
            "default": 262144
          },
          "maxRequestsPerPage": {
            "title": "Maximum captured requests per page",
            "minimum": 10,
            "maximum": 2000,
            "type": "integer",
            "description": "Caps how many requests are recorded into HAR/detail rows. Additional browser traffic may continue but is not recorded.",
            "default": 500
          },
          "maxHarBytes": {
            "title": "Maximum HAR artifact bytes",
            "minimum": 262144,
            "maximum": 20971520,
            "type": "integer",
            "description": "HAR artifacts are size-bounded. Optional bodies are removed first, then entries are truncated if necessary.",
            "default": 8388608
          },
          "maxPages": {
            "title": "Maximum pages per run",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "Maximum number of start URLs processed in this run.",
            "default": 10
          },
          "slowThresholdMs": {
            "title": "Slow request threshold",
            "minimum": 100,
            "maximum": 60000,
            "type": "integer",
            "description": "Requests at or above this duration are classified as slow in the summary.",
            "default": 1000
          },
          "navigationTimeoutMs": {
            "title": "Navigation timeout",
            "minimum": 1000,
            "maximum": 120000,
            "type": "integer",
            "description": "Maximum time for initial page navigation in milliseconds.",
            "default": 30000
          },
          "maxRunSeconds": {
            "title": "Maximum run runtime",
            "minimum": 10,
            "maximum": 1800,
            "type": "integer",
            "description": "Overall run budget in seconds, excluding a small amount of Actor startup/shutdown overhead.",
            "default": 180
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Optional Apify Proxy or custom HTTP(S) proxy. The Actor keeps its own public-destination guard in front of the upstream proxy."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}