{
  "openapi": "3.0.1",
  "info": {
    "title": "Alibaba RFQ Scraper",
    "description": "Extracts public buying requests from Alibaba's sourcing RFQ market using embedded page data and optional public detail pages.",
    "version": "1.1",
    "x-build-id": "vRZdOJ0SqWRWVop4d"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/w3crawler~alibaba-rfq-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-w3crawler-alibaba-rfq-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/w3crawler~alibaba-rfq-scraper/runs": {
      "post": {
        "operationId": "runs-sync-w3crawler-alibaba-rfq-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor and returns information about the initiated run in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runsResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/acts/w3crawler~alibaba-rfq-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-w3crawler-alibaba-rfq-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "properties": {
          "keyword": {
            "title": "Primary RFQ keyword",
            "maxLength": 200,
            "type": "string",
            "description": "One public sourcing keyword. Use keywords for multiple independent query sources."
          },
          "keywords": {
            "title": "RFQ keywords",
            "maxItems": 50,
            "type": "array",
            "description": "Multiple public RFQ search keywords. Each keyword becomes a source and is paginated independently.",
            "items": {
              "type": "string",
              "minLength": 1,
              "maxLength": 200
            },
            "default": [
              "wireless earbuds"
            ]
          },
          "country": {
            "title": "Source country parameter",
            "maxLength": 100,
            "type": "string",
            "description": "Optional country query parameter passed to Alibaba's public RFQ list."
          },
          "countries": {
            "title": "Source countries (compatibility alias)",
            "maxItems": 50,
            "type": "array",
            "description": "Compatibility input retained for integrations; the first source country is used for URL generation.",
            "items": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100
            }
          },
          "searchUrl": {
            "title": "Official RFQ list URL",
            "type": "string",
            "description": "One HTTPS sourcing.alibaba.com/rfq/rfqSearchList.htm URL copied from the public site. It takes precedence over generated keyword sources."
          },
          "searchUrls": {
            "title": "Official RFQ list URLs",
            "maxItems": 50,
            "type": "array",
            "description": "Multiple official public RFQ list URLs. Each URL is paginated independently.",
            "items": {
              "type": "string",
              "minLength": 1,
              "maxLength": 1000
            }
          },
          "startUrls": {
            "title": "Start URLs (compatibility alias)",
            "maxItems": 50,
            "type": "array",
            "description": "Compatibility alias for searchUrls.",
            "items": {
              "type": "string",
              "minLength": 1,
              "maxLength": 1000
            }
          },
          "startPage": {
            "title": "Start page",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "One-based page number at which every source starts.",
            "default": 1
          },
          "maxPages": {
            "title": "Maximum pages per source",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "Bound the number of public RFQ pages fetched for each source.",
            "default": 1
          },
          "maxItems": {
            "title": "Maximum RFQs",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "Maximum RFQ rows emitted after deduplication, filtering, and sorting.",
            "default": 20
          },
          "sortBy": {
            "title": "Sort RFQs",
            "enum": [
              "relevance",
              "newest",
              "quantity_desc",
              "quotes_desc",
              "quality_desc",
              "buyer_country_asc",
              "subject_asc"
            ],
            "type": "string",
            "description": "Stable ordering applied after all sources and pages are aggregated.",
            "default": "relevance"
          },
          "textQuery": {
            "title": "Text filter",
            "maxLength": 200,
            "type": "string",
            "description": "Keep RFQs whose subject, description, buyer, requirement, country, or tags contain this text."
          },
          "buyerCountries": {
            "title": "Buyer countries",
            "maxItems": 50,
            "type": "array",
            "description": "Keep RFQs whose visible buyer country or country code contains one of these values.",
            "items": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100
            }
          },
          "requiredTags": {
            "title": "Required tags",
            "maxItems": 50,
            "type": "array",
            "description": "Keep RFQs containing every requested visible tag.",
            "items": {
              "type": "string",
              "minLength": 1,
              "maxLength": 200
            }
          },
          "minQuantity": {
            "title": "Minimum quantity",
            "minimum": 0,
            "maximum": 1000000000000,
            "type": "number",
            "description": "Keep RFQs whose parsed quantity is at least this value."
          },
          "maxQuantity": {
            "title": "Maximum quantity",
            "minimum": 0,
            "maximum": 1000000000000,
            "type": "number",
            "description": "Keep RFQs whose parsed quantity is at most this value."
          },
          "deduplicate": {
            "title": "Deduplicate RFQs",
            "type": "boolean",
            "description": "Merge repeated public observations by RFQ identifier.",
            "default": true
          },
          "includeDetails": {
            "title": "Fetch public detail pages",
            "type": "boolean",
            "description": "Fetch visible public RFQ detail pages when a detail URL is present.",
            "default": false
          },
          "includeAnnexes": {
            "title": "Include public annex links",
            "type": "boolean",
            "description": "Retain visible public PDF/document links discovered on detail pages.",
            "default": true
          },
          "includeImages": {
            "title": "Include public image URLs",
            "type": "boolean",
            "description": "Include public Alibaba RFQ image URLs when exposed by the page.",
            "default": true
          },
          "requestTimeoutSecs": {
            "title": "Request timeout (seconds)",
            "minimum": 5,
            "maximum": 300,
            "type": "integer",
            "description": "Maximum time for each public Alibaba request.",
            "default": 30
          },
          "timeoutSecs": {
            "title": "Request timeout (legacy alias)",
            "minimum": 5,
            "maximum": 300,
            "type": "integer",
            "description": "Compatibility alias for requestTimeoutSecs."
          },
          "requestDelayMs": {
            "title": "Request delay (ms)",
            "minimum": 0,
            "maximum": 15000,
            "type": "integer",
            "description": "Delay between public requests per source worker.",
            "default": 1000
          },
          "maxConcurrency": {
            "title": "Maximum concurrency",
            "minimum": 1,
            "maximum": 5,
            "type": "integer",
            "description": "Maximum simultaneous source/detail workers.",
            "default": 1
          },
          "maxRequestRetries": {
            "title": "Maximum request retries",
            "minimum": 0,
            "maximum": 10,
            "type": "integer",
            "description": "Retries timeouts, transient network failures, HTTP 408, and server errors. Access blocks, proxy-auth denials, challenges, and rate limits are terminal.",
            "default": 3
          },
          "maxBytes": {
            "title": "Maximum response bytes",
            "minimum": 1000,
            "maximum": 15000000,
            "type": "integer",
            "description": "Reject unusually large public responses before parsing.",
            "default": 5000000
          },
          "userAgent": {
            "title": "User agent",
            "maxLength": 300,
            "type": "string",
            "description": "Optional transparent HTTP user-agent string."
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Optional ordinary proxy routing. Use Apify Proxy or a supplied public HTTP(S) proxy; no stealth or access-control bypass is performed.",
            "properties": {
              "useApifyProxy": {
                "title": "Use Apify Proxy",
                "type": "boolean",
                "description": "Route public requests through Apify Proxy when enabled."
              },
              "apifyProxyGroups": {
                "title": "Apify Proxy groups",
                "type": "array",
                "items": {
                  "type": "string"
                },
                "description": "Optional Apify Proxy groups."
              },
              "apifyProxyCountry": {
                "title": "Apify Proxy country",
                "type": "string",
                "pattern": "^[A-Za-z]{2,3}$",
                "description": "Optional two- or three-letter Apify Proxy country code."
              },
              "proxyUrls": {
                "title": "Public proxy URLs",
                "type": "array",
                "items": {
                  "type": "string"
                },
                "description": "Optional public HTTP(S) proxy URLs used in round-robin order."
              }
            },
            "additionalProperties": false
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}