{
  "openapi": "3.0.1",
  "info": {
    "title": "Goofish Xianyu Scraper: Seller Listings, Reviews & Feed",
    "description": "Goofish (闲鱼 Xianyu, Idlefish) scraper and API: a seller's listings on sale and sold past the 1,000-a-list cap, seller profiles with credit levels, every review, the home feed, channels and similar items. Price, images, want count, city. No login. Misses free.",
    "version": "0.1",
    "x-build-id": "Qt5QAiyFbcv9Pcqsa"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/hyperbach~goofish-xianyu-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-hyperbach-goofish-xianyu-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/hyperbach~goofish-xianyu-scraper/runs": {
      "post": {
        "operationId": "runs-sync-hyperbach-goofish-xianyu-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/hyperbach~goofish-xianyu-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-hyperbach-goofish-xianyu-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": {
          "sellers": {
            "title": "Sellers",
            "maxItems": 1000,
            "type": "array",
            "description": "Goofish sellers, one a line: a profile link (https://www.goofish.com/personal?userId=…), a share link from the app (pages.goofish.com/sharexy?… or fleamarket://personalPage?userid=…), or the numeric seller id. Each seller gives a profile row, its listings and, when you ask, its reviews. A short m.tb.cn link is not resolved: open it and paste the goofish.com link it opens.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "channels": {
            "title": "Home feed and channels",
            "maxItems": 100,
            "type": "array",
            "description": "home for Goofish's home feed, or a channel of the home page by its name (on 2026-11-13: 个人闲置, BJD娃娃, 垂钓, 吉他乐器, 台球, 摄影摄像, 钱币收藏, 女装穿搭, 居家好物, 大牌美妆, 机车, and the entry cards 衣橱捡漏, 二次元 and others), by its machId, or by its link (https://www.goofish.com/mach-feeds?machId=…&publishTimes=…). A channel is a stream with no count: it is read until it repeats itself (360 to 610 listings on the channels walked to their end, 2026-11-13) or until maxItemsPerList. An unknown name gives a free row that lists the channels Goofish serves.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "similarTo": {
            "title": "Similar to these items",
            "maxItems": 1000,
            "type": "array",
            "description": "Item links with their categoryId (https://www.goofish.com/item?id=…&categoryId=…, the form goofish.com's own item links carry), or itemId:categoryId. Each gives the item's similar listings (Goofish's 为你推荐 list, 30 a page, read to its end). Goofish serves this list only with the item's category; the item page itself is login-only.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "startUrls": {
            "title": "Goofish links",
            "maxItems": 1000,
            "type": "array",
            "description": "Any mix of Goofish links: a seller's profile link, an item link with its categoryId (its similar list), a mach-feeds channel link. A search link or a keyword is not read (Goofish serves its search to logged-in users only): it gives a free row that says so.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "includeProfile": {
            "title": "A profile row per seller",
            "type": "boolean",
            "description": "One row per seller with its profile: shop level and score, praise ratio, followers, listing and review counts, on-sale and sold counts, the IP province, credit levels and badges.",
            "default": true
          },
          "includeListings": {
            "title": "The seller's listings",
            "type": "boolean",
            "description": "One row per listing of each seller (the status you choose below).",
            "default": true
          },
          "listingStatus": {
            "title": "Which listings",
            "enum": [
              "onSale",
              "sold",
              "all"
            ],
            "type": "string",
            "description": "On sale (the default), sold, or all (on sale and sold). Goofish shows at most 1,000 listings of each: a seller with 1,581 on sale and 1,450 sold gives 1,000 + 1,000 with all, and its input row says TRUNCATED with Goofish's own counts.",
            "default": "onSale"
          },
          "maxListingsPerSeller": {
            "title": "Max listings per seller",
            "minimum": 0,
            "maximum": 10000000,
            "type": "integer",
            "description": "The most listing rows of one seller; 0 = every listing Goofish shows (up to 1,000 a status).",
            "default": 0
          },
          "includeReviews": {
            "title": "The seller's reviews",
            "type": "boolean",
            "description": "One row per review of each seller (信用及评价): the text, the time, the rate, whether a buyer or a seller wrote it, the writer's region and photos. All reviews include the cards Goofish folds away (a trade with no review given), so the rows match the review count on the profile.",
            "default": false
          },
          "reviewFilter": {
            "title": "Which reviews",
            "enum": [
              "all",
              "positive",
              "withPictures",
              "fromBuyers",
              "fromSellers"
            ],
            "type": "string",
            "description": "All reviews, or one of Goofish's own review tabs.",
            "default": "all"
          },
          "maxReviewsPerSeller": {
            "title": "Max reviews per seller",
            "minimum": 0,
            "maximum": 10000000,
            "type": "integer",
            "description": "The most review rows of one seller; 0 = every review.",
            "default": 0
          },
          "maxItemsPerList": {
            "title": "Max listings per channel or similar list",
            "minimum": 0,
            "maximum": 10000,
            "type": "integer",
            "description": "The most listing rows of one channel, the home feed or one item's similar list; 0 = until the list ends or repeats itself.",
            "default": 0
          },
          "minPrice": {
            "title": "Min price (CNY)",
            "minimum": 0,
            "maximum": 10000000,
            "type": "number",
            "description": "Keep only listings priced at or above this, in yuan. A listing it leaves out is no row, free, and takes no room in any limit."
          },
          "maxPrice": {
            "title": "Max price (CNY)",
            "minimum": 0,
            "maximum": 10000000,
            "type": "number",
            "description": "Keep only listings priced at or below this, in yuan."
          },
          "translateTo": {
            "title": "Translate texts to",
            "pattern": "^([A-Za-z]{2,3}(-[A-Za-z0-9]{2,8})*)?$",
            "maxLength": 12,
            "type": "string",
            "description": "A language code (en, de, ja …) to add a machine translation of each listing's title and description and each review's text by OpenAI gpt-6-luna, next to the Chinese original; charged per translated row. Empty = no translation.",
            "default": ""
          },
          "maxItems": {
            "title": "Max results (whole run)",
            "minimum": 0,
            "maximum": 10000000,
            "type": "integer",
            "description": "The most charged rows of the whole run (listings, profiles and reviews together); 0 = no cap beyond your charge limit.",
            "default": 0
          },
          "feedback": {
            "title": "Feedback to the maintainers",
            "maxLength": 2000,
            "type": "string",
            "description": "A note to the people who maintain this Actor: what you needed and did not get. For example a missing field, a wrong or empty result, or the Actor you switch from or to, and why. The run does not read it: the rows and the charges stay the same. A person reads every note."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}