{
  "openapi": "3.0.1",
  "info": {
    "title": "Findchips Scraper: Electronic Part Prices, Stock & Offers",
    "description": "Scrape Findchips for electronic component distributor offers by part number: price breaks, live stock, MOQ, authorized and independent channels, and buy links. Compare prices across distributors, rank the cheapest source at your order quantity, and monitor parts for price drops.",
    "version": "0.1",
    "x-build-id": "HoC44tlQzprKxf2Qd"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/getascraper~findchips-part-offer-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-getascraper-findchips-part-offer-scraper",
        "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/getascraper~findchips-part-offer-scraper/runs": {
      "post": {
        "operationId": "runs-sync-getascraper-findchips-part-offer-scraper",
        "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/getascraper~findchips-part-offer-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-getascraper-findchips-part-offer-scraper",
        "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",
        "properties": {
          "partNumbers": {
            "title": "Manufacturer part numbers (MPNs)",
            "type": "array",
            "description": "Electronic component part numbers to look up across distributors, for example LM358 or STM32F103C8T6. Each entry runs one Findchips search and returns every distributor offer found. This is the primary, most reliable input.",
            "default": [
              "LM358"
            ],
            "items": {
              "type": "string"
            }
          },
          "searchUrls": {
            "title": "Findchips search URLs",
            "type": "array",
            "description": "Full Findchips search URLs such as https://www.findchips.com/search/LM358. The part number is read from the URL path, so this is an alternative to the part numbers field above.",
            "default": [],
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "outputMode": {
            "title": "Output shape",
            "enum": [
              "product",
              "offers"
            ],
            "type": "string",
            "description": "Choose 'product' for one aggregated row per part number with nested distributor offers and cross-distributor buying stats, or 'offers' for one flat row per individual distributor offer (best for spreadsheets and BigQuery).",
            "default": "product"
          },
          "targetQuantity": {
            "title": "Target order quantity",
            "minimum": 0,
            "maximum": 10000000,
            "type": "integer",
            "description": "Your intended purchase quantity. When set above 0, every offer is scored at this quantity using its real price-break ladder, and each product reports the single cheapest in-stock distributor at that quantity. Set to 0 to skip this procurement calculation.",
            "default": 0
          },
          "authorizedOnly": {
            "title": "Authorized and manufacturer-direct only",
            "type": "boolean",
            "description": "Keep only offers from authorized distributors or the manufacturer direct, dropping independent brokers. Useful for traceability and counterfeit-avoidance sourcing policies.",
            "default": false
          },
          "independentOnly": {
            "title": "Independent distributors only",
            "type": "boolean",
            "description": "Keep only independent and broker offers, dropping authorized channels. Useful when hunting end-of-life or allocated parts on the secondary market.",
            "default": false
          },
          "inStockOnly": {
            "title": "In-stock offers only",
            "type": "boolean",
            "description": "Drop offers with no reported stock, so the result only contains parts you can actually buy right now.",
            "default": false
          },
          "exactMatchOnly": {
            "title": "Exact part-number match only",
            "type": "boolean",
            "description": "Keep only offers whose manufacturer part number exactly matches your query, ignoring separators and case. Turn off to also capture close variants and packaging options Findchips returns.",
            "default": false
          },
          "excludeSponsored": {
            "title": "Exclude sponsored distributors",
            "type": "boolean",
            "description": "Drop distributor blocks Findchips marks as sponsored, leaving only organically ranked results.",
            "default": false
          },
          "monitorMode": {
            "title": "Price and stock monitoring",
            "enum": [
              "off",
              "track"
            ],
            "type": "string",
            "description": "Set to 'track' to turn this into a recurring monitor: each run compares every offer and part against the previous run's saved snapshot and tags rows as NEW, PRICE_DROP, PRICE_RISE, STOCK_CHANGE, or UNCHANGED. Schedule it to catch price drops and restocks automatically.",
            "default": "off"
          },
          "monitorStateName": {
            "title": "Monitor scope name",
            "type": "string",
            "description": "Name of the saved snapshot this monitor compares against. Use one name per watchlist so separate scheduled runs do not overwrite each other. Only used when monitoring is set to track.",
            "default": "findchips-monitor-default"
          },
          "notifyOnlyChanges": {
            "title": "Output changed rows only",
            "type": "boolean",
            "description": "When monitoring, emit only rows that changed since the previous run (anything not UNCHANGED). Keeps scheduled-run datasets small and alert-friendly.",
            "default": false
          },
          "maxItems": {
            "title": "Maximum output rows",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Upper bound on the number of rows written to the dataset (products in product mode, offers in offers mode). Keeps scheduled and test runs fast and predictable.",
            "default": 20
          },
          "maxOffersPerPart": {
            "title": "Maximum offers per part",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "In product mode, the maximum number of distributor offers nested under each part number, kept cheapest-first.",
            "default": 25
          },
          "requestDelaySecs": {
            "title": "Delay between searches (seconds)",
            "minimum": 0,
            "maximum": 60,
            "type": "number",
            "description": "Pause added after each search page is processed, to stay polite to the source site. Increase it if you scrape large watchlists.",
            "default": 1
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Proxy settings. US residential proxy is the default because Findchips only returns full distributor offers to residential visitors, and a US location returns prices in USD. Pick a different country group to get prices in that country's currency.",
            "default": {
              "useApifyProxy": true,
              "apifyProxyGroups": [
                "RESIDENTIAL"
              ],
              "apifyProxyCountry": "US"
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}