{
  "openapi": "3.0.1",
  "info": {
    "title": "Goofish Scraper",
    "description": "[💰 $3.99 / 1K listings] Scrape Goofish (Xianyu 闲鱼) by keyword, seller or link: price, condition, views, wants, real publish time, every photo, seller credit and reviews. Past the 1,500 limit. Search fields only $0.99 / 1K. No account, no proxy. Export JSON, CSV or Excel.",
    "version": "0.0",
    "x-build-id": "QCeEL9YvB0AIGgAfu"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/sleepmodesystems~goofish-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-sleepmodesystems-goofish-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/sleepmodesystems~goofish-scraper/runs": {
      "post": {
        "operationId": "runs-sync-sleepmodesystems-goofish-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/sleepmodesystems~goofish-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-sleepmodesystems-goofish-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": {
          "searchTerms": {
            "title": "🔍 Search terms or Goofish search links",
            "type": "array",
            "description": "What you would type into Goofish's search box (<code>iPhone 15</code>, <code>相机</code>, <code>乐高</code>), or a Goofish search link. Goofish's own search shows 1,500 listings; this keeps reading past that.",
            "items": {
              "type": "string"
            }
          },
          "items": {
            "title": "🔗 Item links or ids",
            "type": "array",
            "description": "Goofish item pages (<code>https://www.goofish.com/item?id=1062201605364</code>), the app's share text with its <code>m.tb.cn</code> link (paste it whole), or just the id. Each is read complete.",
            "items": {
              "type": "string"
            }
          },
          "sellers": {
            "title": "👤 Seller links or ids",
            "type": "array",
            "description": "A seller's profile (<code>https://www.goofish.com/personal?userId=605970805</code>) or just the number: every listing on it, on sale and sold, with the same filters.",
            "items": {
              "type": "string"
            }
          },
          "maxItems": {
            "title": "Listings per search or seller",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Stop each search or seller at this many listings.",
            "default": 100
          },
          "details": {
            "title": "Complete rows (recommended)",
            "type": "boolean",
            "description": "On: every listing with its full description, every photo, view, want and favourite counts, the real publish time, specs (brand, model, condition), shipping, and the seller's record (good-review rate, reviews, sales, reply rate, credit, verification). Off: search fields only (title, price, place, want count, cover photo, labels), cheaper and faster.",
            "default": true
          },
          "sort": {
            "title": "Sort",
            "enum": [
              "relevance",
              "newest",
              "priceAsc",
              "priceDesc",
              "priceDrop",
              "recentlyUpdated",
              "sellerCredit"
            ],
            "type": "string",
            "description": "Goofish's own order for searches. Every order reads past the 1,500 listings Goofish shows.",
            "default": "relevance"
          },
          "minPrice": {
            "title": "Minimum price (yuan)",
            "type": "number",
            "description": "Only listings asking at least this much, in Chinese yuan (CNY)."
          },
          "maxPrice": {
            "title": "Maximum price (yuan)",
            "type": "number",
            "description": "Only listings asking at most this much, in Chinese yuan (CNY)."
          },
          "postedWithinDays": {
            "title": "Posted in the last N days",
            "minimum": 1,
            "maximum": 3650,
            "type": "integer",
            "description": "Only listings put up in this many days, checked on each listing's real publish time (Goofish's own \"posted N hours ago\" labels can be far off). For example <code>1</code> for new listings of the day."
          },
          "location": {
            "title": "Where the item is",
            "type": "string",
            "description": "A Chinese province, city, or city and district: <code>Shenzhen</code>, <code>深圳</code>, <code>Guangdong</code>, <code>上海 浦东新区</code>. English, pinyin or Chinese."
          },
          "freeShippingOnly": {
            "title": "Free shipping only (包邮)",
            "type": "boolean",
            "description": "Only listings that ship free.",
            "default": false
          },
          "brandNewOnly": {
            "title": "Brand new only (全新)",
            "type": "boolean",
            "description": "Only listings marked brand new.",
            "default": false
          },
          "personalSellersOnly": {
            "title": "Private sellers only (个人闲置)",
            "type": "boolean",
            "description": "Only people selling their own things, no shops or resellers.",
            "default": false
          },
          "inspectedOnly": {
            "title": "Inspected only (验货宝)",
            "type": "boolean",
            "description": "Only listings that offer Goofish's inspection service.",
            "default": false
          },
          "excludeAuctions": {
            "title": "No auctions",
            "type": "boolean",
            "description": "Leave out auction listings.",
            "default": false
          },
          "onlyNew": {
            "title": "Only listings I haven't had yet",
            "type": "boolean",
            "description": "Skip listings an earlier run of this monitor already delivered; they are not charged. The first run delivers everything it finds.",
            "default": false
          },
          "monitorName": {
            "title": "Monitor name",
            "type": "string",
            "description": "Optional. Keeps separate lists for several schedules (<code>camera-deals</code>). Empty: the list belongs to these exact inputs and filters."
          },
          "minItems": {
            "title": "Fail the run below this many listings",
            "minimum": 0,
            "type": "integer",
            "description": "For monitoring: the run fails (so you get Apify's alert) when it delivers fewer listings. Empty: never."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}