{
  "openapi": "3.0.1",
  "info": {
    "title": "Goofish Scraper",
    "description": "Goofish scraper for Xianyu (闲鱼, Idlefish): turn item or seller links into a table. Each listing row has the title, price in yuan, the 10-point condition, want and view counts, location, the seller's nickname and good-review rate, every photo and the description. $3.50 per 1,000 listings.",
    "version": "0.1",
    "x-build-id": "EeOJMYnVqZl6VIhIM"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/dami_studio~goofish-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-dami_studio-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/dami_studio~goofish-scraper/runs": {
      "post": {
        "operationId": "runs-sync-dami_studio-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/dami_studio~goofish-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-dami_studio-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 listing links, one per line. A full link like https://www.goofish.com/item?id=957067883917 works, and so does the bare number. Each one comes back as a full row.",
            "items": {
              "type": "string"
            }
          },
          "sellerUrls": {
            "title": "Seller links",
            "type": "array",
            "description": "Goofish seller profile links, one per line, like https://www.goofish.com/personal?userId=605970805, or just the number. Every listing on the profile is walked and returned in the same shape as an item link, up to the limit below.",
            "items": {
              "type": "string"
            }
          },
          "maxItems": {
            "title": "Maximum listings",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Stop after this many listings across the whole run. Item links are done first, then sellers. Counts only listings that actually came back; rows explaining a dead link are free and do not count."
          },
          "minPrice": {
            "title": "Lowest price (yuan)",
            "minimum": 0,
            "type": "number",
            "description": "Optional filter. Keep only listings asking at least this much. Leave every filter empty to get every listing. A listing a filter leaves out is not charged and doesn't count toward the maximum. If the filters match very few of the listings read, the run stops early and says so in a free note."
          },
          "maxPrice": {
            "title": "Highest price (yuan)",
            "minimum": 0,
            "type": "number",
            "description": "Optional. Keep only listings asking at most this much."
          },
          "listedWithinDays": {
            "title": "Listed in the last N days",
            "minimum": 1,
            "maximum": 3650,
            "type": "integer",
            "description": "Optional. Keep only listings put up within this many days. Handy on a seller you check again and again."
          },
          "minCondition": {
            "title": "Minimum condition (1 to 10)",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "Optional. Keep only listings at or above this grade on Goofish's 10-point scale, where 10 is brand new and 9 is what Goofish calls 9新."
          },
          "freeShippingOnly": {
            "title": "Free shipping only",
            "type": "boolean",
            "description": "Optional. Keep only listings Goofish marks as shipped free (包邮)."
          },
          "includeDescription": {
            "title": "Include the seller's description",
            "type": "boolean",
            "description": "Keep the full listing description in each row. Turn it off for a narrower table when you only want prices and counts."
          },
          "liteMode": {
            "title": "Lite mode: the listing record only",
            "type": "boolean",
            "description": "Optional. Each row keeps the title, price, condition, location, category, specs, photos and description, without the want, view and save counts or anything about the seller. Lite rows have their own lower price, on the Pricing tab."
          },
          "trackChanges": {
            "title": "Change tracking: mark what changed since your last run",
            "type": "boolean",
            "description": "Optional, off unless you turn it on. For an input you run again and again (a schedule, an automation): each listing row gets changeType (new, changed or unchanged since your last run of the same input), changedFields (which of price, status, title and quantity moved), lastRunPrice, lastRunStatus and firstSeenAt, after the columns it already has. The first run of an input starts the history, so those columns are empty on it. Each listing compared with an earlier run is billed one change-tracking event on top of the listing, at the price on the Pricing tab."
          },
          "trackingKey": {
            "title": "History name",
            "pattern": "^[A-Za-z0-9_.-]{1,60}$",
            "type": "string",
            "description": "Optional. Leave it empty and each input keeps its own history. Give it a name (letters, digits, dots, dashes, underscores) to keep one history while you edit the links in the input."
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Optional. Leave this alone unless you need the run to go out through a particular network. Your own proxy servers are used exactly as given."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}