{
  "openapi": "3.0.1",
  "info": {
    "title": "Goofish Xianyu Scraper | Category & Seller Listings",
    "description": "Get Goofish / Xianyu (闲鱼) second-hand listings: title, price in CNY, city, want count, images and masked seller nick. Sources: 15 category channels, the home feed, channel URLs, seller shops and item URLs. Optional details: description, views, condition, brand, seller rating. No login.",
    "version": "0.0",
    "x-build-id": "B2mGhdfb1GQEVJFXd"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/genial_candlestand~goofish-xianyu-listings-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-genial_candlestand-goofish-xianyu-listings-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/genial_candlestand~goofish-xianyu-listings-scraper/runs": {
      "post": {
        "operationId": "runs-sync-genial_candlestand-goofish-xianyu-listings-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/genial_candlestand~goofish-xianyu-listings-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-genial_candlestand-goofish-xianyu-listings-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": {
          "categories": {
            "title": "Category channels",
            "type": "array",
            "description": "Goofish (闲鱼) home-page category channels to list, e.g. 摄影摄像 Cameras (164460_1) or 手机数码 Phones & electronics (163816_1). Each channel gives up to ~1,000 different listings; 'home' is the random recommended feed (~400 max). Keyword search is not offered: Goofish requires a login for it. Give at least one of Category channels, Start URLs or Seller IDs.",
            "items": {
              "type": "string",
              "enum": [
                "163816_1",
                "164460_1",
                "164099_1",
                "164085_1",
                "163873_1",
                "168395_1",
                "164082_1",
                "165202_1",
                "164106_1",
                "164090_1",
                "164111_1",
                "164459_1",
                "164468_1",
                "165362_1",
                "165364_1",
                "home"
              ],
              "enumTitles": [
                "Phones & electronics (手机数码)",
                "Cameras & photography (摄影摄像)",
                "Women's fashion (女装穿搭)",
                "Brand beauty (大牌美妆)",
                "Wardrobe deals (衣橱捡漏)",
                "Personal second-hand (个人闲置)",
                "Home goods (居家好物)",
                "Anime & ACG (二次元)",
                "Guitars & instruments (吉他乐器)",
                "Motorbikes (机车)",
                "Fishing (垂钓)",
                "Billiards (台球)",
                "Coin collecting (钱币收藏)",
                "BJD dolls (BJD娃娃)",
                "Vouchers & coupons (省钱卡券)",
                "Recommended home feed (猜你喜欢, random, max ~400)"
              ]
            }
          },
          "startUrls": {
            "title": "Start URLs (channel, seller or item pages)",
            "type": "array",
            "description": "Goofish URLs on www.goofish.com: a channel page https://www.goofish.com/mach-feeds?machId=166630&publishTimes=2 (publishTimes may be left out, the actor looks it up), a seller page https://www.goofish.com/personal?userId=2216091943263 (lists the shop), or a listing https://www.goofish.com/item?id=932721428212 (one row, always with details). Search URLs (/search?q=) are rejected: search needs a login.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "sellerIds": {
            "title": "Seller IDs",
            "type": "array",
            "description": "Numeric Goofish seller (user) IDs whose shop listings to scrape, e.g. 2216091943263 — the userId in https://www.goofish.com/personal?userId=… (the URL itself is accepted too). Goofish shows at most ~19 pages (≈380 newest listings) of a shop.",
            "items": {
              "type": "string"
            }
          },
          "maxItemsPerSource": {
            "title": "Max listings per source",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Stop each channel, channel URL or seller shop after this many listings (1–1,000). No effect on a single item URL. Channels give up to ~1,000 different listings, seller shops ~380, the home feed ~400.",
            "default": 100
          },
          "maxItems": {
            "title": "Max listings in total",
            "minimum": 1,
            "type": "integer",
            "description": "Stop the whole run after this many listings (all sources together). Empty = no total limit; each source is still capped by Max listings per source."
          },
          "includeDetails": {
            "title": "Include listing details",
            "type": "boolean",
            "description": "Open every listing (one extra request each) and add description, views, favourites, publish time, condition, brand, model, specs, status, shipping fee, quantity and the seller's ID, city, rating, reply rate, sold count and registration date. Charged as an extra 'Listing details' event per listing that got them.",
            "default": false
          },
          "minPrice": {
            "title": "Min price (CNY)",
            "minimum": 0,
            "type": "number",
            "description": "Keep only listings priced at least this much in Chinese yuan. Applied to channel and seller-shop listings (not to item URLs); filtered-out listings are free."
          },
          "maxPrice": {
            "title": "Max price (CNY)",
            "minimum": 0,
            "type": "number",
            "description": "Keep only listings priced at most this much in Chinese yuan. Must not be below Min price. Applied to channel and seller-shop listings (not to item URLs)."
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Proxy for the Goofish API. The default Apify datacenter proxy works; on a block the actor switches to a new IP and then once to a residential proxy.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}