{
  "openapi": "3.1.0",
  "info": {
    "title": "Brightdata API",
    "description": "用于与数据集市场交互的 API",
    "version": "1.0.0"
  },
  "servers": [
    {
      "url": "https://api.brightdata.com"
    }
  ],
  "security": [
    {
      "bearerAuth": []
    }
  ],
  "paths": {
    "/datasets/filter": {
      "post": {
        "operationId": "filterDataset",
        "description": "基于提供的过滤条件创建数据集快照",
        "parameters": [
          {
            "name": "dataset_id",
            "in": "query",
            "description": "要过滤的数据集 ID（在 multipart/form-data 模式下为必填）",
            "required": false,
            "schema": {
              "type": "string",
              "example": "gd_l1viktl72bvl7bjuj0"
            }
          },
          {
            "name": "records_limit",
            "description": "限制快照中包含的记录数量",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "example": 1000
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": ["dataset_id", "filter"],
                "properties": {
                  "dataset_id": {
                    "type": "string",
                    "description": "要过滤的数据集 ID",
                    "example": "gd_l1viktl72bvl7bjuj0"
                  },
                  "records_limit": {
                    "type": "integer",
                    "description": "限制快照中包含的记录数量",
                    "example": 1000
                  },
                  "filter": {
                    "$ref": "#/components/schemas/DatasetFilter"
                  }
                }
              }
            },
            "multipart/form-data": {
              "schema": {
                "$ref": "#/components/schemas/FilterDatasetBody"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "快照创建任务已成功启动",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "snapshot_id": {
                      "type": "string",
                      "description": "快照 ID"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "错误请求",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationErrorBody"
                },
                "example": {
                  "validation_errors": [
                    "\"filter.filters[0].invalid_prop\" 不被允许",
                    "\"records_limit\" 必须是正数"
                  ]
                }
              }
            }
          },
          "402": {
            "description": "余额不足，无法创建快照",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                },
                "example": {
                  "error": "您当前的余额不足以处理此数据采集请求。请向账户添加资金或调整请求以继续。($1 缺失)"
                }
              }
            }
          },
          "422": {
            "description": "提供的过滤条件未匹配到任何记录",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                },
                "example": {
                  "error": "提供的过滤条件未匹配到任何记录"
                }
              }
            }
          },
          "429": {
            "description": "并行任务过多",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                },
                "example": {
                  "error": "每个数据集的最大任务限制 25 已超出"
                }
              }
            }
          }
        }
      }
    },
    "/datasets/list": {
      "get": {
        "description": "获取可用数据集列表",
        "operationId": "listDatasets",
        "tags": ["Datasets"],
        "responses": {
          "200": {
            "description": "可用数据集列表",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/DatasetListItem"
                  },
                  "example": [
                    {
                      "id": "gd_l1vijqt9jfj7olije",
                      "name": "Crunchbase 公司信息",
                      "size": 2300000
                    },
                    {
                      "id": "gd_l1vikfch901nx3by4",
                      "name": "Instagram - 个人资料",
                      "size": 620000000
                    }
                  ]
                }
              }
            }
          },
          "401": {
            "description": "未授权 - API 密钥无效或缺失",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string",
                      "example": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "服务器内部错误",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string",
                      "example": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/datasets/snapshots": {
      "get": {
        "operationId": "listDatasetSnapshots",
        "description": "获取数据集快照元数据",
        "parameters": [
          {
            "in": "query",
            "name": "dataset_id",
            "description": "数据集 ID",
            "required": false,
            "schema": {
              "type": "string",
              "example": "gd_l1viktl72bvl7bjuj0"
            }
          },
          {
            "in": "query",
            "name": "view_id",
            "description": "视图 ID",
            "required": false,
            "schema": {
              "type": "string",
              "example": "v_m6iezgld2c56zjwchm"
            }
          },
          {
            "in": "query",
            "name": "status",
            "description": "快照状态",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/DatasetSnapshotStatus"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "成功",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DatasetSnapshotsMeta"
                }
              }
            }
          }
        }
      }
    },
    "/datasets/snapshots/{id}": {
      "get": {
        "operationId": "getDatasetSnapshot",
        "description": "获取数据集快照元数据",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "description": "快照 ID 是特定数据快照的唯一标识符，用于通过 API 触发的数据采集任务中获取结果。更多信息请参阅 [Snapshot ID](/cn/api-reference/terminology#snapshot-id)。",
            "required": true,
            "schema": {
              "type": "string",
              "example": "snap_m2bxug4e2o352v1jv1"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "成功",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DatasetSnapshotMeta"
                }
              }
            }
          },
          "404": {
            "description": "未找到快照",
            "content": {
              "text/html": {
                "schema": {
                  "type": "string",
                  "example": "未找到快照"
                }
              }
            }
          }
        }
      }
    },
    "/datasets/snapshots/{id}/parts": {
      "get": {
        "operationId": "listDatasetSnapshotParts",
        "description": "获取数据集快照传输部分。此处使用的所有查询参数需要与下载快照时使用的参数匹配，以获取准确的部分",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "description": "快照 ID 是特定数据快照的唯一标识符，用于通过 API 触发的数据采集任务中获取结果。更多信息请参阅 [Snapshot ID](/cn/api-reference/terminology#snapshot-id)。",
            "required": true,
            "schema": {
              "type": "string",
              "example": "s_m4x7enmven8djfqak"
            }
          },
          {
            "in": "query",
            "name": "format",
            "description": "响应格式",
            "schema": {
              "type": "string",
              "enum": ["json", "ndjson", "jsonl", "csv"],
              "default": "json"
            }
          },
          {
            "in": "query",
            "name": "compress",
            "description": "响应是否使用 gzip 格式压缩",
            "schema": {
              "type": "boolean",
              "default": false
            }
          },
          {
            "in": "query",
            "name": "batch_size",
            "description": "每个响应批次中包含的记录数量",
            "schema": {
              "type": "integer",
              "minimum": 1000
            }
          }
        ],
        "responses": {
          "200": {
            "description": "成功",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DatasetSnapshotParts"
                }
              }
            }
          },
          "400": {
            "description": "快照未准备好",
            "content": {
              "text/html": {
                "schema": {
                  "type": "string",
                  "example": "快照未准备好"
                }
              }
            }
          },
          "404": {
            "description": "未找到快照",
            "content": {
              "text/html": {
                "schema": {
                  "type": "string",
                  "example": "未找到快照"
                }
              }
            }
          }
        }
      }
    },
    "/datasets/snapshots/{id}/download": {
      "get": {
        "operationId": "downloadDatasetSnapshot",
        "description": "获取数据集快照内容",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "description": "快照 ID 是特定数据快照的唯一标识符，用于通过 API 触发的数据采集任务中获取结果。更多信息请参阅 [Snapshot ID](/cn/api-reference/terminology#snapshot-id)。",
            "required": true,
            "schema": {
              "type": "string",
              "example": "snap_m2bxug4e2o352v1jv1"
            }
          },
          {
            "in": "query",
            "name": "format",
            "description": "响应格式",
            "schema": {
              "$ref": "#/components/schemas/DeliveredFileExt",
              "default": "jsonl"
            }
          },
          {
            "in": "query",
            "name": "compress",
            "description": "使用 gzip 格式压缩响应",
            "schema": {
              "type": "boolean",
              "default": false
            }
          },
          {
            "in": "query",
            "name": "batch_size",
            "description": "每个响应批次中包含的记录数量",
            "schema": {
              "type": "integer",
              "minimum": 1000
            }
          },
          {
            "in": "query",
            "name": "part",
            "description": "要返回的批次编号，编号从 1 开始",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "成功",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DatasetSnapshotContent"
                }
              }
            }
          },
          "202": {
            "description": "快照未准备好",
            "content": {
              "text/html": {
                "schema": {
                  "type": "string",
                  "example": "快照正在生成，请几分钟后重试"
                }
              }
            }
          },
          "404": {
            "description": "未找到快照",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string",
                      "example": "未找到快照"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "错误请求",
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/ErrorBody",
                      "example": {
                        "error": "快照未准备好"
                      }
                    },
                    {
                      "$ref": "#/components/schemas/ValidationErrorBody",
                      "example": {
                        "validation_errors": [
                          "\"format\" 必须是 [json, ndjson, jsonl, csv] 中之一",
                          "\"compress\" 必须为布尔值",
                          "\"batch_size\" 必须大于或等于 1000",
                          "\"part\" 必须大于或等于 1"
                        ]
                      }
                    }
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/datasets/snapshots/{id}/deliver": {
      "post": {
        "operationId": "deliverDatasetSnapshot",
        "description": "交付数据集快照",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "description": "快照 ID 是特定数据快照的唯一标识符，用于通过 API 触发的数据采集任务中获取结果。更多信息请参阅 [Snapshot ID](/cn/api-reference/terminology#snapshot-id)。",
            "required": true,
            "schema": {
              "type": "string",
              "example": "snap_m2bxug4e2o352v1jv1"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DeliverSnapshotBody"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "成功",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "交付任务 ID"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "未找到快照",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string",
                      "example": "未找到快照"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/datasets/v3/log/{snapshot_id}": {
      "get": {
        "operationId": "getScrapeSnapshotLog",
        "description": "获取特定数据集快照的日志",
        "parameters": [
          {
            "name": "snapshot_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "example": "s_mcd3rc6l2md984eoij"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "成功",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SnapshotDataResponse"
                }
              }
            }
          },
          "404": {
            "description": "未找到快照",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string",
                      "example": "未找到快照"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/datasets/v3/trigger": {
      "post": {
        "operationId": "triggerScrape",
        "description": "根据请求体提供的输入抓取目标网站",
        "parameters": [
          {
            "name": "dataset_id",
            "description": "触发数据采集的数据集 ID。",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "example": "gd_l1vikfnt1wgvvqz95w"
            }
          },
          {
            "name": "custom_output_fields",
            "description": "输出列列表，用 `|` 分隔 (例如 `url|about.updated_on`)。过滤响应，仅包含指定字段。",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "example": "url|about.updated_on"
            }
          },
          {
            "name": "type",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": ["discover_new"]
            },
            "description": "设置为 \"discover_new\" 以触发包含发现阶段的数据采集。"
          },
          {
            "name": "discover_by",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "指定使用哪种发现方法。可选项包括: \"keyword\"、\"best_sellers_url\"、\"category_url\"、\"location\" 等（根据具体 API）。仅对包含发现阶段的采集相关。"
          },
          {
            "name": "include_errors",
            "in": "query",
            "schema": {
              "type": "boolean"
            },
            "description": "在结果中包含错误报告。"
          },
          {
            "name": "limit_per_input",
            "in": "query",
            "schema": {
              "type": "number",
              "minimum": 1
            },
            "description": "限制每个输入的结果数量。建议在请求体中与 `input` 并列发送 `limit_per_input`。该查询参数在 `/scrape` 和 `/trigger` 上同样会限制结果数量（2026 年 9 月 30 日验证）。"
          },
          {
            "name": "limit_multiple_results",
            "in": "query",
            "schema": {
              "type": "number",
              "minimum": 1
            },
            "description": "限制总结果数量。"
          },
          {
            "name": "notify",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "当采集完成时，通知将发送到此 URL，包含 snapshot_id 和状态。"
          },
          {
            "name": "endpoint",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "数据将被传送到的 webhook URL。"
          },
          {
            "name": "format",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": ["json", "ndjson", "jsonl", "csv"]
            },
            "description": "投递数据的格式：`json`、`ndjson`、`jsonl` 或 `csv`。如需下载快照，请在下载请求上设置 `format`；不设置时下载结果为 NDJSON。如需 Parquet 文件，请投递到存储，并将 `deliver.filename.extension` 设为 `parquet`。见[输出格式](/cn/products/scrapers/scrapers-library/data-delivery#支持哪些输出格式)。"
          },
          {
            "name": "auth_header",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "发送通知到 notify URL 或通过 webhook 传输数据时使用的授权头。"
          },
          {
            "name": "uncompressed_webhook",
            "in": "query",
            "schema": {
              "type": "boolean"
            },
            "description": "默认情况下，数据会被压缩发送到 webhook。传 true 可不压缩发送。"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "oneOf": [
                  {
                    "$ref": "#/components/schemas/TriggerAndDeliverBody",
                    "title": "交付配置和输入"
                  },
                  {
                    "$ref": "#/components/schemas/TriggerInput",
                    "title": "仅输入"
                  }
                ]
              }
            },
            "multipart/form-data": {
              "schema": {
                "type": "string",
                "description": "CSV 文件，字段名为 data"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "采集任务成功启动",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "snapshot_id": {
                      "type": "string",
                      "description": "可在后续 API 中使用的请求 ID",
                      "example": "s_m4x7enmven8djfqak"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/datasets/v3/snapshot/{snapshot_id}": {
      "get": {
        "operationId": "downloadScrapeSnapshot",
        "description": "下载快照内容",
        "parameters": [
          {
            "name": "snapshot_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "example": "s_m4x7enmven8djfqak",
              "description": "触发采集时返回的 ID"
            }
          },
          {
            "name": "format",
            "in": "query",
            "description": "接收数据的格式。不设置 `format` 时，快照以 NDJSON 下载，每行一条记录；如需 JSON 数组，请设为 `json`。",
            "required": false,
            "schema": {
              "type": "string",
              "enum": ["json", "ndjson", "jsonl", "csv"]
            },
            "example": "json"
          },
          {
            "name": "compress",
            "in": "query",
            "description": "结果是否应压缩",
            "required": false,
            "schema": {
              "type": "boolean"
            },
            "example": true
          },
          {
            "name": "batch_size",
            "in": "query",
            "description": "按 X 条记录分批",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1000
            },
            "example": 1000
          },
          {
            "name": "part",
            "in": "query",
            "description": "如果提供了 batch_size，则指定下载哪一部分",
            "required": false,
            "schema": {
              "type": "integer"
            },
            "example": 1
          }
        ],
        "responses": {
          "200": {
            "description": "成功",
            "content": {
              "application/json": {
                "schema": {
                  "description": "以所需格式返回的数据",
                  "$ref": "#/components/schemas/DatasetSnapshotContent"
                }
              }
            }
          },
          "202": {
            "description": "快照尚未就绪。响应体为以下之一：\n- `{status: \"STATUS\", message: \"Snapshot is not ready yet, try again in 10s\"}` 快照尚未准备好，请 10 秒后重试\n- `{status: \"building\", message: \"Snapshot is building, try again in 10s\"}` 快照正在构建，请 10 秒后重试"
          },
          "400": {
            "description": "消息：\n- `{validation_errors: [ERRORS]}`\n- Snapshot is expired 快照已过期\n- Snapshot is empty 快照为空"
          },
          "404": {
            "description": "消息：\n- Snapshot does not exist 快照不存在"
          },
          "500": {
            "description": "消息：\n- Internal server error 内部服务器错误"
          }
        }
      }
    },
    "/datasets/v3/deliver/{snapshot_id}": {
      "post": {
        "operationId": "deliverScrapeSnapshot",
        "description": "将快照内容交付到指定存储",
        "parameters": [
          {
            "name": "snapshot_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "example": "s_m4x7enmven8djfqak",
              "description": "触发采集时返回的 ID"
            }
          },
          {
            "name": "notify",
            "in": "query",
            "schema": {
              "type": "string",
              "example": "https://notify-me.com/"
            },
            "description": "交付完成后将发送通知的 URL"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DeliverSnapshotBody"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "成功",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "delivery_id": {
                      "type": "string",
                      "description": "可在 Monitor Delivery API 中使用的交付请求 ID"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "消息：\n- `{validation_errors: [ERRORS]}`\n- Snapshot is not ready 快照未准备好\n- Snapshot is expired 快照已过期\n- Deliver options are missing 缺少交付选项\n- Snapshot is empty 快照为空\n- Snapshot is too big for single file delivery 快照过大，无法单文件交付\n- Batch size should be at least `MIN_BATCH_SIZE` 批量大小应至少为 `MIN_BATCH_SIZE`"
          },
          "404": {
            "description": "消息：\n- Snapshot does not exist 快照不存在"
          },
          "500": {
            "description": "消息：\n- Failed to deliver snapshot 快照交付失败\n- Internal server error 内部服务器错误"
          }
        }
      }
    },
    "/datasets/v3/progress/{snapshot_id}": {
      "get": {
        "operationId": "getScrapeProgress",
        "description": "Monitor Progress API 用于跟踪数据采集任务（快照）的当前状态，指示其正在采集数据、处理数据或已准备好下载。",
        "parameters": [
          {
            "name": "snapshot_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "example": "s_m4x7enmven8djfqak",
              "description": "触发采集时返回的 ID"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "成功\n\n当 `status` 为 `failed` 时，`error_message` 为以下之一：\n- Something went wrong. Our team is looking into it. 出现问题，团队正在处理\n- Account is suspended 账户已被暂停\n- Account is new, please activate it in account settings. URL 账户为新账户，请在账户设置中激活\n- No data found in discovery 发现中未找到数据\n- Snapshot is empty 快照为空\n- Failed to deliver snapshot 快照交付失败\n- Failed to download response 下载响应失败\n- Failed to trigger collector 触发收集器失败\n- Internal Server Error 内部服务器错误\n- Input validation failed: DETAILS 输入验证失败: DETAILS",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "snapshot_id": {
                      "type": "string"
                    },
                    "dataset_id": {
                      "type": "string"
                    },
                    "status": {
                      "type": "string",
                      "description": "快照状态",
                      "enum": ["starting", "running", "ready", "failed"]
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "消息：\n- Snapshot does not exist 快照不存在"
          },
          "500": {
            "description": "消息：\n- Internal server error 内部服务器错误"
          }
        }
      }
    },
    "/datasets/v3/snapshots": {
      "get": {
        "operationId": "listScrapeSnapshots",
        "description": "获取已触发采集的列表，该列表仅包含为特定数据集创建的快照",
        "parameters": [
          {
            "name": "dataset_id",
            "in": "query",
            "description": "数据集标识符（可在具体 API 页面找到）",
            "required": true,
            "schema": {
              "type": "string"
            },
            "example": "gd_l1vikfnt1wgvvqz95w"
          },
          {
            "name": "status",
            "in": "query",
            "description": "仅列出具有特定状态的快照",
            "required": false,
            "schema": {
              "type": "string",
              "enum": ["starting", "running", "ready", "failed"]
            },
            "example": "ready"
          },
          {
            "name": "skip",
            "in": "query",
            "description": "跳过前 `x` 个快照",
            "required": false,
            "schema": {
              "type": "integer",
              "default": 0
            },
            "example": 0
          },
          {
            "name": "limit",
            "in": "query",
            "description": "限制返回的快照数量",
            "required": false,
            "schema": {
              "type": "integer",
              "default": 1000,
              "maximum": 5000
            },
            "example": 0
          },
          {
            "name": "from_date",
            "in": "query",
            "description": "仅列出在特定日期之后创建的快照",
            "required": false,
            "schema": {
              "type": "string",
              "format": "date"
            },
            "example": "2024-01-01"
          },
          {
            "name": "to_date",
            "in": "query",
            "description": "仅列出在特定日期之前创建的快照",
            "required": false,
            "schema": {
              "type": "string",
              "format": "date"
            },
            "example": "2024-04-01"
          },
          {
            "name": "with_total",
            "in": "query",
            "description": "如果包含此参数，则返回快照总数",
            "required": false,
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "trigger_type",
            "in": "query",
            "description": "按类型筛选快照",
            "required": false,
            "schema": {
              "type": "string",
              "enum": ["ALL", "CP", "API"]
            },
            "example": "ALL"
          }
        ],
        "responses": {
          "200": {
            "description": "成功",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string",
                        "description": "触发 API 返回的快照 ID"
                      },
                      "created": {
                        "type": "string",
                        "format": "date-time",
                        "description": "请求采集的时间"
                      },
                      "status": {
                        "type": "string",
                        "enum": ["starting", "running", "ready", "failed"],
                        "description": "采集状态"
                      },
                      "dataset_id": {
                        "type": "string",
                        "description": "触发采集的数据集 ID"
                      },
                      "dataset_size": {
                        "type": "integer",
                        "description": "收集的记录数量"
                      },
                      "trigger": {
                        "type": "object",
                        "properties": {
                          "type": {
                            "type": "string",
                            "description": "快照创建方式，CP（无代码）或 API"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "消息：\n- `{validation_errors: [ERRORS]}`"
          },
          "500": {
            "description": "消息：\n- Internal server error 内部服务器错误"
          }
        }
      }
    },
    "/datasets/v3/scrapers": {
      "get": {
        "operationId": "listScrapers",
        "parameters": [
          {
            "name": "dataset_id",
            "in": "query",
            "description": "仅返回该数据集 ID 对应的采集器。省略时返回账户中的全部采集器。",
            "required": false,
            "schema": {
              "type": "string",
              "example": "gd_l7q7dkf244hwjntr0"
            }
          },
          {
            "name": "domain",
            "in": "query",
            "description": "仅返回 `domain` 与该值匹配的采集器。省略时返回账户中的全部采集器。",
            "required": false,
            "schema": {
              "type": "string",
              "example": "amazon.com"
            }
          }
        ],
        "description": "获取您账户中所有可用的采集器，并返回每个采集器各采集方式的完整输入结构、输出字段列表和示例数据。将返回的 `id` 用作触发、抓取和快照端点中的 `dataset_id` 参数，并根据要运行的采集方式的 `input_schema` 构建请求体，例如 `scrapers.collect_by_url.input_schema`。\n\n响应体积较大。每个采集器对应一个条目，每种采集方式对应一个嵌套对象，因此当账户可访问完整采集器库时，响应通常达到数 MB。",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ScraperListItem"
                  }
                },
                "examples": {
                  "Single collection method": {
                    "summary": "仅支持一种采集方式的采集器",
                    "description": "该采集器仅支持 `collect_by_url`，且没有对应的市场数据集。",
                    "value": [
                      {
                        "id": "gd_mk57m0301khq4jmsul",
                        "name": "npmjs",
                        "description": null,
                        "domain": "npmjs.com",
                        "scraper_type": [
                          "collect_by_url"
                        ],
                        "scrapers": {
                          "collect_by_url": {
                            "input_schema": [
                              {
                                "name": "package_name",
                                "type": "text",
                                "required": true
                              }
                            ],
                            "output_fields": [
                              {
                                "name": "url",
                                "type": "url"
                              },
                              {
                                "name": "package_name",
                                "type": "text",
                                "description": "NPMjs package name"
                              },
                              {
                                "name": "version",
                                "type": "text",
                                "description": "NPMjs version number"
                              },
                              {
                                "name": "readme_content",
                                "type": "text",
                                "description": "NPMjs README.md content"
                              }
                            ],
                            "sample_input": [
                              {
                                "package_name": "@brightdata/sdk"
                              }
                            ],
                            "sample_output": {},
                            "link": "https://brightdata.com/cp/scrapers/gd_mk57m0301khq4jmsul/pdp/configuration"
                          }
                        }
                      }
                    ]
                  },
                  "With dataset metadata": {
                    "summary": "具有对应市场数据集的采集器",
                    "description": "该采集器还会返回 `category`、`size` 和 `use_cases`。此处的 `output_fields`、`sample_input`、`sample_output` 和 `use_cases` 数组已截断，端点会返回完整内容。",
                    "value": [
                      {
                        "name": "Amazon products",
                        "id": "gd_l7q7dkf244hwjntr0",
                        "description": "eCommerce product Datasets, for amazon.com and product categories",
                        "domain": "amazon.com",
                        "size": 300000000,
                        "use_cases": [
                          {
                            "name": "Electronics products",
                            "description": "This dataset includes detailed information on various electronics products, such as product descriptions, prices, ratings, seller details, and more.",
                            "subsets_ids": [
                              "cs_1727166178207"
                            ],
                            "categories": [
                              "Electronics ",
                              "Products"
                            ]
                          }
                        ],
                        "category": "ecomm",
                        "scraper_type": [
                          "collect_by_url",
                          "discover_by_keyword",
                          "discover_by_category_url",
                          "discover_by_best_sellers_url",
                          "discover_by_upc"
                        ],
                        "scrapers": {
                          "collect_by_url": {
                            "input_schema": [
                              {
                                "name": "url",
                                "type": "url",
                                "required": true
                              },
                              {
                                "name": "asin",
                                "type": "text",
                                "required": false
                              },
                              {
                                "name": "origin_url",
                                "type": "url",
                                "required": false
                              },
                              {
                                "name": "zipcode",
                                "type": "text",
                                "required": false
                              },
                              {
                                "name": "language",
                                "type": "text",
                                "required": false
                              },
                              {
                                "name": "all_variations",
                                "type": "boolean",
                                "required": false
                              }
                            ],
                            "output_fields": [
                              {
                                "name": "title",
                                "type": "text",
                                "description": "Product title"
                              },
                              {
                                "name": "seller_name",
                                "type": "text",
                                "description": "Seller name"
                              },
                              {
                                "name": "brand",
                                "type": "text",
                                "description": "Product brand"
                              }
                            ],
                            "sample_input": [
                              {
                                "url": "https://www.amazon.com/Quencher-FlowState-Stainless-Insulated-Smoothie/dp/B0CRMZHDG8",
                                "asin": "B0CRMZHDG8",
                                "origin_url": "https://www.amazon.com/Quencher-FlowState-Stainless-Insulated-Smoothie/dp/B0CRMZHDG8",
                                "zipcode": "94107",
                                "language": ""
                              }
                            ],
                            "sample_output": {
                              "title": "Levi's SUV003 Trunk for Men | Supima Modal Lycra Blend | Breathable Men’s Underwear | 4-Way Stretch | Anti-Roll, No-Dig Waistband | No Ride-Up | Mid Length Fit | Stay Retention | Pack of 3",
                              "seller_name": null,
                              "brand": "Levi's"
                            },
                            "link": "https://brightdata.com/cp/scrapers/gd_l7q7dkf244hwjntr0/pdp/configuration"
                          },
                          "discover_by_keyword": {
                            "input_schema": [
                              {
                                "name": "keyword",
                                "type": "text",
                                "required": true
                              },
                              {
                                "name": "zipcode",
                                "type": "text",
                                "required": false
                              },
                              {
                                "name": "all_variations",
                                "type": "boolean",
                                "required": false
                              }
                            ],
                            "output_fields": [
                              {
                                "name": "asin",
                                "type": "text"
                              },
                              {
                                "name": "url",
                                "type": "url"
                              },
                              {
                                "name": "origin_url",
                                "type": "url"
                              }
                            ],
                            "sample_input": [
                              {
                                "keyword": "light bulb",
                                "zipcode": ""
                              }
                            ],
                            "sample_output": {
                              "asin": "B0DN5W4XTS",
                              "url": "https://www.amazon.in/Levis-Breathable-Underwear-Anti-Roll-Waistband/dp/B0DN5W4XTS?th=1&psc=1&language=en_IN&currency=INR",
                              "origin_url": null
                            },
                            "link": "https://brightdata.com/cp/scrapers/gd_l7q7dkf244hwjntr0/keyword/configuration"
                          },
                          "discover_by_category_url": {
                            "input_schema": [
                              {
                                "name": "url",
                                "type": "text",
                                "required": true
                              },
                              {
                                "name": "sort_by",
                                "type": "text",
                                "required": false
                              },
                              {
                                "name": "zipcode",
                                "type": "text",
                                "required": false
                              },
                              {
                                "name": "all_variation",
                                "type": "boolean",
                                "required": false
                              }
                            ],
                            "output_fields": [
                              {
                                "name": "asin",
                                "type": "text"
                              },
                              {
                                "name": "url",
                                "type": "url"
                              },
                              {
                                "name": "zipcode",
                                "type": "text",
                                "description": "zipcode"
                              }
                            ],
                            "sample_input": [
                              {
                                "url": "https://www.amazon.com/s?i=luggage-intl-ship",
                                "sort_by": "Best Sellers",
                                "zipcode": "10001"
                              }
                            ],
                            "sample_output": {
                              "asin": "B0DN5W4XTS",
                              "url": "https://www.amazon.in/Levis-Breathable-Underwear-Anti-Roll-Waistband/dp/B0DN5W4XTS?th=1&psc=1&language=en_IN&currency=INR",
                              "zipcode": "******"
                            },
                            "link": "https://brightdata.com/cp/scrapers/gd_l7q7dkf244hwjntr0/category_url/configuration"
                          },
                          "discover_by_best_sellers_url": {
                            "input_schema": [
                              {
                                "name": "category_url",
                                "type": "text",
                                "required": true
                              },
                              {
                                "name": "collect_child_categories",
                                "type": "boolean",
                                "required": false
                              },
                              {
                                "name": "zipcode",
                                "type": "text",
                                "required": false
                              },
                              {
                                "name": "all_variations",
                                "type": "boolean",
                                "required": false
                              }
                            ],
                            "output_fields": [
                              {
                                "name": "asin",
                                "type": "text"
                              },
                              {
                                "name": "url",
                                "type": "url"
                              },
                              {
                                "name": "origin_url",
                                "type": "url"
                              }
                            ],
                            "sample_input": [
                              {
                                "category_url": "https://www.amazon.com/gp/bestsellers/office-products/ref=pd_zg_ts_office-products",
                                "zipcode": ""
                              }
                            ],
                            "sample_output": {
                              "asin": "B0DN5W4XTS",
                              "url": "https://www.amazon.in/Levis-Breathable-Underwear-Anti-Roll-Waistband/dp/B0DN5W4XTS?th=1&psc=1&language=en_IN&currency=INR",
                              "origin_url": null
                            },
                            "link": "https://brightdata.com/cp/scrapers/gd_l7q7dkf244hwjntr0/best_sellers_url/configuration"
                          },
                          "discover_by_upc": {
                            "input_schema": [
                              {
                                "name": "upc",
                                "type": "text",
                                "required": false
                              },
                              {
                                "name": "zipcode",
                                "type": "text",
                                "required": false
                              },
                              {
                                "name": "all_variations",
                                "type": "boolean",
                                "required": false
                              }
                            ],
                            "output_fields": [
                              {
                                "name": "url",
                                "type": "url",
                                "description": "url"
                              },
                              {
                                "name": "zipcode",
                                "type": "text",
                                "description": "zipcode"
                              },
                              {
                                "name": "all_variations",
                                "type": "boolean",
                                "description": "all_variations"
                              }
                            ],
                            "sample_input": [],
                            "sample_output": {
                              "url": "https://www.amazon.in/Levis-Breathable-Underwear-Anti-Roll-Waistband/dp/B0DN5W4XTS?th=1&psc=1&language=en_IN&currency=INR",
                              "zipcode": "******",
                              "all_variations": false
                            },
                            "link": "https://brightdata.com/cp/scrapers/gd_l7q7dkf244hwjntr0/upc/configuration"
                          }
                        }
                      }
                    ]
                  }
                }
              }
            }
          }
        }
      }
    },
    "/datasets/v3/scrape": {
      "post": {
        "operationId": "scrapeSync",
        "description": "该端点允许用户高效获取数据，并确保与其应用程序或工作流的无缝集成。",
        "summary": "抓取数据并直接在响应中返回。",
        "parameters": [
          {
            "name": "dataset_id",
            "in": "query",
            "description": "触发数据采集的数据集 ID",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "custom_output_fields",
            "description": "输出列列表，用 `|` 分隔（例如：`url|about.updated_on`）。仅包含指定字段的响应。",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "example": "url|about.updated_on"
            }
          },
          {
            "name": "include_errors",
            "in": "query",
            "description": "在结果中包含错误报告",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "format",
            "in": "query",
            "description": "响应格式：`ndjson`（默认，每行一条记录）、`json`（JSON 数组）或 `csv`。见[输出格式](/cn/products/scrapers/scrapers-library/data-delivery#支持哪些输出格式)。",
            "schema": {
              "type": "string",
              "enum": ["ndjson", "json", "csv"],
              "default": "ndjson"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "oneOf": [
                  {
                    "$ref": "#/components/schemas/ScrapeRequestWithFields",
                    "title": "输入与输出字段过滤"
                  },
                  {
                    "$ref": "#/components/schemas/ScrapeInput",
                    "title": "仅输入"
                  }
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "成功\n\n记录的 JSON 数组。空数组表示输入未产生记录；请检查输入 URL。",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string",
                  "example": "OK"
                }
              }
            }
          },
          "202": {
            "description": "请求仍在处理中，快照将在稍后可用\n\n任务超过 1 分钟限制并转为异步继续。轮询 `GET /datasets/v3/progress/{snapshot_id}`，然后下载快照。`retry-after` 标头指示等待时长。",
            "headers": {
              "retry-after": {
                "description": "再次请求前的秒数",
                "schema": {
                  "type": "integer",
                  "example": 10
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "snapshot_id": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    }
                  }
                },
                "example": {
                  "snapshot_id": "s_xxx",
                  "message": "您的请求仍在处理中，无法在此调用中检索。请使用提供的 Snapshot ID 通过监控快照端点跟踪进度，并在准备好后通过下载快照端点获取数据。"
                }
              }
            }
          },
          "400": {
            "description": "消息：\n- `{\"error\": \"Invalid input provided\", \"code\": \"validation_error\", \"errors\": [[FIELD, REASON]]}`: 某个输入字段未通过校验；`errors` 指出字段和原因，例如 `[\"url\", \"This field must be a valid url\"]`。修正输入值后重新发送\n- `{\"error\": \"Parser cannot parse input: ...\", \"code\": \"parse_error\"}`: 请求体不是有效的 JSON。修正 JSON 后重新发送\n- No data to trigger: 请求中没有任何输入",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "description": "错误响应体"
                },
                "example": {
                  "error": "Invalid input provided",
                  "code": "validation_error",
                  "type": "validation",
                  "line": "{\"url\":\"not-a-url\",\"asin\":\"\",\"zipcode\":\"\",\"language\":\"\"}",
                  "index": 1,
                  "errors": [
                    [
                      "url",
                      "This field must be a valid url"
                    ]
                  ]
                }
              }
            }
          },
          "401": {
            "description": "消息（纯文本）：\n- `Credentials are missing`: 未发送 `Authorization` 标头\n- `Auth method is not supported`: `Authorization` 标头格式不受支持\n- `Invalid credentials`: API 密钥错误\n\n请使用有效的 API 密钥发送 `Authorization: Bearer YOUR_API_KEY`",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                },
                "example": "Invalid credentials"
              }
            }
          },
          "404": {
            "description": "消息（纯文本）：\n- `Collector not found`: 请求中缺少 `dataset_id` 查询参数\n- `dataset does not exist`: 没有与该 `dataset_id` 匹配的爬虫",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                },
                "example": "dataset does not exist"
              }
            }
          },
          "429": {
            "description": "消息：\n- Too Many Requests: 与触发端点相同的限制"
          },
          "500": {
            "description": "消息：\n- Internal server error 内部服务器错误"
          }
        }
      }
    },
    "/datasets/v3/delivery/{delivery_id}": {
      "get": {
        "operationId": "getDeliveryStatus",
        "description": "该调用返回交付状态",
        "parameters": [
          {
            "name": "delivery_id",
            "in": "path",
            "description": "从交付 API 端点返回的唯一交付 ID",
            "required": true,
            "schema": {
              "type": "string"
            },
            "example": "d_lysxl9vf2dobrb6h31"
          }
        ],
        "responses": {
          "200": {
            "description": "成功",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "delivery_files": {
                      "type": "array",
                      "description": "已交付文件列表",
                      "items": {
                        "type": "object",
                        "properties": {
                          "filename": {
                            "type": "string"
                          },
                          "delivery_ts": {
                            "type": "integer"
                          }
                        }
                      }
                    },
                    "status": {
                      "type": "string",
                      "enum": ["done", "canceled", "failed"],
                      "description": "交付状态"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "消息：\n- Delivery does not exist 交付不存在"
          },
          "500": {
            "description": "消息：\n- Internal server error 内部服务器错误"
          }
        }
      }
    },
    "/datasets/v3/snapshot/{snapshot_id}/parts": {
      "get": {
        "operationId": "listScrapeSnapshotParts",
        "description": "当以批次方式请求交付（参见可用交付 API）时，使用此端点检查创建了多少部分。format、compress 和 batch_size 必须与发送到 delivery/download API 调用时完全匹配。",
        "parameters": [
          {
            "name": "format",
            "in": "query",
            "description": "接收数据的格式",
            "required": false,
            "schema": {
              "type": "string",
              "enum": ["json", "ndjson", "jsonl", "csv"]
            },
            "example": "json"
          },
          {
            "name": "compress",
            "in": "query",
            "description": "结果是否应压缩",
            "required": false,
            "schema": {
              "type": "boolean"
            },
            "example": true
          },
          {
            "name": "batch_size",
            "in": "query",
            "description": "将数据分成每批 X 条记录",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1000
            },
            "example": 1000
          },
          {
            "name": "snapshot_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "example": "s_m4x7enmven8djfqak",
              "description": "触发采集时返回的 ID"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "成功",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "parts": {
                      "type": "integer",
                      "description": "已创建的部分数量"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "消息：\n- `{validation_errors: [ERRORS]}`\n- Snapshot is not ready 快照未准备好"
          },
          "404": {
            "description": "消息：\n- Snapshot does not exist 快照不存在"
          },
          "500": {
            "description": "消息：\n- Internal server error 内部服务器错误"
          }
        }
      }
    },
    "/datasets/v3/snapshot/{snapshot_id}/input": {
      "get": {
        "operationId": "getScrapeSnapshotInput",
        "description": "获取用于触发采集的输入",
        "parameters": [
          {
            "name": "snapshot_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "example": "s_m4x7enmven8djfqak",
              "description": "触发采集时返回的 ID"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "CSV 格式的输入",
            "content": {
              "text/csv": {
                "schema": {
                  "type": "string",
                  "example": "input1,input2\nvalue1,value2"
                }
              }
            }
          },
          "400": {
            "description": "消息：\n- Snapshot input does not exist 快照输入不存在"
          },
          "404": {
            "description": "消息：\n- Snapshot does not exist 快照不存在"
          },
          "500": {
            "description": "消息：\n- Internal server error 内部服务器错误"
          }
        }
      }
    },
    "/datasets/v3/snapshot/{snapshot_id}/pause": {
      "post": {
        "operationId": "pauseScrape",
        "description": "暂停正在运行的采集任务",
        "parameters": [
          {
            "name": "snapshot_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "example": "s_m4x7enmven8djfqak",
              "description": "触发采集任务时返回的 ID"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string",
                  "example": "OK"
                }
              }
            }
          }
        }
      }
    },
    "/datasets/v3/snapshot/{snapshot_id}/resume": {
      "post": {
        "operationId": "resumeScrape",
        "description": "恢复已暂停的采集任务",
        "parameters": [
          {
            "name": "snapshot_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "example": "s_m4x7enmven8djfqak",
              "description": "触发采集任务时返回的 ID"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string",
                  "example": "OK"
                }
              }
            }
          }
        }
      }
    },
    "/datasets/v3/snapshot/{snapshot_id}/cancel": {
      "post": {
        "operationId": "cancelScrape",
        "description": "取消正在运行的采集",
        "parameters": [
          {
            "name": "snapshot_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "example": "s_m4x7enmven8djfqak",
              "description": "触发采集时返回的 ID"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "成功",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string",
                  "example": "OK"
                }
              }
            }
          },
          "400": {
            "description": "消息：\n- Snapshot is not running 快照未运行"
          },
          "404": {
            "description": "消息：\n- Snapshot does not exist 快照不存在"
          },
          "500": {
            "description": "消息：\n- Internal server error 内部服务器错误"
          }
        }
      }
    },
    "/datasets/delivery_settings/options": {
      "get": {
        "operationId": "listDeliveryOptions",
        "description": "返回为数据集视图配置交付设置时可用的选项，包括支持的目标类型、文件名模板和批次大小。",
        "responses": {
          "200": {
            "description": "交付设置选项",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "deliver": {
                      "type": "object",
                      "properties": {
                        "required": {
                          "type": "boolean"
                        },
                        "type": {
                          "type": "string"
                        },
                        "deliver_types": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          },
                          "example": [
                            "api_pull",
                            "webhook",
                            "email",
                            "gcs",
                            "gcp_pubsub",
                            "s3",
                            "snowflake",
                            "ali_oss",
                            "sftp",
                            "azure"
                          ]
                        }
                      }
                    },
                    "flatten_csv": {
                      "type": "object",
                      "properties": {
                        "required": {
                          "type": "boolean"
                        },
                        "type": {
                          "type": "string"
                        }
                      }
                    },
                    "delivery_type": {
                      "type": "object",
                      "properties": {
                        "required": {
                          "type": "boolean"
                        },
                        "type": {
                          "type": "string"
                        },
                        "default": {
                          "type": "string"
                        }
                      }
                    },
                    "filename": {
                      "type": "object",
                      "properties": {
                        "required": {
                          "type": "boolean"
                        },
                        "template": {
                          "type": "object",
                          "properties": {
                            "type": {
                              "type": "string"
                            },
                            "default": {
                              "type": "string"
                            }
                          }
                        },
                        "extension": {
                          "type": "object",
                          "properties": {
                            "values": {
                              "type": "array",
                              "items": {
                                "type": "string"
                              },
                              "example": [
                                "json",
                                "csv",
                                "xlsx",
                                "ndjson",
                                "parquet",
                                "jsonl"
                              ]
                            },
                            "default": {
                              "type": "string"
                            }
                          }
                        },
                        "tz_offset": {
                          "type": "object",
                          "properties": {
                            "type": {
                              "type": "string"
                            },
                            "pattern": {
                              "type": "string"
                            },
                            "default": {
                              "type": "string"
                            }
                          }
                        }
                      }
                    },
                    "batch_size": {
                      "type": "object",
                      "properties": {
                        "required": {
                          "type": "boolean"
                        },
                        "type": {
                          "type": "string"
                        }
                      }
                    }
                  }
                },
                "example": {
                  "deliver": {
                    "required": true,
                    "type": "object",
                    "deliver_types": [
                      "api_pull",
                      "webhook",
                      "email",
                      "gcs",
                      "gcp_pubsub",
                      "s3",
                      "snowflake",
                      "ali_oss",
                      "sftp",
                      "azure"
                    ]
                  },
                  "flatten_csv": {
                    "required": false,
                    "type": "boolean"
                  },
                  "delivery_type": {
                    "required": false,
                    "type": "string",
                    "default": "deliver_results"
                  },
                  "filename": {
                    "required": false,
                    "template": {
                      "type": "string",
                      "default": "bd_{[datetime]}"
                    },
                    "extension": {
                      "values": [
                        "json",
                        "csv",
                        "xlsx",
                        "ndjson",
                        "parquet",
                        "jsonl"
                      ],
                      "default": "json"
                    },
                    "tz_offset": {
                      "type": "string",
                      "pattern": "[+-](0\\d|1[01]):[0-5]\\d+",
                      "default": "+00:00"
                    }
                  },
                  "batch_size": {
                    "required": true,
                    "type": "number"
                  }
                }
              }
            }
          },
          "401": {
            "description": "未授权：API 密钥无效或缺失",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string",
                      "example": "Unauthorized"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/datasets/delivery_settings/{destination_type}/schema": {
      "get": {
        "operationId": "getDeliveryDestinationSchema",
        "description": "返回特定交付目标类型（例如 `s3`、`sftp`、`gcs`、`webhook`）所需的确切字段。更新视图交付设置时，可借此了解必须提供哪些凭据和参数。",
        "parameters": [
          {
            "name": "destination_type",
            "in": "path",
            "description": "交付策略的标识。支持的值：`api_pull`、`webhook`、`email`、`gcs`、`gcp_pubsub`、`s3`、`snowflake`、`ali_oss`、`sftp`、`azure`。",
            "required": true,
            "schema": {
              "type": "string",
              "example": "s3"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "所请求目标类型的 schema",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "name": {
                      "type": "string"
                    },
                    "properties": {
                      "type": "object"
                    }
                  }
                },
                "example": {
                  "name": "s3",
                  "properties": {
                    "bucket": {
                      "type": "string",
                      "required": true
                    },
                    "credentials": {
                      "type": "object",
                      "required": false,
                      "or": [
                        {
                          "aws-access-key": {
                            "type": "string",
                            "required": true
                          },
                          "aws-secret-key": {
                            "type": "string",
                            "required": true
                          }
                        },
                        {
                          "role_arn": {
                            "type": "string",
                            "required": true
                          },
                          "external_id": {
                            "type": "string",
                            "required": true
                          }
                        }
                      ]
                    },
                    "region": {
                      "type": "string",
                      "required": false
                    },
                    "directory": {
                      "type": "string",
                      "required": false
                    },
                    "endpoint_url": {
                      "type": "string",
                      "required": false
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "未知的目标类型",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string",
                      "example": "Destination type not found"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/datasets/views": {
      "get": {
        "operationId": "listDatasetViews",
        "description": "获取客户的数据集视图。数据集视图是对数据集已保存的筛选订阅，可按计划交付。将返回的 `id` 用于视图交付设置端点。",
        "responses": {
          "200": {
            "description": "数据集视图列表",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string",
                        "description": "数据集视图的唯一标识"
                      },
                      "name": {
                        "type": "string",
                        "description": "客户为视图指定的名称"
                      },
                      "dataset_id": {
                        "type": "string",
                        "description": "底层数据集的 ID"
                      },
                      "dataset_name": {
                        "type": "string",
                        "description": "底层数据集的名称"
                      },
                      "domain": {
                        "type": "string",
                        "description": "数据集的主域名"
                      }
                    }
                  }
                },
                "example": [
                  {
                    "id": "v_id1",
                    "name": "test1",
                    "dataset_id": "gd_id1",
                    "dataset_name": "Dataset One",
                    "domain": "datasetonename.com"
                  },
                  {
                    "id": "v_id2",
                    "name": "test2",
                    "dataset_id": "gd_id2",
                    "dataset_name": "Dataset Two",
                    "domain": "datasettwoname.com"
                  }
                ]
              }
            }
          },
          "401": {
            "description": "未授权：API 密钥无效或缺失",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string",
                      "example": "Unauthorized"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/datasets/views/{view_id}/delivery_settings": {
      "get": {
        "operationId": "getDatasetViewDeliverySettings",
        "description": "获取特定数据集视图的当前交付配置。",
        "parameters": [
          {
            "name": "view_id",
            "in": "path",
            "description": "数据集视图的唯一标识。",
            "required": true,
            "schema": {
              "type": "string",
              "example": "v_id1"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "视图的当前交付配置",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ViewDeliverySettings"
                },
                "example": {
                  "deliver": {
                    "type": "s3",
                    "bucket": "bucket_name",
                    "credentials": {
                      "aws-access-key": "AWS_ACCESS_KEY",
                      "aws-secret-key": "AWS_SECRET_KEY"
                    },
                    "region": "us-east-1"
                  },
                  "filename": {
                    "extension": "json",
                    "template": "bd_{[datetime]}",
                    "tz_offset": "+04:00"
                  },
                  "flatten_csv": false,
                  "tar": false,
                  "compress": false,
                  "batch_size": 400
                }
              }
            }
          },
          "404": {
            "description": "未找到视图",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string",
                      "example": "View not found"
                    }
                  }
                }
              }
            }
          }
        }
      },
      "put": {
        "operationId": "updateDatasetViewDeliverySettings",
        "description": "更新特定数据集视图的交付配置。返回已更新视图的 id。",
        "parameters": [
          {
            "name": "view_id",
            "in": "path",
            "description": "数据集视图的唯一标识。",
            "required": true,
            "schema": {
              "type": "string",
              "example": "v_id1"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ViewDeliverySettings"
              },
              "example": {
                "filename": {
                  "extension": "json",
                  "template": "bd_{[datetime]}",
                  "tz_offset": "+00:00"
                },
                "flatten_csv": false,
                "deliver": {
                  "type": "s3",
                  "bucket": "my-bucket",
                  "credentials": {
                    "aws-access-key": "AKIAIOSFODNN7",
                    "aws-secret-key": "wJalrXUtnFEMI"
                  },
                  "region": "us-east-1",
                  "directory": "my/directory"
                },
                "tar": true,
                "compress": true,
                "batch_size": 1000
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "视图交付设置已更新",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "view_id": {
                      "type": "string"
                    }
                  }
                },
                "example": {
                  "view_id": "v_id1"
                }
              }
            }
          },
          "400": {
            "description": "交付设置请求体无效",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string",
                      "example": "Invalid delivery settings"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "未找到视图",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string",
                      "example": "View not found"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/datasets/views/delivery_settings/bulk": {
      "put": {
        "operationId": "bulkUpdateDatasetViewDeliverySettings",
        "description": "在单个请求中更新多个数据集视图的交付配置。所有列出的视图都会获得相同的配置。返回已更新视图的 id。",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "allOf": [
                  {
                    "type": "object",
                    "required": [
                      "views"
                    ],
                    "properties": {
                      "views": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        },
                        "description": "要更新的视图 ID 列表。",
                        "example": [
                          "v_id1",
                          "v_id2"
                        ]
                      }
                    }
                  },
                  {
                    "$ref": "#/components/schemas/ViewDeliverySettings"
                  }
                ]
              },
              "example": {
                "views": [
                  "v_id1",
                  "v_id2"
                ],
                "filename": {
                  "extension": "json",
                  "template": "bd_{[datetime]}",
                  "tz_offset": "+00:00"
                },
                "flatten_csv": false,
                "deliver": {
                  "type": "s3",
                  "bucket": "bucket_name",
                  "credentials": {
                    "aws-access-key": "AWS_ACCESS_KEY",
                    "aws-secret-key": "AWS_SECRET_KEY"
                  },
                  "region": "us-east-1"
                },
                "tar": true,
                "compress": true,
                "batch_size": 1000
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "视图已更新",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "view_ids": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    }
                  }
                },
                "example": {
                  "view_ids": [
                    "v_id1",
                    "v_id2"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "交付设置请求体无效",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string",
                      "example": "Invalid delivery settings"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/datasets/v3/snapshot/{snapshot_id}/rerun": {
      "post": {
        "operationId": "rerunScrape",
        "description": "重新运行之前创建的快照",
        "parameters": [
          {
            "name": "snapshot_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "example": "s_m4x7enmven8djfqak",
              "description": "之前触发的采集的 ID"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "snapshot_id": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "未找到快照",
            "content": {
              "text/html": {
                "schema": {
                  "type": "string",
                  "example": "snapshot not found"
                }
              }
            }
          },
          "400": {
            "description": "快照的输入已过期",
            "content": {
              "text/html": {
                "schema": {
                  "type": "string",
                  "example": "Snapshot's inputs storage is expired and no longer available"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "ScraperListItem": {
        "type": "object",
        "description": "单个采集器，包含其数据集 ID、目标站点，以及所支持的每种采集方式的完整输入和输出结构。",
        "required": [
          "id",
          "name",
          "domain",
          "scraper_type",
          "scrapers"
        ],
        "properties": {
          "id": {
            "type": "string",
            "description": "采集器的数据集 ID。在触发、抓取和快照端点中用作 `dataset_id` 查询参数。",
            "examples": [
              "gd_l7q7dkf244hwjntr0"
            ]
          },
          "name": {
            "type": "string",
            "description": "采集器在 Bright Data 控制面板中显示的名称。",
            "examples": [
              "Amazon products"
            ]
          },
          "description": {
            "type": [
              "string",
              "null"
            ],
            "description": "采集器所返回数据的概述。采集器没有已发布的描述时返回 `null` 或省略该字段。"
          },
          "domain": {
            "type": "string",
            "description": "采集器所采集的目标站点。可按该字段将采集器归入同一站点系列。",
            "examples": [
              "amazon.com"
            ]
          },
          "category": {
            "type": "string",
            "description": "市场分类。返回值为 `ecomm`、`social`、`business`、`travel`、`real_estate`、`ad_verification`、`classifieds`、`financial`、`geospatial`、`AI Search` 和 `Data for AI`。未分类的采集器会省略该字段。",
            "examples": [
              "ecomm"
            ]
          },
          "size": {
            "type": "integer",
            "description": "对应的 Bright Data 市场数据集的记录数。仅在采集器有对应数据集时返回。",
            "examples": [
              300000000
            ]
          },
          "use_cases": {
            "type": [
              "array",
              "null"
            ],
            "items": {
              "$ref": "#/components/schemas/ScraperUseCase"
            },
            "description": "对应市场数据集的精选子集。采集器未发布子集时返回 `null` 或省略该字段。"
          },
          "scraper_type": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "该采集器支持的采集方式。`collect_by_url` 直接根据 URL 或其他标识符采集单条记录。每种 `discover_by_*` 方式会先执行发现阶段，再采集发现到的记录。要运行发现方式，请在 `POST /datasets/v3/trigger` 中传入 `type=discover_new`，并将去掉 `discover_by_` 前缀的方式名作为 `discover_by` 传入，例如 `discover_by_keyword` 对应 `discover_by=keyword`。该数组的值与 `scrapers` 对象的键完全一致。",
            "examples": [
              [
                "collect_by_url",
                "discover_by_keyword"
              ]
            ]
          },
          "scrapers": {
            "type": "object",
            "additionalProperties": {
              "$ref": "#/components/schemas/ScraperCollectionMethod"
            },
            "description": "按采集方式名称索引的详细信息。其键与 `scraper_type` 数组完全一致。"
          }
        }
      },
      "ScraperCollectionMethod": {
        "type": "object",
        "description": "单个采集器中某一种采集方式的输入、输出和示例数据。",
        "required": [
          "input_schema",
          "output_fields",
          "sample_input",
          "sample_output",
          "link"
        ],
        "properties": {
          "input_schema": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ScraperInputField"
            },
            "description": "该采集方式接受的输入参数。"
          },
          "output_fields": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ScraperOutputField"
            },
            "description": "该采集方式可返回的全部字段。"
          },
          "sample_input": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": true
            },
            "description": "示例输入对象，每个都可直接用作触发或抓取请求 `input` 数组中的一项。采集器未发布示例时返回空数组。"
          },
          "sample_output": {
            "type": "object",
            "additionalProperties": true,
            "description": "一条示例输出记录。采集器未发布示例记录时返回空对象，多数采集方式属于这种情况。"
          },
          "link": {
            "type": "string",
            "format": "uri",
            "description": "该采集方式在控制面板中的配置页面。",
            "examples": [
              "https://brightdata.com/cp/scrapers/gd_l7q7dkf244hwjntr0/pdp/configuration"
            ]
          }
        }
      },
      "ScraperInputField": {
        "type": "object",
        "required": [
          "name",
          "type",
          "required"
        ],
        "properties": {
          "name": {
            "type": "string",
            "description": "参数名称。在 `POST /datasets/v3/trigger` 和 `POST /datasets/v3/scrape` 的 `input` 数组中用作对象的键。",
            "examples": [
              "url"
            ]
          },
          "type": {
            "type": "string",
            "description": "参数接受的值类型。返回值为 `array`、`boolean`、`country`、`date`、`number`、`object`、`string`、`text` 和 `url`。",
            "examples": [
              "url"
            ]
          },
          "required": {
            "type": "boolean",
            "description": "每个输入对象是否都必须包含该参数。"
          }
        }
      },
      "ScraperOutputField": {
        "type": "object",
        "required": [
          "name",
          "type"
        ],
        "properties": {
          "name": {
            "type": "string",
            "description": "该字段在采集记录中的名称。将这些名称用 `|` 分隔后作为触发和抓取端点的 `custom_output_fields` 传入，可缩减返回内容。",
            "examples": [
              "seller_name"
            ]
          },
          "type": {
            "type": "string",
            "description": "字段的值类型。返回值为 `array`、`boolean`、`country`、`date`、`error`、`html2html`、`html2ldjson`、`html2markdown`、`html2text`、`image`、`input`、`number`、`object`、`price`、`text`、`url`、`warning` 和 `warning_code`。",
            "examples": [
              "text"
            ]
          },
          "description": {
            "type": "string",
            "description": "字段内容说明。字段没有已发布说明时省略。"
          }
        }
      },
      "ScraperUseCase": {
        "type": "object",
        "required": [
          "name",
          "description"
        ],
        "properties": {
          "name": {
            "type": "string",
            "description": "精选子集的名称。",
            "examples": [
              "Instagram business accounts"
            ]
          },
          "description": {
            "type": "string",
            "description": "该子集的内容及适用对象。"
          },
          "subsets_ids": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "底层数据集子集的标识符。可将其中一个作为 `GET /datasets/snapshots` 的 `view_id` 查询参数传入。",
            "examples": [
              [
                "v_ljv33eslsclvzg2l2"
              ]
            ]
          },
          "categories": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "应用于该子集的自由文本标签。"
          }
        }
      },
      "DatasetFilter": {
        "anyOf": [
          {
            "$ref": "#/components/schemas/DatasetFilterItem",
            "title": "单字段过滤器"
          },
          {
            "$ref": "#/components/schemas/DatasetFilterGroup",
            "title": "过滤器组"
          },
          {
            "$ref": "#/components/schemas/DatasetFilterItemNoVal",
            "title": "无值单字段过滤器"
          }
        ]
      },
      "DatasetFilterGroup": {
        "type": "object",
        "required": ["operator", "filters"],
        "additionalProperties": false,
        "properties": {
          "operator": {
            "type": "string",
            "enum": ["and", "or"]
          },
          "combine_nested_fields": {
            "type": "boolean",
            "description": "针对对象数组：如果为 true，则所有过滤器必须在单个对象内匹配"
          },
          "filters": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DatasetFilter"
            }
          }
        },
        "example": {
          "operator": "and",
          "filters": [
            {
              "name": "name",
              "operator": "=",
              "value": "John"
            },
            {
              "name": "age",
              "operator": ">",
              "value": "30"
            }
          ]
        }
      },
      "DatasetFilterItem": {
        "type": "object",
        "required": ["name", "operator", "value"],
        "additionalProperties": false,
        "properties": {
          "name": {
            "type": "string",
            "description": "要过滤的字段名称"
          },
          "operator": {
            "type": "string",
            "enum": [
              "=",
              "!=",
              ">",
              "<",
              ">=",
              "<=",
              "in",
              "not_in",
              "includes",
              "not_includes",
              "array_includes",
              "not_array_includes"
            ]
          },
          "value": {
            "description": "用于过滤的值",
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "number"
              },
              {
                "type": "boolean"
              },
              {
                "type": "object"
              },
              {
                "type": "array",
                "items": {
                  "oneOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "number"
                    },
                    {
                      "type": "boolean"
                    }
                  ]
                }
              }
            ]
          }
        },
        "example": {
          "name": "name",
          "operator": "=",
          "value": "John"
        }
      },
      "DatasetFilterItemNoVal": {
        "type": "object",
        "required": ["name", "operator"],
        "additionalProperties": false,
        "properties": {
          "name": {
            "type": "string",
            "description": "要过滤的字段名称"
          },
          "operator": {
            "type": "string",
            "enum": ["is_null", "is_not_null"]
          }
        },
        "example": {
          "name": "reviews_count",
          "operator": "is_not_null"
        }
      },
      "DatasetListItem": {
        "type": "object",
        "required": ["id", "name", "size"],
        "properties": {
          "id": {
            "type": "string",
            "description": "数据集的唯一标识符",
            "example": "gd_l1vijqt9jfj7olije"
          },
          "name": {
            "type": "string",
            "description": "数据集的人类可读名称",
            "example": "Crunchbase companies information"
          },
          "size": {
            "type": "integer",
            "description": "数据集中的记录数量",
            "example": 2300000
          }
        }
      },
      "FilterDatasetBody": {
        "type": "object",
        "required": ["filter"],
        "properties": {
          "filter": {
            "$ref": "#/components/schemas/DatasetFilter"
          }
        }
      },
      "DatasetDeliveryType": {
        "type": "string",
        "description": "交付目标类型",
        "enum": [
          "azure",
          "build",
          "email",
          "gcs",
          "gcs_pubsub",
          "s3",
          "sftp",
          "snowflake",
          "webhook",
          "ali_oss"
        ]
      },
      "DeliveredFileExt": {
        "type": "string",
        "enum": ["json", "jsonl", "csv"]
      },
      "DatasetSnapshotsMeta": {
        "type": "array",
        "items": {
          "type": "object",
          "properties": {
            "id": {
              "type": "string"
            },
            "created": {
              "type": "string",
              "format": "date-time"
            },
            "status": {
              "$ref": "#/components/schemas/DatasetSnapshotStatus"
            },
            "dataset_id": {
              "type": "string"
            },
            "view_id": {
              "type": "string"
            },
            "dataset_size": {
              "type": "integer",
              "description": "快照中的记录数量"
            }
          },
          "example": {
            "id": "snap_m2bxug4e2o352v1jv1",
            "created": "2024-01-01T00:00:00Z",
            "status": "ready",
            "dataset_id": "gd_l1viktl72bvl7bjuj0",
            "view_id": "v_m6iezgld2c56zjwchm",
            "dataset_size": 1000
          }
        }
      },
      "DatasetSnapshotMeta": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "created": {
            "type": "string",
            "format": "date-time"
          },
          "status": {
            "type": "string",
            "enum": ["已安排", "构建中", "就绪", "失败"]
          },
          "dataset_id": {
            "type": "string"
          },
          "customer_id": {
            "type": "string"
          },
          "dataset_size": {
            "type": "integer",
            "description": "快照中的记录数量"
          },
          "file_size": {
            "type": "integer",
            "description": "快照文件的字节大小"
          },
          "cost": {
            "type": "number"
          },
          "error": {
            "type": "string"
          },
          "error_code": {
            "type": "string"
          },
          "warning": {
            "type": "string"
          },
          "warning_code": {
            "type": "string"
          },
          "initiation_type": {
            "type": "string"
          }
        }
      },
      "DatasetSnapshotParts": {
        "type": "object",
        "properties": {
          "parts": {
            "type": "number"
          }
        }
      },
      "DatasetSnapshotContent": {
        "type": "object",
        "example": {
          "about": "Bitstamp 是全球运营时间最长的加密货币交易所，自 2011 年起持续支持比特币经济。凭借成熟的行业经验和良好的业绩记录，Bitstamp 为超过四百万客户提供安全透明的交易平台，并通过经过时间验证的基础设施使合作伙伴能够进入新兴的加密市场。NMLS ID: 1905429 在 NMLS 网站查看更多: https://www.nmlsconsumeraccess.org/EntityDetails.aspx/COMPANY/1905429",
          "affiliated": [],
          "company_id": "2734818",
          "company_size": "501-1,000 名员工",
          "country_code": "LU",
          "crunchbase_url": "https://www.crunchbase.com/organization/bitstamp?utm_source=linkedin&utm_medium=referral&utm_campaign=linkedin_companies&utm_content=profile_cta_anon&trk=funding_crunchbase",
          "description": "Bitstamp | 30,341 位 LinkedIn 粉丝。全球运营时间最长的加密交易所 | Bitstamp 是全球运营时间最长的加密货币交易所，自 2011 年起持续支持比特币经济。凭借成熟的行业经验和良好的业绩记录，Bitstamp 为超过四百万客户提供安全透明的交易平台，并通过经过时间验证的基础设施使合作伙伴能够进入新兴的加密市场。\n\n\n\n\nNMLS ID:\t1905429\n在 NMLS 网站查看更多: https://www.nmlsconsumeraccess.org/EntityDetails.aspx/COMPANY/1905429",
          "employees": [
            {
              "img": "https://media.licdn.com/dms/image/D4E03AQGixwSI9R6RuQ/profile-displayphoto-shrink_100_100/0/1701888289576?e=2147483647&v=beta&t=JCC9EZgKl5VWFcV_qdHIlvE7ZScFDTQeMOcrMrmU5TA",
              "link": "https://ae.linkedin.com/in/jsgreenwood?trk=org-employees",
              "subtitle": "执行领导与数字化转型",
              "title": "James Greenwood"
            },
            {
              "img": "https://media.licdn.com/dms/image/C4E03AQGD22qBJsQ-qw/profile-displayphoto-shrink_100_100/0/1524161393516?e=2147483647&v=beta&t=OSS74hoSvrpwsPjEuuF0AmafkMxX9gf_-j5w4XHXG8o",
              "link": "https://uk.linkedin.com/in/benjamin-parr-940491?trk=org-employees",
              "subtitle": "加密货币全球首席营销官",
              "title": "Benjamin Parr"
            },
            {
              "img": "https://media.licdn.com/dms/image/C4D03AQFdUs4Av5rygg/profile-displayphoto-shrink_100_100/0/1516264422356?e=2147483647&v=beta&t=UOtNggS62Q8IyXGN4PosDnhqOhQjJN8AHRBB78zLlXs",
              "link": "https://si.linkedin.com/in/dominikznidar?trk=org-employees",
              "subtitle": "高级后端开发工程师",
              "title": "Dominik Znidar"
            },
            {
              "img": "https://media.licdn.com/dms/image/C4D03AQFFTmCpr_pIJQ/profile-displayphoto-shrink_100_100/0/1619005680916?e=2147483647&v=beta&t=Waxiqdk9WwM6YR2zD9c_k3KphlAocoylB8k2FU832pY",
              "link": "https://lu.linkedin.com/in/stephen-bearpark-27aa5b?trk=org-employees",
              "subtitle": "Bitstamp 首席财务官",
              "title": "Stephen Bearpark"
            }
          ],
          "employees_in_linkedin": 365,
          "followers": 30341,
          "formatted_locations": ["卢森堡, 卢森堡 L-2520, LU"],
          "founded": 2011,
          "funding": {
            "last_round_date": "2023-06-24T00:00:00.000Z",
            "last_round_type": "企业轮融资",
            "rounds": 3
          },
          "get_directions_url": [
            {
              "directions_url": "https://www.bing.com/maps?where=Luxembourg+L-2520+Luxembourg+LU&trk=org-locations_url"
            }
          ],
          "headquarters": "卢森堡, 卢森堡",
          "id": "bitstamp",
          "image": "https://media.licdn.com/dms/image/D4D3DAQFefkROuFwk5A/image-scale_191_1128/0/1697616530874/bitstamp_cover?e=2147483647&v=beta&t=R9eU5nQ8J-F3kbGES6-aVLhyLnQQ22lTFwhcNOd0fvg",
          "industries": "金融服务",
          "input": {
            "url": "https://www.linkedin.com/company/2734818"
          },
          "investors": ["Ripple"],
          "locations": ["卢森堡, 卢森堡 L-2520, LU"],
          "logo": "https://media.licdn.com/dms/image/D4D0BAQF_ZNbRZzKn0Q/company-logo_200_200/0/1704443361832/bitstamp_logo?e=2147483647&v=beta&t=ON2r3XfdPTbdlCABksfDNCedtHSkO2z9ReQCEI3ihN0",
          "name": "Bitstamp",
          "organization_type": "私人持有",
          "similar": [
            {
              "Links": "https://www.linkedin.com/company/krakenfx?trk=similar-pages",
              "subtitle": "金融服务",
              "title": "Kraken Digital Asset Exchange"
            },
            {
              "Links": "https://vg.linkedin.com/company/bitfinex?trk=similar-pages",
              "subtitle": "金融服务",
              "title": "Bitfinex"
            },
            {
              "Links": "https://sc.linkedin.com/company/kucoin?trk=similar-pages",
              "subtitle": "金融服务",
              "title": "KuCoin Exchange"
            },
            {
              "Links": "https://www.linkedin.com/company/bybitexchange?trk=similar-pages",
              "subtitle": "金融服务",
              "title": "Bybit"
            },
            {
              "Links": "https://www.linkedin.com/company/geminitrust?trk=similar-pages",
              "location": "纽约, NY",
              "subtitle": "金融服务",
              "title": "Gemini"
            },
            {
              "Links": "https://www.linkedin.com/company/coinbase?trk=similar-pages",
              "subtitle": "互联网出版",
              "title": "Coinbase"
            },
            {
              "Links": "https://www.linkedin.com/company/binance?trk=similar-pages",
              "subtitle": "软件开发",
              "title": "Binance"
            },
            {
              "Links": "https://www.linkedin.com/company/okxofficial?trk=similar-pages",
              "subtitle": "IT 服务与 IT 咨询",
              "title": "OKX"
            },
            {
              "Links": "https://ky.linkedin.com/company/gateio?trk=similar-pages",
              "subtitle": "金融服务",
              "title": "Gate.io"
            },
            {
              "Links": "https://sc.linkedin.com/company/htxglobalofficial?trk=similar-pages",
              "subtitle": "金融服务",
              "title": "HTX"
            }
          ],
          "slogan": "全球运营时间最长的加密交易所",
          "specialties": null,
          "sphere": "金融服务",
          "stock_info": null,
          "type": "私人持有",
          "updates": [
            {
              "comments_count": 5,
              "external_link": "https://www.linkedin.com/redir/redirect?url=https%3A%2F%2Fen%2Ethebigwhale%2Eio%2Farticle-en%2Fjean-baptiste-graftieaux-bitstamp-we-are-going-to-launch-a-fully-regulated-derivatives-offering&urlhash=0UL3&trk=organization_guest_main-feed-card_feed-article-content",
              "images": [
                "https://media.licdn.com/dms/image/sync/D4E27AQEZaBxV1lGFPQ/articleshare-shrink_800/0/1707981346426?e=2147483647&v=beta&t=Y3ZngwpKLa7Xoz6TzgVNzJZYmMk6Fdom59LHlvbZ3Ns"
              ],
              "likes_count": 89,
              "text": "在接受 The Big Whale 独家采访时，我们的首席执行官 JB Graftieaux 讨论了我们对企业服务扩展的承诺，并宣布“我们将推出完全受监管的衍生品服务。”JB Graftieaux 强调了 Bitstamp 在推动支付技术演进中的作用，尤其是为希望接受加密货币的企业。Bitstamp 专注于为 B2B 和 B2B2C 客户扩展服务，提供全面解决方案，赋能企业在当今快速发展的金融环境中取得成功。从与斯图加特证券交易所和 Revolut 等市场参与者合作，到为银行提供白标解决方案，Bitstamp 在推动机构采用加密货币方面处于前沿。秉持合规与以客户为中心的理念，我们致力于提供可信、安全和创新的解决方案，以满足客户的多样化需求。阅读全文: https://lnkd.in/dgW8FPtN",
              "time": "5天前",
              "title": "Bitstamp"
            },
            {
              "external_link": "https://www.linkedin.com/redir/redirect?url=https%3A%2F%2Fconsensus2024%2Ecoindesk%2Ecom%2Fcommunity-session-voting%2F&urlhash=BzoD&trk=organization_guest_main-feed-card_reshare_feed-article-content",
              "images": [
                "https://media.licdn.com/dms/image/sync/D5627AQE38PPAJZjCag/articleshare-shrink_800/0/1708030264958?e=2147483647&v=beta&t=pv8BCKVgL_XH4cEPcCCGrqax1jHeAGPQ1f16oSN24Bc"
              ],
              "likes_count": 1,
              "text": "🔔 今天是为 CoinDesk Consensus 2024 的“DeFi for Capital Markets”小组投票的最后一天！如果您还没有投票，我们鼓励您立即投票！您的投票可能带来改变。🗳️ #DeFi #Consensus2024",
              "time": "5天前 3周",
              "title": "Bitstamp"
            },
            {
              "likes_count": 22,
              "text": "从新兴人才到行业领袖。我们致力于赋能每个人的职业发展。想听听我们团队成员的声音？查看视频。想与我们一起培养您的潜力？探索当前的招聘岗位。🔹 加密团队负责人 (斯洛文尼亚 & 克罗地亚): https://lnkd.in/dnMm3XWW 🔹 高级软件工程师 - 加密 (斯洛文尼亚 & 克罗地亚): https://lnkd.in/d38sC7Ui 🔹 高级技术支持工程师 (斯洛文尼亚 & 克罗地亚): https://lnkd.in/dv3vmP3P 🔹 云运维工程师 - 加密 (斯洛文尼亚 & 克罗地亚): https://lnkd.in/d7M7_f5h 🔹 定价、流动性与市场经理 (斯洛文尼亚 & 英国): https://lnkd.in/dNSB4Tjp 🔹 业务运营与战略经理 - 资产上市 (斯洛文尼亚 & 英国): https://lnkd.in/g_7n_e3T 探索我们的招聘页面: https://lnkd.in/d6MTnSFi #WorkingAtBitstamp",
              "time": "6天前",
              "title": "Bitstamp",
              "videos": [null]
            },
            {
              "comments_count": 1,
              "likes_count": 31,
              "text": "我们推出最新上市的加密资产：LMWR、PEPE、BLUR 和 VEXT。LMWR 赋能内容创作者，PEPE 为加密带来趣味，BLUR 为 NFT 带来新意，VEXT 推动社区决策。每个精选资产都丰富了我们的平台，展示了我们提供多样选择的承诺。了解更多资产和上市时间表: https://lnkd.in/dykJtR4a",
              "time": "1周前",
              "title": "Bitstamp",
              "videos": [null]
            },
            {
              "comments_count": 1,
              "images": [
                "https://media.licdn.com/dms/image/D4E22AQEKWK29cExlpw/feedshare-shrink_2048_1536/0/1707825435726?e=2147483647&v=beta&t=Iv0y53aveHyYisxmD0PdAiOKe5t15QSrgfR7n5GO2p4",
                "https://media.licdn.com/dms/image/D4E22AQEVuGD2tPJufA/feedshare-shrink_800/0/1707825436409?e=2147483647&v=beta&t=jAc4jsRxdEUHfV4Z7jy7JwbaZBieFDRq63UBz9l9tkk",
                "https://media.licdn.com/dms/image/D4E22AQE4-eD8H1CzDA/feedshare-shrink_800/0/1707825440601?e=2147483647&v=beta&t=RbJSdDRDxL4mT5-j1UdR4YWjplzdlDBlexmQZTfU8qk",
                "https://media.licdn.com/dms/image/D4E22AQEX_VenEJ3dPQ/feedshare-shrink_800/0/1707825438877?e=2147483647&v=beta&t=0bHUwuFXFmgslpdrMxFbdjznxnWpNRPhfhleS_PP3nw",
                "https://media.licdn.com/dms/image/D4E22AQEQyP-Yyo1CyQ/feedshare-shrink_800/0/1707825439584?e=2147483647&v=beta&t=EG4XLvIM2-Y7LMTmpoIgG5zerGEVrWkyDG6lUW9mPqo"
              ],
              "likes_count": 59,
              "text": "上周，Bitstamp 举办了题为“新全球与数字时代的支付技术演进”的圆桌讨论活动，与布鲁内尔伦敦大学合作，由 Qi 主导。在此次动态活动中，我们探讨了支付的未来格局，桥接传统金融与加密货币的世界。衷心感谢点燃精彩讨论的嘉宾：Qi 的 Mann Matharu 和 Gurnam Selvarajah，布鲁内尔伦敦大学的 Monomita Nandy，Cardstream 的 Nic Verdino，Zodia Markets 的 Nick Philpott，CMS 律师事务所的 Charles Kerrigan，The Atlantic Society 的 Kari Chaudhry，以及 Bitstamp 的 James Sullivan 和 Lenart Dolžan。我们的使命？为加密支付在市场的广泛采用铺路。借助这一系列首场圆桌会议，我们奠定了变革的基础。与 Qi 合作，我们推动支付技术演进，为企业和消费者解锁新可能。通过深度讨论和战略合作，我们共同塑造金融的未来。欢迎加入我们！",
              "time": "1周前",
              "title": "Bitstamp"
            },
            {
              "comments_count": 2,
              "likes_count": 26,
              "text": "您是否在寻找一个工作具有挑战性、时间受到尊重的地方？在这里，您被鼓励在不牺牲个人生活的情况下专业成长。这就是我们在 Bitstamp 的目标。观看视频，看看平衡如何成为我们日常的一部分。如果这听起来是您能茁壮成长的理想环境，请查看当前招聘岗位: ◼ 产品运营经理 (斯洛文尼亚): https://lnkd.in/d2vQ9tPi ◼ 加密团队负责人 (斯洛文尼亚 & 克罗地亚): https://lnkd.in/dnMm3XWW ◼ 软件工程师 - 加密 (斯洛文尼亚 & 克罗地亚): https://lnkd.in/dxqXTKpk ◼ 高级软件工程师 - 加密 (斯洛文尼亚 & 克罗地亚): https://lnkd.in/d38sC7Ui ◼ 高级技术支持工程师 (斯洛文尼亚 & 克罗地亚): https://lnkd.in/dv3vmP3P ◼ QA 工程师 - 交易 (斯洛文尼亚 & 克罗地亚): https://lnkd.in/dsQVU7ji ◼ 云运维工程师 - 加密 (斯洛文尼亚 & 克罗地亚): https://lnkd.in/d7M7_f5h ◼ 定价、流动性与市场经理 (斯洛文尼亚 & 英国): https://lnkd.in/dNSB4Tjp ◼ 业务运营与战略经理 - 资产上市 (斯洛文尼亚 & 英国): https://lnkd.in/g_7n_e3T 探索我们的招聘页面: https://lnkd.in/d6MTnSFi #WorkingAtBitstamp",
              "time": "1周前",
              "title": "Bitstamp",
              "videos": [null]
            },
            {
              "images": [
                "https://media.licdn.com/dms/image/D5622AQGaDA-jWHS00w/feedshare-shrink_800/0/1707396968499?e=2147483647&v=beta&t=Edse9Bu4qZfP8yWlB6XM6xhLQYS0D1UUNlyusH-afiM"
              ],
              "likes_count": 19,
              "text": "我们迫不及待地等待今晚与 Copper.co 的活动，我们将为嘉宾举办专属小组讨论和品酒体验。准备好探索如何在加密领域中导航最新见解。我们的战略合作与企业发展负责人 Eva Gartner 将加入专家小组，深入讨论加密托管中的安全性、风险缓解和流动性等关键主题。为复杂的加密托管与精致的品酒体验举杯庆祝，在数字资产世界中创造成功的交响曲！请注意，今晚的活动已满员。如有兴趣参加，请联系团队以加入候补名单。",
              "time": "1周前 编辑",
              "title": "Bitstamp"
            },
            {
              "external_link": "https://www.linkedin.com/redir/redirect?url=https%3A%2F%2Fblog%2Ebitstamp%2Enet%2Fpost%2Fbitstamp-monthly-briefing-january-2024%2F&urlhash=q2zL&trk=organization_guest_main-feed-card_feed-article-content",
              "images": [
                "https://media.licdn.com/dms/image/sync/D4D27AQHQLNtdTnqyXA/articleshare-shrink_800/0/1707322864200?e=2147483647&v=beta&t=ln_cWSvNOtrGWj2CqbsT2wwV5b-Mx0M44JlUOFmHE2s"
              ],
              "likes_count": 19,
              "text": "Bitstamp 一月加密洞察来了。⬇ 本月简报深入探讨重塑加密世界的市场动态，并详细分析加密借贷的细节。我们旨在为这些关键领域提供有价值的见解，帮助读者在 2024 年做出明智决策。阅读最新月度简报: https://lnkd.in/dEuMg8Rz",
              "time": "1周前",
              "title": "Bitstamp"
            },
            {
              "comments_count": 2,
              "images": [
                "https://media.licdn.com/dms/image/D4D22AQF-6xcJCu5tyQ/feedshare-shrink_800/0/1707307881815?e=2147483647&v=beta&t=SeY1P70tTqomRvQanx4bGWuoRQYvVaACw1VzmEwvMDs"
              ],
              "likes_count": 29,
              "text": "提醒注册我们的首场 LinkedIn 音频活动！📢 🗓️ 时间: 2 月 8 日星期四 15:00 GMT！加入我们，深入探讨“机构采用加密货币：2024 年的法规与增长机会”，嘉宾阵容包括: 🎙️ Simon Barnby, Chloé Nightingale, Amor Sexton, Soledad Contreras, Kevin de Patoul, Danny Bailey, Coby L., Radoslav Poljasevic 以及 Olly Wilson 🤝 由 Blockchain.com 赞助 🔗 请点击活动链接中的“参加”: https://lnkd.in/dYNDebUY",
              "time": "2周前",
              "title": "Zebu Live - London Web3 Conference"
            },
            {
              "external_link": "https://www.linkedin.com/redir/redirect?url=https%3A%2F%2Fcryptonews%2Ecom%2Fexclusives%2Fbobby-zagotta-ceo-of-bitstamp-on-bitcoin-etf-the-halving-defi-for-capital-markets-and-2024-predictions-ep-304%2Ehtm&urlhash=72HL&trk=organization_guest_main-feed-card_feed-article-content",
              "images": [
                "https://media.licdn.com/dms/image/sync/D5627AQEzMtolOYZaJg/articleshare-shrink_800/0/1708013936402?e=2147483647&v=beta&t=crppgb7R5w6HQ0GUEpkXYLhFsVWBu-K1Y9ta7I7Idn4"
              ],
              "likes_count": 38,
              "text": "我最近与 Cryptonews 的 Matt Zahab 进行交流，讨论了一系列话题，包括比特币 ETF 的潜力、即将到来的减半影响，以及 DeFi 如何塑造资本市场的未来。我还分享了一些对 2024 年加密领域的看法。这是一次发人深省的对话，为对金融未来感兴趣的人提供了宝贵见解。阅读全文: https://lnkd.in/gtyUtMGt #Podcast #Bitcoin Bitstamp",
              "time": "2周前",
              "title": "Bobby Zagotta"
            }
          ],
          "url": "https://www.linkedin.com/company/bitstamp",
          "website": "https://www.bitstamp.net/"
        }
      },
      "DatasetSnapshotStatus": {
        "type": "string",
        "enum": [
          "canceled",
          "scheduled",
          "collecting",
          "digesting",
          "validating",
          "building",
          "delivering",
          "pending_discovery_input",
          "pending_pdp_input",
          "pending_developer_review",
          "pending_owner_review",
          "queued_for_developer_review",
          "ready",
          "failed",
          "rolling_back"
        ]
      },
      "DeliverConfigBase": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "type": {
            "$ref": "#/components/schemas/DatasetDeliveryType"
          },
          "filename": {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "template": {
                "type": "string",
                "description": "文件名模板，包括占位符。"
              },
              "extension": {
                "$ref": "#/components/schemas/DeliveredFileExt"
              }
            },
            "required": ["template", "extension"]
          }
        },
        "required": ["type", "filename"]
      },
      "DeliverConfigWebhook": {
        "allOf": [
          {
            "$ref": "#/components/schemas/DeliverConfigBase"
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "enum": ["webhook"]
              },
              "endpoint": {
                "type": "string",
                "format": "uri",
                "description": "Webhook 的端点 URL。"
              }
            }
          }
        ]
      },
      "DeliverConfigGCS": {
        "allOf": [
          {
            "$ref": "#/components/schemas/DeliverConfigBase"
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "enum": ["gcs"]
              },
              "bucket": {
                "type": "string",
                "description": "存储桶名称。"
              },
              "credentials": {
                "type": "object",
                "additionalProperties": false,
                "description": "认证凭据",
                "properties": {
                  "client_email": {
                    "type": "string"
                  },
                  "private_key": {
                    "type": "string"
                  }
                },
                "required": ["client_email", "private_key"]
              },
              "directory": {
                "type": "string",
                "description": "目标路径"
              }
            },
            "required": ["bucket", "credentials"]
          }
        ]
      },
      "DeliverConfigGCSPubSub": {
        "allOf": [
          {
            "$ref": "#/components/schemas/DeliverConfigBase"
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "enum": ["gcs_pubsub"]
              },
              "topic_id": {
                "type": "string"
              },
              "attributes": {
                "type": "array",
                "items": {
                  "type": "object"
                }
              },
              "credentials": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "client_email": {
                    "type": "string"
                  },
                  "private_key": {
                    "type": "string"
                  }
                },
                "required": ["client_email", "private_key"]
              }
            },
            "required": ["topic_id", "credentials"]
          }
        ]
      },
      "DeliverConfigS3": {
        "allOf": [
          {
            "$ref": "#/components/schemas/DeliverConfigBase"
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "enum": ["s3"]
              },
              "bucket": {
                "type": "string"
              },
              "endpoint_url": {
                "type": "string",
                "description": "类似 S3 的主机 URL，仅在使用 Access Key 认证时可用"
              },
              "credentials": {
                "type": "object",
                "additionalProperties": false,
                "minProperties": 2,
                "properties": {
                  "aws-access-key": {
                    "type": "string"
                  },
                  "aws-secret-key": {
                    "type": "string"
                  },
                  "role_arn": {
                    "type": "string"
                  },
                  "external_id": {
                    "type": "string"
                  }
                },
                "oneOf": [
                  {
                    "title": "Role ARN",
                    "required": ["role_arn", "external_id"]
                  },
                  {
                    "title": "Access Key",
                    "required": ["aws-access-key", "aws-secret-key"]
                  }
                ]
              },
              "region": {
                "type": "string"
              },
              "directory": {
                "type": "string"
              }
            },
            "required": ["bucket", "credentials"]
          }
        ]
      },
      "DeliverConfigSnowflake": {
        "allOf": [
          {
            "$ref": "#/components/schemas/DeliverConfigBase"
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "enum": ["snowflake"]
              },
              "database": {
                "type": "string",
                "description": "数据库名称"
              },
              "schema": {
                "type": "string",
                "description": "数据库模式"
              },
              "stage": {
                "type": "string",
                "description": "Snowflake 阶段名称"
              },
              "role": {
                "type": "string",
                "description": "用户角色"
              },
              "warehouse": {
                "type": "string",
                "description": "仓库名称"
              },
              "credentials": {
                "type": "object",
                "additionalProperties": false,
                "description": "认证凭据",
                "properties": {
                  "account": {
                    "type": "string"
                  },
                  "user": {
                    "type": "string"
                  },
                  "password": {
                    "type": "string"
                  }
                },
                "required": ["account", "user", "password"]
              }
            },
            "required": [
              "database",
              "schema",
              "stage",
              "role",
              "warehouse",
              "credentials"
            ]
          }
        ]
      },
      "DeliverConfigAliOSS": {
        "allOf": [
          {
            "$ref": "#/components/schemas/DeliverConfigBase"
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "enum": ["ali_oss"]
              },
              "bucket": {
                "type": "string"
              },
              "credentials": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "access-key": {
                    "type": "string"
                  },
                  "secret-key": {
                    "type": "string"
                  }
                },
                "required": ["access-key", "secret-key"]
              },
              "region": {
                "type": "string"
              },
              "directory": {
                "type": "string"
              }
            },
            "required": ["bucket", "credentials", "region"]
          }
        ]
      },
      "DeliverConfigSFTP": {
        "allOf": [
          {
            "$ref": "#/components/schemas/DeliverConfigBase"
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "enum": ["sftp"]
              },
              "path": {
                "type": "string",
                "format": "hostname"
              },
              "port": {
                "type": "integer",
                "minimum": 0,
                "maximum": 65535
              },
              "credentials": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "username": {
                    "type": "string"
                  },
                  "password": {
                    "type": "string"
                  },
                  "ssh_key": {
                    "type": "string"
                  },
                  "passphrase": {
                    "type": "string"
                  }
                },
                "required": ["username"]
              },
              "directory": {
                "type": "string"
              }
            },
            "required": ["path", "credentials"]
          }
        ]
      },
      "DeliverConfigAzure": {
        "allOf": [
          {
            "$ref": "#/components/schemas/DeliverConfigBase"
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "enum": ["azure"]
              },
              "container": {
                "type": "string",
                "minLength": 3,
                "pattern": "^[a-z0-9](-?[a-z0-9])*$"
              },
              "credentials": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "account": {
                    "type": "string",
                    "pattern": "^[a-zA-Z0-9]+$"
                  },
                  "key": {
                    "type": "string",
                    "format": "byte"
                  },
                  "sas_token": {
                    "type": "string"
                  }
                },
                "required": ["account"],
                "oneOf": [
                  {
                    "required": ["key"],
                    "title": "访问密钥"
                  },
                  {
                    "required": ["sas_token"],
                    "title": "共享访问令牌"
                  }
                ]
              },
              "directory": {
                "type": "string"
              }
            },
            "required": ["container", "credentials"]
          }
        ]
      },
      "DeliverConfig": {
        "description": "Deliver configuration",
        "oneOf": [
          {
            "$ref": "#/components/schemas/DeliverConfigWebhook",
            "description": "Webhook"
          },
          {
            "$ref": "#/components/schemas/DeliverConfigGCS",
            "description": "Google Cloud"
          },
          {
            "$ref": "#/components/schemas/DeliverConfigGCSPubSub",
            "description": "Google Cloud PubSub"
          },
          {
            "$ref": "#/components/schemas/DeliverConfigS3",
            "description": "Amazon S3"
          },
          {
            "$ref": "#/components/schemas/DeliverConfigSnowflake",
            "description": "Snowflake"
          },
          {
            "$ref": "#/components/schemas/DeliverConfigAliOSS",
            "description": "Aliyun Object Storage Service"
          },
          {
            "$ref": "#/components/schemas/DeliverConfigSFTP",
            "description": "SFTP"
          },
          {
            "$ref": "#/components/schemas/DeliverConfigAzure",
            "description": "Microsoft Azure"
          }
        ]
      },
      "DeliverSnapshotBody": {
        "type": "object",
        "properties": {
          "deliver": {
            "$ref": "#/components/schemas/DeliverConfig"
          },
          "compress": {
            "type": "boolean",
            "description": "以 gzip 格式压缩传输文件",
            "default": false
          }
        }
      },
      "ScrapeRequestWithFields": {
        "type": "object",
        "properties": {
          "input": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": {}
            },
            "description": "输入对象数组。字段取决于抓取器，例如 `url` 或 `user_name`。"
          },
          "custom_output_fields": {
            "type": "string",
            "description": "输出列列表，用 `|` 分隔（例如，`url|about.updated_on`）。筛选响应，仅包含指定字段。",
            "example": "url|about.updated_on"
          },
          "limit_per_input": {
            "type": [
              "integer",
              "null"
            ],
            "minimum": 1,
            "description": "每个输入最多返回的记录数，或 `null`。适用于结果数量不固定的发现请求。",
            "example": null
          }
        },
        "required": ["input"],
        "example": {
          "input": [{ "url": "www.linkedin.com/in/bulentakar" }],
          "custom_output_fields": "url|about.updated_on"
        }
      },
      "ErrorBody": {
        "type": "object",
        "properties": {
          "error": {
            "type": "string"
          }
        }
      },
      "SnapshotDataResponse": {
        "type": "object",
        "examples": [
          {
            "id": "s_mcd3rc6l2md984eoij",
            "created": "2025-06-26T08:09:32.781Z",
            "Status": "ready",
            "dataset_name": "Apple App Store",
            "scraper_name": "Apple App Store - collect by URL",
            "Dataset_size": 2,
            "Inputs_count": 2,
            "Dataset_id": "gd_lsk9ki3u2iishmwrui",
            "Discovery_collector_id": null,
            "file_size": 65381,
            "trigger": {
              "type": "CP",
              "user": "amite@brightdata.com",
              "ip": "130.41.220.17",
              "trigger_url": "/trigger?customer=hl_dacd97fb&type=url_collection&dataset_id=gd_lsk9ki3u2iishmwrui&include_errors=true&discover_only=false",
              "ts": "2025-06-26T08:09:32.074Z"
            },
            "Duration": 6,
            "Duration_per_input": 3,
            "Success_rate": 1
          }
        ]
      },
      "ValidationErrorBody": {
        "type": "object",
        "properties": {
          "validation_errors": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        }
      },
      "TriggerInput": {
        "type": "array",
        "example": [
          {
            "url": "https://il.linkedin.com/company/bright-data"
          }
        ],
        "items": {
          "type": "object",
          "additionalProperties": {}
        }
      },
      "TriggerAndDeliverBody": {
        "type": "object",
        "example": {
          "deliver": {
            "type": "webhook",
            "filename": {
              "extension": "json",
              "template": "{[snapshot_timestamp]}_{[snapshot_id]}"
            },
            "endpoint": "https://example.com/foo/bar"
          },
          "input": [
            {
              "url": "https://il.linkedin.com/company/bright-data"
            }
          ]
        },
        "properties": {
          "deliver": {
            "$ref": "#/components/schemas/DeliverConfig"
          },
          "input": {
            "$ref": "#/components/schemas/TriggerInput"
          },
          "limit_per_input": {
            "type": [
              "integer",
              "null"
            ],
            "minimum": 1,
            "description": "每个输入最多返回的记录数，或 `null`。适用于结果数量不固定的发现请求。",
            "example": null
          },
          "custom_output_fields": {
            "type": "string",
            "description": "输出列列表，用 `|` 分隔（例如，`url|about.updated_on`）。仅返回指定字段。",
            "example": "url|about.updated_on"
          }
        }
      },
      "ScrapeInput": {
        "type": "array",
        "description": "由输入对象组成的 JSON 数组。同样接受，但无法携带 `limit_per_input`。",
        "example": [
          {
            "url": "https://www.amazon.com/dp/B0FQFB8FMG"
          }
        ],
        "items": {
          "type": "object",
          "additionalProperties": {}
        }
      },
      "ViewDeliverySettings": {
        "type": "object",
        "description": "数据集视图的交付配置。用于视图交付设置的 GET、PUT 和批量 PUT 端点。",
        "properties": {
          "deliver": {
            "$ref": "#/components/schemas/DeliverConfig",
            "description": "交付目标配置。`type` 字段用于选择目标（例如 `s3`、`sftp`、`webhook`），其余字段取决于 `/datasets/delivery_settings/{destination_type}/schema` 返回的目标 schema。"
          },
          "filename": {
            "type": "object",
            "description": "输出文件名和格式的配置。",
            "properties": {
              "extension": {
                "type": "string",
                "description": "输出文件扩展名。",
                "enum": [
                  "json",
                  "csv",
                  "xlsx",
                  "ndjson",
                  "parquet",
                  "jsonl"
                ],
                "example": "json"
              },
              "template": {
                "type": "string",
                "description": "文件名模板。支持 `{[datetime]}` 占位符。",
                "example": "bd_{[datetime]}"
              },
              "tz_offset": {
                "type": "string",
                "description": "渲染 `{[datetime]}` 占位符时应用的时区偏移。",
                "example": "+00:00"
              }
            }
          },
          "flatten_csv": {
            "type": "boolean",
            "description": "为 `true` 时，CSV 输出中的嵌套字段会被展平。",
            "default": false
          },
          "tar": {
            "type": "boolean",
            "description": "为 `true` 时，交付的文件会打包为 TAR 归档。",
            "default": false
          },
          "compress": {
            "type": "boolean",
            "description": "为 `true` 时，交付的文件会使用 gzip 压缩。",
            "default": false
          },
          "batch_size": {
            "type": "integer",
            "description": "每个批次文件的最大记录数，用于将大型交付拆分为较小的文件。最大批次大小为 5GB。",
            "example": 1000
          }
        }
      }
    },
    "securitySchemes": {
      "bearerAuth": {
        "type": "http",
        "scheme": "bearer",
        "description": "在 Authorization 头中使用您的 Bright Data API Key 作为 Bearer token。\n\n**认证方法:**\n1. 从 Bright Data 账户设置获取您的 API Key: https://brightdata.com/cp/setting/users\n2. 在请求的 Authorization 头中包含 API Key\n3. 格式: `Authorization: Bearer YOUR_API_KEY`\n\n**示例:**\n```\nAuthorization: Bearer b5648e1096c6442f60a6c4bbbe73f8d2234d3d8324554bd6a7ec8f3f251f07df\n```\n\n了解如何获取 Bright Data API Key: https://docs.brightdata.com/cn/api-reference/authentication#如何生成新的-api-key？",
        "bearerFormat": "API Key"
      }
    }
  }
}
