{
  "openapi": "3.0.1",
  "info": {
    "title": "Made-in-China.com Buying Requests (RFQ) Scraper",
    "description": "Scrape live buying requests (RFQs) from Made-in-China.com: product wanted, quantity, buyer country, budget, quotes left, photos, plus optional trade terms, target price, payment terms and destination port. Search by keyword, category, region or date. Only-new mode for lead alerts.",
    "version": "0.1",
    "x-build-id": "1vXzOYdPltxWEEVss"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/fanndev~made-in-china-buying-requests-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-fanndev-made-in-china-buying-requests-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/fanndev~made-in-china-buying-requests-scraper/runs": {
      "post": {
        "operationId": "runs-sync-fanndev-made-in-china-buying-requests-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/fanndev~made-in-china-buying-requests-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-fanndev-made-in-china-buying-requests-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": {
          "searchKeywords": {
            "title": "Search keywords",
            "type": "array",
            "description": "Product keywords to find buying requests for, e.g. 'solar panel' or 'led light'. One search per keyword. Leave empty to browse by category (or all requests) instead.",
            "items": {
              "type": "string"
            }
          },
          "categories": {
            "title": "Categories",
            "type": "array",
            "description": "Browse every buying request in these top-level categories. Used only when 'Search keywords' is empty. Leave both empty to get all buying requests, newest first.",
            "items": {
              "type": "string",
              "enum": [
                "Agriculture & Food",
                "Apparel & Accessories",
                "Arts & Crafts",
                "Auto, Motorcycle Parts & Accessories",
                "Bags, Cases & Boxes",
                "Chemicals",
                "Computer Products",
                "Construction & Decoration",
                "Consumer Electronics",
                "Electrical & Electronics",
                "Furniture",
                "Health & Medicine",
                "Industrial Equipment & Components",
                "Instruments & Meters",
                "Light Industry & Daily Use",
                "Lights & Lighting",
                "Manufacturing & Processing Machinery",
                "Metallurgy, Mineral & Energy",
                "Office Supplies",
                "Packaging & Printing",
                "Security & Protection",
                "Service",
                "Sporting Goods & Recreation",
                "Textile",
                "Tools & Hardware",
                "Toys",
                "Transportation"
              ]
            }
          },
          "regions": {
            "title": "Buyer regions",
            "type": "array",
            "description": "Only requests from buyers in these regions. Made-in-China.com offers these ten countries as filters; pick 'Any other country' for everywhere else. Leave empty for all regions.",
            "items": {
              "type": "string",
              "enum": [
                "united_states",
                "india",
                "nigeria",
                "united_kingdom",
                "pakistan",
                "australia",
                "canada",
                "south_africa",
                "ghana",
                "brazil",
                "other"
              ],
              "enumTitles": [
                "United States",
                "India",
                "Nigeria",
                "United Kingdom",
                "Pakistan",
                "Australia",
                "Canada",
                "South Africa",
                "Ghana",
                "Brazil",
                "Any other country"
              ]
            }
          },
          "postedWithin": {
            "title": "Posted within",
            "enum": [
              "",
              "12h",
              "24h",
              "3d",
              "7d",
              "olderThan7d"
            ],
            "type": "string",
            "description": "Only requests posted in this time window. Combine with a schedule (e.g. every 12 hours) for a steady stream of fresh leads.",
            "default": ""
          },
          "withPhotosOnly": {
            "title": "Only requests with photos",
            "type": "boolean",
            "description": "Keep only requests where the buyer attached a product photo.",
            "default": false
          },
          "sortBy": {
            "title": "Sort keyword results by",
            "enum": [
              "newest",
              "relevance"
            ],
            "type": "string",
            "description": "Newest first (default) or the site's relevance order. Category and all-request browsing is always newest first.",
            "default": "newest"
          },
          "maxResults": {
            "title": "Max results per search",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum buying requests to save for each keyword / category / region combination. 0 means no limit (the site lets you page through several hundred thousand requests).",
            "default": 100
          },
          "includeDetails": {
            "title": "Include trade details",
            "type": "boolean",
            "description": "Open each request's page to add trade terms (FOB/CIF...), target unit price, max budget, payment terms, shipping method, destination port, exact posting time and category name. One extra page per request, so runs take longer.",
            "default": false
          },
          "onlyNewSinceLastRun": {
            "title": "Only new requests since last run",
            "type": "boolean",
            "description": "Skip requests this actor already returned in an earlier run with the same search settings. Turn this on for scheduled lead alerts so each run only delivers fresh requests.",
            "default": false
          },
          "stateKey": {
            "title": "Memory name (for 'only new')",
            "type": "string",
            "description": "Optional. Runs that share this name share the memory of already-returned requests, even if their search settings differ. Leave empty to keep a separate memory per search setup."
          },
          "startUrls": {
            "title": "Start URLs",
            "type": "array",
            "description": "Optional. Paste search result URLs from sourcing.made-in-china.com/sourcingrequest?... (filters are kept), or individual buying request pages (sourcing.made-in-china.com/request/...).",
            "items": {
              "type": "string"
            }
          },
          "maxConcurrency": {
            "title": "Max concurrency",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "How many request pages to open in parallel when 'Include trade details' is on.",
            "default": 5
          },
          "maxRetries": {
            "title": "Max retries",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "How many times to retry a failed page before giving up on it.",
            "default": 5
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Apify Proxy. The default (datacenter) works for this site and costs least; switch to Residential only if a large run starts getting blocked.",
            "default": {
              "useApifyProxy": true
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}