{
  "openapi": "3.0.1",
  "info": {
    "title": "Hugging Face Scraper",
    "description": "Search and extract Hugging Face model, dataset, and Space listings, full repo details (files, config, card metadata), and user/organization profiles -- no account or API key needed.",
    "version": "0.0",
    "x-build-id": "XmL30b9o2i5aQAqad"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/zucchini_gopher_m2v~huggingface-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-zucchini_gopher_m2v-huggingface-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/zucchini_gopher_m2v~huggingface-scraper/runs": {
      "post": {
        "operationId": "runs-sync-zucchini_gopher_m2v-huggingface-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/zucchini_gopher_m2v~huggingface-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-zucchini_gopher_m2v-huggingface-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",
        "required": [
          "mode"
        ],
        "properties": {
          "mode": {
            "title": "Mode",
            "enum": [
              "models",
              "model-detail",
              "datasets",
              "dataset-detail",
              "spaces",
              "space-detail",
              "creator"
            ],
            "type": "string",
            "description": "\"models\"/\"datasets\"/\"spaces\" search/list with filters. \"model-detail\"/\"dataset-detail\"/\"space-detail\" fetch full detail for specific repo ID(s). \"creator\" fetches a user or organization profile.",
            "default": "models"
          },
          "search": {
            "title": "Search query",
            "type": "string",
            "description": "\"models\"/\"datasets\"/\"spaces\" mode only -- free-text search term."
          },
          "author": {
            "title": "Author filter",
            "type": "string",
            "description": "\"models\"/\"datasets\"/\"spaces\" mode only -- only return repos published by this exact username or organization."
          },
          "filter": {
            "title": "Tag filter(s)",
            "type": "array",
            "description": "\"models\"/\"datasets\"/\"spaces\" mode only -- only return repos matching ALL of these tags (e.g. \"license:mit\", \"dataset:squad\", \"pytorch\").",
            "items": {
              "type": "string"
            }
          },
          "pipelineTag": {
            "title": "Pipeline tag",
            "type": "string",
            "description": "\"models\" mode only -- filter by task, e.g. \"text-generation\", \"text-classification\", \"image-classification\"."
          },
          "library": {
            "title": "Library",
            "type": "string",
            "description": "\"models\" mode only -- filter by library, e.g. \"transformers\", \"sentence-transformers\", \"diffusers\"."
          },
          "sort": {
            "title": "Sort by",
            "enum": [
              "downloads",
              "likes",
              "createdAt",
              "lastModified",
              "trendingScore"
            ],
            "type": "string",
            "description": "\"models\"/\"datasets\"/\"spaces\" mode only -- field to sort results by.",
            "default": "downloads"
          },
          "direction": {
            "title": "Sort direction",
            "enum": [
              "-1",
              "1"
            ],
            "type": "string",
            "description": "\"models\"/\"datasets\"/\"spaces\" mode only -- descending (highest first) or ascending. Note: the platform only supports ascending order for \"createdAt\" -- other sort fields (downloads/likes/lastModified/trendingScore) are descending-only and will return a clear _error record if you request ascending.",
            "default": "-1"
          },
          "modelId": {
            "title": "Model ID",
            "type": "string",
            "description": "\"model-detail\" mode -- a single model ID in \"namespace/name\" form."
          },
          "modelIds": {
            "title": "Model IDs",
            "type": "array",
            "description": "\"model-detail\" mode only -- multiple model IDs to fetch full detail for in one run.",
            "items": {
              "type": "string"
            }
          },
          "datasetId": {
            "title": "Dataset ID",
            "type": "string",
            "description": "\"dataset-detail\" mode -- a single dataset ID in \"namespace/name\" form (or a bare name for legacy canonical datasets)."
          },
          "datasetIds": {
            "title": "Dataset IDs",
            "type": "array",
            "description": "\"dataset-detail\" mode only -- multiple dataset IDs to fetch full detail for in one run.",
            "items": {
              "type": "string"
            }
          },
          "spaceId": {
            "title": "Space ID",
            "type": "string",
            "description": "\"space-detail\" mode -- a single Space ID in \"namespace/name\" form."
          },
          "spaceIds": {
            "title": "Space IDs",
            "type": "array",
            "description": "\"space-detail\" mode only -- multiple Space IDs to fetch full detail for in one run.",
            "items": {
              "type": "string"
            }
          },
          "username": {
            "title": "Username",
            "type": "string",
            "description": "\"creator\" mode -- a single user or organization name."
          },
          "usernames": {
            "title": "Usernames",
            "type": "array",
            "description": "\"creator\" mode only -- multiple user/organization names to fetch in one run.",
            "items": {
              "type": "string"
            }
          },
          "accountType": {
            "title": "Account type",
            "enum": [
              "auto",
              "user",
              "organization"
            ],
            "type": "string",
            "description": "\"creator\" mode only -- users and organizations are different endpoints on Hugging Face. \"auto\" tries user first, then falls back to organization.",
            "default": "auto"
          },
          "maxItems": {
            "title": "Max items",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "\"models\"/\"datasets\"/\"spaces\" mode only -- maximum number of results to return. Pagination is followed automatically (via the platform's Link header) until this cap or the end of the result set.",
            "default": 100
          },
          "maxConcurrency": {
            "title": "Max concurrent workers",
            "minimum": 1,
            "maximum": 16,
            "type": "integer",
            "description": "\"model-detail\"/\"dataset-detail\"/\"space-detail\"/\"creator\" mode only -- how many IDs to fetch in parallel.",
            "default": 4
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Apify Proxy configuration. Residential is on by default. Not required for this endpoint (no WAF was found -- it is Hugging Face's own official public API), but kept on for production robustness.",
            "default": {
              "useApifyProxy": true,
              "apifyProxyGroups": [
                "RESIDENTIAL"
              ]
            }
          }
        }
      },
      "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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}