{
  "openapi": "3.0.1",
  "info": {
    "title": "Xianyu (Goofish) Second-hand Listings Scraper",
    "description": "Scrape Xianyu (Goofish, 闲鱼) second-hand listings from item and seller links to check prices in China and follow sellers: CNY price, condition, brand, photos, want count, city and seller rating. No login.",
    "version": "0.1",
    "x-build-id": "deNo8Lkt29cd8ZVa7"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/cliqtomedia~goofish-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-cliqtomedia-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/cliqtomedia~goofish-scraper/runs": {
      "post": {
        "operationId": "runs-sync-cliqtomedia-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/cliqtomedia~goofish-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-cliqtomedia-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": {
          "itemUrls": {
            "title": "Item links",
            "type": "array",
            "description": "Goofish (Xianyu) item pages, one per line, e.g. https://www.goofish.com/item?id=1099852455736. A bare item ID also works. Up to 1000 per run. Short m.tb.cn share links are not supported: open them in a browser and copy the goofish.com address.",
            "items": {
              "type": "string"
            }
          },
          "sellerUrls": {
            "title": "Seller links",
            "type": "array",
            "description": "Seller profile pages, e.g. https://www.goofish.com/personal?userId=2215160932230. The Actor reads the seller's listings on sale. A bare user ID also works. Up to 50 per run.",
            "items": {
              "type": "string"
            }
          },
          "maxItems": {
            "title": "Max listings",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Most listings saved in this run, counted across all links. Leave empty for 20.",
            "default": 20
          },
          "includeDetails": {
            "title": "Read full item pages",
            "type": "boolean",
            "description": "On: for seller lists, open each item page for the description, condition, brand, all photos, seller rating and city (priced as \"Listing\"). Off: save only what the seller list shows — title, price, first photo and want count (priced as \"Basic listing\", cheaper). Item links always open the item page.",
            "default": true
          },
          "minPrice": {
            "title": "Min price (CNY)",
            "minimum": 0,
            "type": "integer",
            "description": "Seller lists only: skip listings cheaper than this, e.g. 100. Skipped listings are not charged."
          },
          "maxPrice": {
            "title": "Max price (CNY)",
            "minimum": 0,
            "type": "integer",
            "description": "Seller lists only: skip listings more expensive than this, e.g. 3000."
          },
          "sort": {
            "title": "Order of seller listings",
            "enum": [
              "default",
              "priceAsc",
              "priceDesc",
              "newest"
            ],
            "type": "string",
            "description": "Seller lists only. Goofish order keeps the seller's own order and stops paging as soon as Max listings is reached. Other orders read the whole seller list (up to 1000 listings) before saving.",
            "default": "default"
          },
          "minCondition": {
            "title": "Minimum condition",
            "enum": [
              "new",
              "likeNew",
              "lightlyUsed"
            ],
            "type": "string",
            "description": "Seller lists with full item pages only: keep listings at least this good, by the condition Goofish shows (成色). Listings without a condition are skipped. Each listing read and skipped costs one page check; a run stops after skipping the larger of 50 and 5 × Max listings."
          },
          "listedWithinDays": {
            "title": "Listed in the last N days",
            "minimum": 1,
            "maximum": 3650,
            "type": "integer",
            "description": "Seller lists with full item pages only: keep listings published within this many days, e.g. 7. Each listing read and skipped costs one page check; a run stops after skipping the larger of 50 and 5 × Max listings."
          },
          "freeShippingOnly": {
            "title": "Free shipping only",
            "type": "boolean",
            "description": "Seller lists only: keep listings Goofish marks as shipped free (包邮). Without full item pages this uses the mark on the seller list.",
            "default": false
          },
          "trackChanges": {
            "title": "Track changes since the last run",
            "type": "boolean",
            "description": "For links you run again and again (a schedule): each row gets changeType (new, changed or unchanged), changedFields (price, itemStatus, title), lastRunPrice, lastRunStatus and firstSeenAt. The first run starts the history, so those columns are empty on it. No extra charge. History is kept in the store goofish-scraper-history in your account.",
            "default": false
          },
          "historyName": {
            "title": "History name (optional)",
            "pattern": "^[A-Za-z0-9_.-]{1,60}$",
            "type": "string",
            "description": "Leave empty to keep one history per set of links. Give a name (letters, digits, dots, dashes, underscores), e.g. phones-weekly, to keep the same history while you edit the links."
          },
          "deliveryConnector": {
            "title": "Send results to (optional)",
            "type": "string",
            "description": "Your Slack, Notion or other MCP connector. After the run the Actor posts a short summary there. Connect services once in Apify Console → MCP connectors."
          },
          "deliveryTarget": {
            "title": "Notion page or channel (optional)",
            "type": "string",
            "description": "Where to post the summary: a Notion page link (each run is added on top of that page) or a Slack channel ID. Notion needs a page here; without it the summary is not sent and the run summary says why."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}