{
  "openapi": "3.0.1",
  "info": {
    "title": "Xometry Scraper | Capabilities Materials Case Studies",
    "description": "Scrape Xometry.com manufacturing capabilities, materials, finishes, industries, resources, and case studies. Extract titles, URLs, FAQ, images, and JSON-LD from public marketing CMS pages. Export Excel, CSV, JSON. Guest preview only — Instant Quote login economics out of scope.",
    "version": "0.3",
    "x-build-id": "tbfovm3APb9Q7yT8m"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/lentic_clockss~xometry-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-lentic_clockss-xometry-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/lentic_clockss~xometry-scraper/runs": {
      "post": {
        "operationId": "runs-sync-lentic_clockss-xometry-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/lentic_clockss~xometry-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-lentic_clockss-xometry-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": {
          "mode": {
            "title": "Mode",
            "enum": [
              "capabilities",
              "capability",
              "materials",
              "material",
              "finishes",
              "case_studies",
              "case_study",
              "start_urls",
              "discover",
              "industries",
              "resources"
            ],
            "type": "string",
            "description": "capabilities | capability | materials | material | finishes | case_studies | case_study | start_urls | discover (catalogs full marketing surface) | industries | resources",
            "default": "capabilities"
          },
          "country": {
            "title": "Country / market",
            "enum": [
              "US",
              "GB",
              "DE",
              "EU",
              "USA",
              "GBR",
              "UK",
              "DEU"
            ],
            "type": "string",
            "description": "Market code. Maps domain + proxyCountry (US→.com, GB→.co.uk, DE→.de, EU→.eu). UK/DE/EU may fallback to .com when the regional site serves a lander without CMS page-data; DE/EU may 403 without residential egress.",
            "default": "US"
          },
          "domain": {
            "title": "Domain",
            "enum": [
              "www.xometry.com",
              "www.xometry.co.uk",
              "www.xometry.de",
              "www.xometry.eu"
            ],
            "type": "string",
            "description": "Optional host override, e.g. www.xometry.com or www.xometry.co.uk. UK/DE/EU landers may fallback to www.xometry.com for content.",
            "default": "www.xometry.com"
          },
          "capabilitySlug": {
            "title": "Capability slug",
            "type": "string",
            "description": "Required for mode=capability. e.g. cnc-machining-service or nested parent/child"
          },
          "materialSlug": {
            "title": "Material slug",
            "type": "string",
            "description": "Required for mode=material. e.g. material-cnc-machining-metal"
          },
          "caseStudyUid": {
            "title": "Case study uid",
            "type": "string",
            "description": "Required for mode=case_study. e.g. sentrilock"
          },
          "startUrls": {
            "title": "Start URLs",
            "type": "array",
            "description": "Batch Xometry URLs (capabilities / materials / finishes / case studies / industries / resources). Mixed URLs OK.",
            "items": {
              "type": "string"
            }
          },
          "crawlChildren": {
            "title": "Crawl children",
            "type": "boolean",
            "description": "When true, discover nested capability children from hub / capability_list (depth limited by maxDepth)",
            "default": true
          },
          "enrichDetails": {
            "title": "Enrich details",
            "type": "boolean",
            "description": "When true (default), enrich detail HTML with JSON-LD, images, FAQ, and headquarters contact (phones/emails/address). Keep true so HQ JSON-LD is copied onto capability/case items.",
            "default": true
          },
          "maxResults": {
            "title": "Max results",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Maximum records to return (free plan capped at 200)",
            "default": 50
          },
          "maxDepth": {
            "title": "Max crawl depth",
            "minimum": 0,
            "maximum": 5,
            "type": "integer",
            "description": "Max nesting depth when crawlChildren is enabled",
            "default": 2
          },
          "proxyCountry": {
            "title": "Proxy country",
            "type": "string",
            "description": "ISO2 egress hint. Auto-filled from country/domain when left as US default on non-US markets.",
            "default": "US"
          },
          "workerBaseUrl": {
            "title": "Worker base URL override",
            "type": "string",
            "description": "Optional https Cloud Run override (allowlisted)"
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}