{
  "openapi": "3.0.1",
  "info": {
    "title": "Hugging Face Scraper | Models, Datasets & Spaces",
    "description": "Extract public Hugging Face models, datasets, Spaces, papers, collections and repository metadata. Include available author details and export structured rows. Pay per delivered row plus a start fee.",
    "version": "0.1",
    "x-build-id": "vYGA3DP2AqaeD4zIW"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/lentic_clockss~huggingface-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-lentic_clockss-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/lentic_clockss~huggingface-scraper/runs": {
      "post": {
        "operationId": "runs-sync-lentic_clockss-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/lentic_clockss~huggingface-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-lentic_clockss-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",
        "properties": {
          "query": {
            "title": "Search query",
            "type": "string",
            "description": "Search models, datasets or Spaces by keyword, or search text within dataset content. Empty targets use the form example; set a listing filter such as author to browse without a keyword."
          },
          "detailUrls": {
            "title": "Detail URLs",
            "type": "array",
            "description": "Hugging Face model, dataset, Space, paper, collection or tree page links; hf.co links and owner/name are accepted. All URLs in this batch share one maxResults allowance."
          },
          "repoId": {
            "title": "Repository ID",
            "type": "string",
            "description": "Repository identifier such as openai/whisper-tiny, paper identifier or collection slug. Set the matching searchType; this field alone does not select detail mode."
          },
          "owner": {
            "title": "Owner or organization",
            "type": "string",
            "description": "Repository owner or organization. Combined with name when repoId is empty.",
            "default": ""
          },
          "name": {
            "title": "Repository name",
            "type": "string",
            "description": "Repository name. Combined with owner when repoId is empty."
          },
          "searchType": {
            "title": "Search type",
            "enum": [
              "models",
              "datasets",
              "spaces",
              "papers",
              "collections",
              "model",
              "dataset",
              "space",
              "paper",
              "collection",
              "files",
              "datasetRows",
              "datasetSearch",
              "datasetStatistics",
              "datasetParquet",
              "fileMeta",
              "fileDownload",
              "pathsInfo",
              "spaceRuntime",
              "collectionDetail",
              "dailyPapers",
              "discussions",
              "commits",
              "refs",
              "community"
            ],
            "type": "string",
            "description": "Choose the catalog, detail or metadata mode to collect. Papers and collections do not filter by keyword.",
            "default": "models"
          },
          "maxResults": {
            "title": "Max results per input",
            "minimum": 1,
            "maximum": 200,
            "type": "integer",
            "description": "Maximum rows per query or repository input; detailUrls shares one allowance across its entire batch. Default 70, collected in parts of 70; your maximum charge also limits delivery, and Free Apify plan users have a 200-row run cap and 10-run allowance for this Actor.",
            "default": 70
          },
          "repoKind": {
            "title": "Repository type",
            "enum": [
              "",
              "models",
              "datasets",
              "spaces"
            ],
            "type": "string",
            "description": "Repository type for files, paths, discussions, commits or references. Leave empty to use the type inferred from searchType, normally models.",
            "default": ""
          },
          "pipelineTag": {
            "title": "Pipeline tag",
            "type": "string",
            "description": "Filter model listings by task, such as text-generation, text-classification or fill-mask.",
            "default": ""
          },
          "modality": {
            "title": "Dataset modality",
            "type": "string",
            "description": "Filter dataset listings by content type, such as text, audio or image.",
            "default": ""
          },
          "spaceFilter": {
            "title": "Space filter",
            "type": "string",
            "description": "Filter Space listings by toolkit, such as gradio, docker, streamlit or static.",
            "default": ""
          },
          "filterTags": {
            "title": "Hub filter tags",
            "type": "array",
            "description": "Additional catalog tags, such as license:mit, diffusers or task_categories:question-answering. For model tasks, use pipelineTag.",
            "items": {
              "type": "string"
            }
          },
          "language": {
            "title": "Dataset language",
            "type": "string",
            "description": "Dataset language code, such as en, zh, ja or ar. This filters datasets only; it is not a country selector or search translation setting.",
            "default": ""
          },
          "author": {
            "title": "Author",
            "type": "string",
            "description": "Filter catalog listings by a Hugging Face author or organization name.",
            "default": ""
          },
          "sort": {
            "title": "Sort",
            "type": "string",
            "description": "Listing order: downloads, likes, createdAt or lastModified. Leave empty for the default order; trending also uses the default order.",
            "default": ""
          },
          "maxPages": {
            "title": "Max pages",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "Listing page setting from 1 to 20, with a default of 1. The Actor can increase the number of pages to meet maxResults, up to 20.",
            "default": 1
          },
          "enrichDetails": {
            "title": "Include author details",
            "type": "boolean",
            "description": "Include public author or organization profile details when available. Enabled by default; does not collect phone numbers or street addresses.",
            "default": true
          },
          "datasetConfig": {
            "title": "Dataset configuration",
            "type": "string",
            "description": "Dataset configuration name, such as plain_text or default. Required with an explicit repository for datasetRows; use the matching configuration for datasetSearch and datasetStatistics too.",
            "default": ""
          },
          "datasetSplit": {
            "title": "Dataset split",
            "type": "string",
            "description": "Dataset split name, such as train, test or validation. Required with an explicit repository for datasetRows; use the matching split for datasetSearch and datasetStatistics too.",
            "default": ""
          },
          "datasetOffset": {
            "title": "Dataset offset",
            "minimum": 0,
            "type": "integer",
            "description": "Starting row index for datasetRows or datasetSearch. Default 0.",
            "default": 0
          },
          "datasetLength": {
            "title": "Dataset length",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Page size for datasetRows or datasetSearch, from 1 to 100. Defaults to 100; delivered rows are still limited by maxResults.",
            "default": 100
          },
          "filePaths": {
            "title": "File paths",
            "type": "array",
            "description": "Repository-relative paths for pathsInfo, such as config.json. For fileMeta or fileDownload, the first path is used when targetPath is empty.",
            "items": {
              "type": "string"
            }
          },
          "targetPath": {
            "title": "Target path",
            "type": "string",
            "description": "Repository-relative file path for fileMeta or fileDownload, such as config.json. Also accepted by pathsInfo when filePaths is empty.",
            "default": ""
          },
          "rev": {
            "title": "Revision",
            "type": "string",
            "description": "Branch, tag or commit identifier for fileMeta, fileDownload, pathsInfo and commits. Default main.",
            "default": "main"
          },
          "paperDate": {
            "title": "Paper date",
            "type": "string",
            "description": "Date for dailyPapers in YYYY-MM-DD format. Leave empty for today in UTC.",
            "default": ""
          },
          "commitSha": {
            "title": "Reserved setting",
            "type": "string",
            "description": "Reserved setting. Leave empty.",
            "default": ""
          },
          "expandFields": {
            "title": "Expand fields",
            "type": "array",
            "description": "Additional listing fields to request, such as author, cardData or siblings. Only supported output fields are retained.",
            "items": {
              "type": "string"
            }
          },
          "wantFull": {
            "title": "Additional listing metadata",
            "type": "boolean",
            "description": "Request additional metadata in catalog listings. Disabled by default; available output fields depend on the source.",
            "default": false
          },
          "wantConfig": {
            "title": "Listing configuration information",
            "type": "boolean",
            "description": "Request configuration information in catalog listings. Disabled by default; this does not add a raw model configuration object to output rows.",
            "default": false
          },
          "workerBaseUrl": {
            "title": "Developer test setting",
            "type": "string",
            "description": "Leave empty. Used only by the developer for testing."
          },
          "cursor": {
            "title": "Continue from cursor",
            "type": "string",
            "description": "Continue a run that stopped at its time limit or was aborted gracefully: paste RUN_SUMMARY.nextCursor from that run and keep the rest of the input the same. A cursor works once and is valid for 6 hours. Usually leave empty."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}