{
  "openapi": "3.0.1",
  "info": {
    "title": "AutomationDirect US Product Search & Document Links",
    "description": "Extract AutomationDirect US products, exact item details, technical attributes, pricing, availability, and official PDF/manual/CAD links.",
    "version": "0.2",
    "x-build-id": "NmaIbsjvKopxffeWf"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/dromb~automationdirect-us-product-search-documents/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-dromb-automationdirect-us-product-search-documents",
        "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/dromb~automationdirect-us-product-search-documents/runs": {
      "post": {
        "operationId": "runs-sync-dromb-automationdirect-us-product-search-documents",
        "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/dromb~automationdirect-us-product-search-documents/run-sync": {
      "post": {
        "operationId": "run-sync-dromb-automationdirect-us-product-search-documents",
        "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": [
          "mode"
        ],
        "properties": {
          "mode": {
            "title": "Mode",
            "enum": [
              "search",
              "item",
              "batch_items",
              "document_links"
            ],
            "type": "string",
            "description": "Operation mode.",
            "default": "search"
          },
          "query": {
            "title": "Query",
            "type": "string",
            "description": "Required for search. Try a product family, part number, or component such as power supply.",
            "default": "power supply"
          },
          "itemId": {
            "title": "Item ID",
            "type": "string",
            "description": "Required for item/document_links. Non-empty, max length 100."
          },
          "itemIds": {
            "title": "Item IDs",
            "maxItems": 50,
            "type": "array",
            "description": "Required for batch_items. Raw array maximum 50 before deduplication.",
            "items": {
              "type": "string"
            }
          },
          "maxItems": {
            "title": "Max items",
            "minimum": 1,
            "maximum": 200,
            "type": "integer",
            "description": "Maximum number of search results. Keep this small for quick runs.",
            "default": 10
          },
          "enrichItems": {
            "title": "Enrich items",
            "type": "boolean",
            "description": "When true, enrich first enrichLimit results with official item API.",
            "default": false
          },
          "enrichLimit": {
            "title": "Enrich limit",
            "minimum": 0,
            "maximum": 20,
            "type": "integer",
            "description": "Maximum number of search results to enrich. Default 10, hard max 20.",
            "default": 10
          },
          "includeDocumentLinks": {
            "title": "Include document links",
            "type": "boolean",
            "description": "When false, documents array is forced empty.",
            "default": true
          },
          "includeTypes": {
            "title": "Document types",
            "uniqueItems": true,
            "type": "array",
            "description": "Optional filter for document_links/search document link output.",
            "items": {
              "type": "string"
            }
          },
          "requestDelayMs": {
            "title": "Request delay (ms)",
            "minimum": 1000,
            "maximum": 60000,
            "type": "integer",
            "description": "Conservative per-request minimum delay. Minimum 1000, maximum 60000.",
            "default": 1000
          },
          "maxRetries": {
            "title": "Max retries",
            "minimum": 0,
            "maximum": 2,
            "type": "integer",
            "description": "Retryable transport/429/5xx only. Maximum 2.",
            "default": 2
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Legacy Apify proxy configuration. Direct access is the verified and cheapest default.",
            "default": {
              "useApifyProxy": false
            }
          },
          "proxyStrategy": {
            "title": "Proxy strategy",
            "type": "object",
            "description": "Optional multi-layer proxy strategy. When enabled=true, this takes priority over legacy proxyConfiguration and both must not be enabled at the same time. Layer order defines fallback priority; include NONE explicitly for direct fallback.",
            "properties": {
              "enabled": {
                "title": "Enable proxy strategy",
                "type": "boolean",
                "default": false,
                "description": "Enable the multi-layer proxy strategy. If false, legacy proxyConfiguration remains supported."
              },
              "layers": {
                "title": "Proxy layers in priority order",
                "type": "array",
                "editor": "stringList",
                "default": [
                  "NONE"
                ],
                "description": "Ordered unique layers. NONE must be included explicitly for direct fallback.",
                "items": {
                  "type": "string"
                }
              },
              "countryCode": {
                "title": "Country code",
                "type": "string",
                "default": "US",
                "description": "Optional uppercase two-letter country/region code for Apify proxy layers, e.g. US, AU, GB."
              },
              "datacenterGroups": {
                "title": "Datacenter groups",
                "type": "array",
                "editor": "stringList",
                "default": [],
                "description": "Optional Apify proxy groups for DATACENTER layer.",
                "items": {
                  "type": "string"
                }
              },
              "residentialGroups": {
                "title": "Residential groups",
                "type": "array",
                "editor": "stringList",
                "default": [],
                "description": "Required when RESIDENTIAL layer is used.",
                "items": {
                  "type": "string"
                }
              },
              "specialGroups": {
                "title": "Special groups",
                "type": "array",
                "editor": "stringList",
                "default": [],
                "description": "Required when SPECIAL layer is used.",
                "items": {
                  "type": "string"
                }
              },
              "customProxyUrls": {
                "title": "Custom proxy URLs",
                "type": "array",
                "editor": "stringList",
                "default": [],
                "description": "Required for CUSTOM layer. Values are treated as secrets and are never written to output/evidence.",
                "items": {
                  "type": "string"
                }
              },
              "fallbackOn": {
                "title": "Fallback reasons",
                "type": "array",
                "editor": "stringList",
                "default": [
                  "PROXY_PROVIDER_ERROR",
                  "TRANSPORT_ERROR",
                  "RETRY_EXHAUSTED"
                ],
                "description": "Ordered unique fallback reasons that allow switching to the next layer.",
                "items": {
                  "type": "string"
                }
              }
            },
            "default": {
              "enabled": false,
              "layers": [
                "NONE"
              ],
              "countryCode": "US",
              "datacenterGroups": [],
              "residentialGroups": [],
              "specialGroups": [],
              "customProxyUrls": [],
              "fallbackOn": [
                "PROXY_PROVIDER_ERROR",
                "TRANSPORT_ERROR",
                "RETRY_EXHAUSTED"
              ]
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}