{
  "openapi": "3.0.1",
  "info": {
    "title": "Goofish Scraper 闲鱼 Xianyu [From $2] Listings, Prices & Sellers",
    "description": "[From $2 per 1,000 listings] Goofish (闲鱼 / Xianyu / Idlefish) scraper with no login: search by keyword or listing link and get price in CNY, condition, price drops, want count, region, photos and seller stats. English brand names are mapped to Chinese. Only-new monitoring for deal alerts.",
    "version": "0.1",
    "x-build-id": "FCP4LjEtYcBT22ivD"
  },
  "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 50 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"
            }
          },
          "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": 50,
            "type": "integer",
            "description": "Goofish returns up to 50 listings per keyword. For more, add keyword variants (`iPhone 15 128G`, `iPhone 15 256G`, `iPhone 15 Pro`). Default 50.",
            "default": 50
          },
          "maxItems": {
            "title": "Maximum listings in total",
            "minimum": 1,
            "type": "integer",
            "description": "Cap on rows for the whole run. 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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}