{
  "openapi": "3.0.1",
  "info": {
    "title": "Goofish Scraper: Xianyu Listings, Sellers & Reviews $1.99/1K",
    "description": "$1.99/1K listings, no start fee, 40% under the leading Goofish scrapers. No login. Paste Goofish (Xianyu 闲鱼, Idlefish) item, share or seller links: CNY and USD price, condition, wants, views, seller rating, reviews. Price-drop and new-listing alerts, English translation, AI deal score.",
    "version": "0.1",
    "x-build-id": "PwiEllvbJE48XeHKl"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/laptime~goofish-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-laptime-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/laptime~goofish-scraper/runs": {
      "post": {
        "operationId": "runs-sync-laptime-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/laptime~goofish-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-laptime-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": {
          "urls": {
            "title": "Goofish links",
            "type": "array",
            "description": "One per line: listing links (https://www.goofish.com/item?id=862060773534), share text from the Xianyu app (【闲鱼】https://m.tb.cn/h.…), seller links (https://www.goofish.com/personal?userId=62791254, returns their listings), bare item ids or seller:<id>. Search words aren't supported: Goofish search needs a login since 12 Nov 2026 (such lines are skipped, free).",
            "default": [
              "https://www.goofish.com/personal?userId=62791254",
              "https://www.goofish.com/item?id=862060773534"
            ],
            "items": {
              "type": "string"
            }
          },
          "maxItems": {
            "title": "Max listings per run",
            "minimum": 0,
            "type": "integer",
            "description": "Hard cap on listing rows (charged $1.99 per 1,000). 0 = no limit. Seller profiles and reviews have their own limits below. Example: 20 for a quick look, 1000 for a whole shop (Goofish shows up to about 1,000 listings per seller).",
            "default": 20
          },
          "maxListingsPerSeller": {
            "title": "Max listings per seller",
            "minimum": 0,
            "type": "integer",
            "description": "How many of each seller's listings to return with full details (newest first, as Goofish shows them). 0 = all of them (up to about 1,000). Listings removed by the filters are free and don't count: the Actor reads further until the number is reached.",
            "default": 20
          },
          "includeSellerProfile": {
            "title": "Seller profile rows",
            "type": "boolean",
            "description": "For seller links: one profile row (level, good-review rate, followers, item and review counts, verification, IP region). Listing rows always carry the seller's key stats.",
            "default": true
          },
          "includeReviews": {
            "title": "Seller reviews",
            "type": "boolean",
            "description": "For seller links: the seller's reviews with rating, text, tags, buyer region and date ($0.49 per 1,000). Off by default.",
            "default": false
          },
          "maxReviewsPerSeller": {
            "title": "Max reviews per seller",
            "minimum": 0,
            "type": "integer",
            "description": "How many reviews to return per seller, newest first. 0 = all of them (big shops have thousands).",
            "default": 20
          },
          "reviewFilter": {
            "title": "Which reviews",
            "enum": [
              "all",
              "positive",
              "withPhotos",
              "fromBuyers",
              "fromSellers"
            ],
            "type": "string",
            "description": "Goofish's review tabs: all reviews, only positive ones, only reviews with photos, or only those written by the seller's buyers or by sellers they bought from.",
            "default": "all"
          },
          "minPrice": {
            "title": "Min price (CNY)",
            "minimum": 0,
            "type": "integer",
            "description": "Skip listings cheaper than this many Chinese yuan (¥). Leave empty for no minimum. Example: 500."
          },
          "maxPrice": {
            "title": "Max price (CNY)",
            "minimum": 0,
            "type": "integer",
            "description": "Skip listings that cost more than this many Chinese yuan (¥). Leave empty for no maximum. Example: 3000 (about $420)."
          },
          "minCondition": {
            "title": "Minimum condition",
            "enum": [
              "any",
              "new",
              "like_new",
              "very_good",
              "good",
              "fair"
            ],
            "type": "string",
            "description": "Skip listings in worse condition than this, by the seller's stated Goofish condition (全新 new, 99新 like new, 95新 very good, 9新 good, 8新 fair).",
            "default": "any"
          },
          "freeShippingOnly": {
            "title": "Free shipping only",
            "type": "boolean",
            "description": "Only listings with free shipping (包邮) inside mainland China.",
            "default": false
          },
          "listingStatus": {
            "title": "Listing status",
            "enum": [
              "all",
              "onSale"
            ],
            "type": "string",
            "description": "All listings, or only those still for sale (sold, reserved and removed listings are skipped, free). Monitors that track sales keep 'all'.",
            "default": "all"
          },
          "postedWithinDays": {
            "title": "Posted within (days)",
            "minimum": 1,
            "type": "integer",
            "description": "Only listings first posted in the last N days. Leave empty for any age. Example: 7."
          },
          "includeKeywords": {
            "title": "Must include (any of)",
            "type": "array",
            "description": "Keep only listings whose title or description contains at least one of these words (Chinese or English, not case-sensitive). Example: 256G, 国行.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "excludeKeywords": {
            "title": "Exclude words",
            "type": "array",
            "description": "Skip listings whose title or description contains any of these words. Example: 求购 (wanted), 租 (rent), 高仿 (replica).",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "monitorName": {
            "title": "Monitor name",
            "type": "string",
            "description": "Optional; leave empty for a one-off run. Name of this watch list (e.g. iphone-sellers). Runs with the same name compare with the previous run: every row gets previousPrice, priceChange, becameSold, wantCountChange and relistOf."
          },
          "onlyNew": {
            "title": "Only new or changed listings",
            "type": "boolean",
            "description": "With a monitor name: from the second run on, deliver only listings that are new, cheaper or dearer, or sold since the last run (the first run delivers everything). A run with nothing new costs $0.",
            "default": false
          },
          "alertWebhookUrl": {
            "title": "Alert webhook",
            "type": "string",
            "description": "Optional. A Slack or Discord incoming-webhook URL, or any https webhook (gets JSON). One message per run with the new listings, price drops and sales. Needs a monitor name; starts on the second run."
          },
          "alertOn": {
            "title": "Alert on",
            "type": "array",
            "description": "Which changes trigger an alert: new listings (including relists), price drops, and listings that sold.",
            "items": {
              "type": "string",
              "enum": [
                "new",
                "priceDrop",
                "sold"
              ],
              "enumTitles": [
                "New listings",
                "Price drops",
                "Sold"
              ]
            },
            "default": [
              "new",
              "priceDrop"
            ]
          },
          "alertMinPriceDropPct": {
            "title": "Min price drop for an alert (%)",
            "minimum": 0,
            "maximum": 100,
            "type": "integer",
            "description": "Only alert on price drops of at least this percentage. Example: with 10, a ¥100 cut on a ¥2,000 phone (5%) sends no alert.",
            "default": 5
          },
          "translateToEnglish": {
            "title": "English translation",
            "type": "boolean",
            "description": "Adds titleEn, descriptionEn, categoryNameEn, conditionTextEn and English properties, written for overseas buyers and agents ($0.50 per 1,000 listings).",
            "default": false
          },
          "aiAnalysis": {
            "title": "AI deal score and risk labels",
            "type": "boolean",
            "description": "Adds aiDealScore (0-100 vs usual second-hand price), aiCondition from the description, aiCounterfeitRisk, aiScamRisk, aiSellerType and an English aiCategory ($0.50 per 1,000 listings).",
            "default": false
          },
          "aiCustomLabels": {
            "title": "Your own AI questions",
            "type": "array",
            "description": "Optional. Your own questions, answered per listing in the aiLabels field ($0.05 per 1,000 listings per question). Start with a short name and a colon to name the answer, e.g. 'battery90: Is the battery health above 90%? (yes/no)' or 'storage: Which storage size?'; unnamed questions are answered as label1, label2…",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "aiContext": {
            "title": "Context for the AI",
            "type": "string",
            "description": "Optional, used by the two AI options above: who you are and what a good listing means to you, e.g. 'I resell used iPhones in Europe; anything under ¥2,500 for a 13 Pro is a deal.'"
          },
          "aiApiKey": {
            "title": "Your own AI key (optional)",
            "type": "string",
            "description": "Use your own OpenRouter, OpenAI, Anthropic or Gemini key instead of ours: AI events are then never charged."
          },
          "aiModel": {
            "title": "Model for your key",
            "type": "string",
            "description": "Only with your own key: the model name, e.g. openai/gpt-4.1-mini on OpenRouter. Leave empty for a sensible default."
          },
          "proxyCountry": {
            "title": "IP country",
            "enum": [
              "US",
              "HK",
              "SG",
              "JP",
              "GB",
              "DE"
            ],
            "type": "string",
            "description": "The first-choice country of the residential IPs that reach Goofish. US is the fastest in our tests. You rarely need to change it: when Goofish refuses one country, the Actor moves to the others by itself.",
            "default": "US"
          },
          "telemetry": {
            "title": "Anonymous error reports",
            "type": "boolean",
            "description": "Sends the Actor's author an anonymous report when a run hits an error (error type, failing step, HTTP status, counts). Never your input, results, URLs or account. Untick to turn it off.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}