{
  "openapi": "3.0.1",
  "info": {
    "title": "Goofish Scraper | 闲鱼 Xianyu Idlefish · New Listings $0.50/1k",
    "description": "Goofish scraper (Xianyu 闲鱼 / Idlefish): English or Chinese keywords, item links or whole seller shops, up to 1,000 per keyword. Price in CNY, price drops, condition, wants, region, photos, seller stats; full details on request. Monitor mode returns only new listings. No login. $0.50 per 1,000.",
    "version": "0.1",
    "x-build-id": "Pme5CTe4NQ8PRgH93"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/memo23~goofish-xianyu-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-memo23-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/memo23~goofish-xianyu-scraper/runs": {
      "post": {
        "operationId": "runs-sync-memo23-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/memo23~goofish-xianyu-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-memo23-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": {
          "keywords": {
            "title": "Search keywords",
            "type": "array",
            "description": "Goofish searches. Up to 1,000 listings per keyword (see Maximum listings per keyword). Chinese works best (`小米`, `乐高`), and common English brand names are mapped to Chinese for you (see below). Example: `iPhone 15`.",
            "items": {
              "type": "string"
            }
          },
          "searchUrls": {
            "title": "Search links",
            "type": "array",
            "description": "goofish.com search links, e.g. `https://www.goofish.com/search?q=小米`. The keyword is read from the link and searched like the ones above.",
            "items": {
              "type": "string"
            }
          },
          "itemUrls": {
            "title": "Listing links or ids",
            "type": "array",
            "description": "Specific listings, as `https://www.goofish.com/item?id=…` links or bare numeric ids. Always returned with full details.",
            "items": {
              "type": "string"
            }
          },
          "sellerUrls": {
            "title": "Seller links",
            "type": "array",
            "description": "Goofish seller pages, as `https://www.goofish.com/personal?userId=…` links (open a seller on goofish.com and copy the address). Returns that seller's listings, newest first, and puts the seller's profile on every row: full name, followers, reviews, good-review %, seller level, credit grade, verification and IP region. Example: `https://www.goofish.com/personal?userId=47656566`.",
            "items": {
              "type": "string"
            }
          },
          "maxItemsPerSeller": {
            "title": "Maximum listings per seller",
            "minimum": 0,
            "maximum": 1000,
            "type": "integer",
            "description": "Listings to return per seller link, 0-1000. Default 100. Set 0 to skip the listings and take only the seller profile or reviews below.",
            "default": 100
          },
          "includeSoldListings": {
            "title": "Include sold listings",
            "type": "boolean",
            "description": "Seller pages also show listings the seller already sold (status 卖掉了), with the price they were listed at. ON: return them too. OFF (default): only listings still for sale.",
            "default": false
          },
          "sellerProfileRows": {
            "title": "Seller profile rows",
            "type": "boolean",
            "description": "ON: one extra row per seller link (`rowType: \"seller\"`) with the profile alone: name, bio, IP region, followers and following, listings on the profile, reviews, good-review %, level and score, credit grades as seller and as buyer, verification. Billed like one listing. OFF (default): the profile is only copied onto each listing row.",
            "default": false
          },
          "maxReviewsPerSeller": {
            "title": "Reviews per seller",
            "minimum": 0,
            "maximum": 500,
            "type": "integer",
            "description": "Reviews on each seller's profile to return, newest first, one row each (`rowType: \"review\"`): rating (positive / neutral / negative, 好评 / 中评 / 差评), text, tags such as 描述一致, photos, the seller's reply, reviewer name, role and IP region, date. Each review is billed like one listing. Default 0 (none), up to 500.",
            "default": 0
          },
          "translateKeywords": {
            "title": "Map English and pinyin to Chinese",
            "type": "boolean",
            "description": "Goofish matches words literally, so `xiaomi` finds a fraction of what `小米` does and pinyin like `huananzhi` finds nothing. When on, about 75 common brands and categories are swapped for the Chinese term sellers write (`xiaomi 14` → `小米 14`). Other words are left as typed. Each row shows the term actually searched in `searchedAs`.",
            "default": true
          },
          "includeDetails": {
            "title": "Full listing details",
            "type": "boolean",
            "description": "OFF: search-result data (title, price, condition, price drop, want count, region, cover image, seller name). ON: also the full description, every image, views, favorites, city and district, coordinates, and seller stats (items listed, items sold, good-review rate, 24-hour reply rate, last seen). Full rows are billed at the higher rate.",
            "default": false
          },
          "maxItemsPerKeyword": {
            "title": "Maximum listings per keyword",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Listings to return per keyword, 1-1000. Default 50. One Goofish search answers about 30 listings; when you ask for more, the keyword is searched again with words sellers put in titles (全新, 99新, 二手, 自用, 包邮 and so on), each bringing up to about 30 new listings, until the number is reached or the keyword runs dry. Those extra searches are not charged; you pay only per listing returned. Sorting and filters apply to the whole set.",
            "default": 50
          },
          "maxItems": {
            "title": "Maximum listings in total",
            "minimum": 1,
            "type": "integer",
            "description": "Cap on rows for the whole run (listings, plus seller profile and review rows when you ask for them). Default 500. Free-plan runs are capped at 100.",
            "default": 500
          },
          "sortBy": {
            "title": "Sort each keyword's listings by",
            "enum": [
              "relevance",
              "newest",
              "priceAsc",
              "priceDesc",
              "mostWanted"
            ],
            "type": "string",
            "description": "Order applied to each keyword's results before the per-keyword cap.",
            "default": "relevance"
          },
          "minPrice": {
            "title": "Minimum price (CNY ¥)",
            "minimum": 0,
            "type": "integer",
            "description": "Drop listings cheaper than this. Leave empty for no lower bound."
          },
          "maxPrice": {
            "title": "Maximum price (CNY ¥)",
            "minimum": 0,
            "type": "integer",
            "description": "Drop listings dearer than this. Leave empty for no upper bound."
          },
          "publishedWithinDays": {
            "title": "Posted within the last N days",
            "minimum": 1,
            "type": "integer",
            "description": "Keep only listings posted in this many days. Leave empty for any date."
          },
          "freeShippingOnly": {
            "title": "Free shipping only (包邮)",
            "type": "boolean",
            "description": "Keep only listings that ship for free.",
            "default": false
          },
          "excludeAuctions": {
            "title": "Exclude auctions",
            "type": "boolean",
            "description": "Drop auction listings (拍卖).",
            "default": false
          },
          "monitorMode": {
            "title": "Monitoring mode (only-new listings)",
            "type": "boolean",
            "description": "Skip listings already delivered to you in earlier runs; they are not billed. Schedule the actor to get only new listings each time. Default: false.",
            "default": false
          },
          "resetMonitoringState": {
            "title": "Reset monitoring state",
            "type": "boolean",
            "description": "Forget every listing delivered so far, at the start of this run. Default: false.",
            "default": false
          },
          "monitorStateName": {
            "title": "Monitor state name",
            "type": "string",
            "description": "Keeps separate seen-lists for several schedules. Example: `camera-deals`."
          },
          "emitBaseline": {
            "title": "Return listings on the first monitoring run",
            "type": "boolean",
            "description": "ON (default): the first monitoring run returns the current listings. OFF: the first run only remembers them, and later runs return what is new.",
            "default": 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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}