{
  "openapi": "3.0.1",
  "info": {
    "title": "Goofish Scraper: Xianyu Listings, Prices & Sellers $1.20/1K",
    "description": "Collect Goofish (Xianyu, Idle Fish) listings from home and topic feeds or item links. Filter by keyword and watch newly observed listings. Get prices, condition, seller and location where shown. $0.0012 per listing, or $0.12 for 100. Item details $0.0025. No login.",
    "version": "1.0",
    "x-build-id": "gBTPq8yUQunRRdUME"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/moggedhq~goofish-xianyu-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-moggedhq-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/moggedhq~goofish-xianyu-scraper/runs": {
      "post": {
        "operationId": "runs-sync-moggedhq-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/moggedhq~goofish-xianyu-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-moggedhq-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": {
          "searchTerms": {
            "title": "Keywords to match in the feed",
            "type": "array",
            "description": "Match any keyword in the sampled feed title or labels. Try 相机 for cameras or 耳机 for headphones. Chinese terms usually match more.",
            "items": {
              "type": "string"
            }
          },
          "startUrls": {
            "title": "Item or Goofish feed links",
            "type": "array",
            "description": "Goofish desktop or mobile listing links, legacy item links, the homepage, a search link or a published Goofish topic feed link.",
            "items": {
              "type": "string"
            }
          },
          "productIds": {
            "title": "Listing IDs",
            "type": "array",
            "description": "Known item IDs as strings. Each ID requests mobile item detail.",
            "items": {
              "type": "string"
            }
          },
          "sort": {
            "title": "Sort the output sample",
            "enum": [
              "default",
              "newest",
              "priceAsc",
              "priceDesc"
            ],
            "type": "string",
            "description": "Sort the collected sample. Newest uses available listing times and leaves unknown dates last.",
            "default": "default"
          },
          "priceMin": {
            "title": "Minimum CNY price",
            "minimum": 0,
            "type": "number",
            "description": "Keep prices at or above this CNY amount."
          },
          "priceMax": {
            "title": "Maximum CNY price",
            "minimum": 0,
            "type": "number",
            "description": "Keep prices at or below this CNY amount."
          },
          "maxItems": {
            "title": "Maximum listings",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Limit distinct delivered listings across the run.",
            "default": 20
          },
          "feedPages": {
            "title": "Maximum feed pages sampled",
            "minimum": 1,
            "maximum": 250,
            "type": "integer",
            "description": "Total pages inspected across selected feeds. The home feed usually returns 20 cards and published topics about 30. Increase for more narrow matches."
          },
          "includeDetails": {
            "title": "Enrich feed matches",
            "type": "boolean",
            "description": "Look up matching item pages for description, seller, condition, city and engagement where shown. Item links or IDs always request detail.",
            "default": false
          },
          "newListingsOnly": {
            "title": "Only newly observed listings",
            "type": "boolean",
            "description": "Remember delivered listing IDs for the supplied watch ID. The first run delivers a baseline; future runs emit unseen IDs.",
            "default": false
          },
          "watchId": {
            "title": "Watch ID",
            "type": "string",
            "description": "Use a stable ID across runs of one watch. Use letters, digits, underscores or hyphens."
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Automatic mode starts with the default Apify proxy and tries China residential when the source is unavailable. An explicit proxy selection, country or disable is respected."
          },
          "feedTopics": {
            "title": "Published Goofish topics",
            "type": "array",
            "description": "Sample specific topic tabs by exact names or IDs, for example 摄影摄像 (photography) and 垂钓 (fishing). Goofish controls the available topics.",
            "items": {
              "type": "string"
            }
          },
          "includeTopicFeeds": {
            "title": "Include the published topic feeds",
            "type": "boolean",
            "description": "Sample the homepage and the current topic tabs. Supply topic names to pick specific tabs. Useful for a broader sample.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}