{
  "openapi": "3.0.1",
  "info": {
    "title": "Goofish Xianyu Scraper (Item & Seller Links)",
    "description": "Turn Goofish (Xianyu, 闲鱼) item and seller links into listing rows: price in CNY, condition, want and view counts, location, seller metrics and photos. No keyword search. Pay per listing.",
    "version": "0.1",
    "x-build-id": "1TTYKWf434SIUUtBw"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/automation-lab~goofish-xianyu-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-automation-lab-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/automation-lab~goofish-xianyu-scraper/runs": {
      "post": {
        "operationId": "runs-sync-automation-lab-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/automation-lab~goofish-xianyu-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-automation-lab-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": {
          "itemUrls": {
            "title": "Item links",
            "type": "array",
            "description": "Goofish listing links or bare item IDs, one per line, like https://www.goofish.com/item?id=1080166744321. Each one returns a full listing row. There is no keyword search: this Actor only reads links you already have.",
            "items": {
              "type": "string"
            }
          },
          "sellerUrls": {
            "title": "Seller links",
            "type": "array",
            "description": "Goofish seller profile links or bare user IDs, one per line, like https://www.goofish.com/personal?userId=666798512. Every listing on the seller's shelf is read, up to the limits below.",
            "items": {
              "type": "string"
            }
          },
          "sellerShelfOnly": {
            "title": "Shelf-only mode for sellers",
            "type": "boolean",
            "description": "Faster and cheaper. Seller links return shelf cards only: title, price, original price, want count, free shipping and photos, without description, views, location, condition or listing date. Item links always return full rows.",
            "default": false
          },
          "maxItems": {
            "title": "Maximum listings",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Stop after this many listings in the whole run. Item links are read first, then sellers. Free note rows do not count.",
            "default": 100
          },
          "maxItemsPerSeller": {
            "title": "Maximum listings per seller",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Optional cap per seller link, so one large shelf cannot use the whole run."
          },
          "includeDescription": {
            "title": "Include description",
            "type": "boolean",
            "description": "Keep the seller's full listing text. Turn off for a narrower table.",
            "default": true
          },
          "includeSellerProfile": {
            "title": "Include seller profile metrics",
            "type": "boolean",
            "description": "Add the seller's public name, IP province, level, praise rate, review count and followers. One extra request per seller.",
            "default": true
          },
          "minPrice": {
            "title": "Lowest price (CNY)",
            "minimum": 0,
            "type": "number",
            "description": "Optional. Keep listings asking at least this much. On seller links, cards clearly below it are skipped for free. Item links, and cards close to the limit or with a shortened price such as 1.2万, must be opened, so each one rejected is a Filter check."
          },
          "maxPrice": {
            "title": "Highest price (CNY)",
            "minimum": 0,
            "type": "number",
            "description": "Optional. Keep listings asking at most this much. Charged the same way as Lowest price."
          },
          "listedWithinDays": {
            "title": "Listed in the last N days",
            "minimum": 1,
            "maximum": 3650,
            "type": "integer",
            "description": "Optional. Needs full rows, because shelf cards carry no listing date. Older listings are skipped for free where the item ID shows their age. Seller scans stop after many non-matching listings and say so in a free note."
          },
          "minCondition": {
            "title": "Minimum condition (1 to 10)",
            "minimum": 1,
            "maximum": 10,
            "type": "number",
            "description": "Optional, full rows only. 10 is brand new (全新), 9.5 is almost new (几乎全新). Listings with no condition, or wording with no grade such as 轻微使用痕迹, are left out."
          },
          "freeShippingOnly": {
            "title": "Free shipping only",
            "type": "boolean",
            "description": "Optional. Keep only listings Goofish marks as shipped free (包邮). On seller links, cards that show no free shipping are skipped for free. Cards marked \"free shipping or pickup\" must be opened, so each one rejected is a Filter check. Shelf-only mode opens nothing, so it leaves those cards out: about 12% of free-shipping listings in our test (12 of 97). Item links are always opened.",
            "default": false
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}