# Hugging Face user or organization API

Get Hugging Face User & Organization data via REST or OpenAny MCP—with pay-per-use pricing and no subscription. Powered by Apish, pass parameters such as name, output, and retrieve structured data including public follower count, models, datasets, and spaces to verify ai publisher credibility, triage hub accounts before crawling, and enrich developer directories.

Documentation: https://openany.si/hugging-face/hugging-face-user-or-organization-api/f5d171fb-f5dc-4442-8af5-84c271cd3263/
API ID: f5d171fb-f5dc-4442-8af5-84c271cd3263
Provider: apish
Contract revision: 3
Method: GET
Endpoint: https://api.openany.si/v1/agent-apis/apish/huggingface/v1/profile
Page update time: 2026-12-03T02:43:38.295Z
Access: OpenAny REST
OpenAny MCP: availability is not supplied by this REST contract. Check get_api on the configured OpenAny MCP server before execution.
Request content type: none
Execution mode: sync
Authentication: Authorization: Bearer $OPENANY_API_KEY

## Billing
Price: $0.002 / billing credit
API-key calls use your shared balance. Review the published billing rules before making a paid request.
Price source: OpenAny public API contract.
Contract update time: 2026-12-03T02:43:37.671Z. This is not a price-change timestamp.
```json
{
  "currency": "USD",
  "mode": "rules",
  "parameters": [],
  "policy_version": 2,
  "sale": {
    "addons": [],
    "base_price_micro_usd": "0",
    "max_cost_micro_usd": "2000",
    "quantities": [
      {
        "id": "upstream_credits",
        "label": "Actual API.SH credits consumed",
        "max_quantity": "1",
        "measure": "value",
        "pointer": "/credits_used",
        "price_micro_usd": "2000",
        "quantity_scale": 0,
        "source": "response",
        "unit": "credit",
        "unit_quantity": "1"
      }
    ],
    "rounding": "ceil",
    "variants": []
  }
}
```

## Usage and limits
## Hugging Face User & Organization API

Pass required name as a Hugging Face username, organization name or huggingface.co profile link. The response returns profile identity fields (name, fullname, type, verified, plan, avatar) alongside summary counts for followers, members, models, datasets, spaces and papers.

## What You Can Build

- **Verify AI publisher credibility**: Check type, verified status, follower counts and published model totals before trusting a repository.
- **Triage hub accounts before crawling**: Read models, datasets, spaces and papers counts to decide which search or member endpoints to query next.
- **Enrich developer directories**: Normalize handles and profile URLs across users and organizations with a single endpoint.

## Returned Data

| Field | Meaning |
| --- | --- |
| `name` | Normalized username or organization handle |
| `fullname` | Displayed full name on Hugging Face |
| `type` | Account kind: user or org |
| `verified` | Whether the account is marked verified |
| `plan` | Public plan tier when shown on the profile |
| `followers` | Public follower count |
| `models` | Count of public models published by the account |
| `datasets` | Count of public datasets published by the account |
| `spaces` | Count of public Spaces published by the account |
| `url` | Canonical Hugging Face profile URL |

## Request parameters
```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "Hugging Face user or organization API request inputs",
  "$comment": "Declared input types grouped by HTTP location. Path, query and header values describe decoded inputs and are serialized as text on the wire; body is the payload. This is not an exhaustive provider contract or a schema for the raw HTTP request.",
  "type": "object",
  "properties": {
    "path": {
      "type": "object",
      "properties": {}
    },
    "query": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "description": "Username or organization name (or its huggingface.co link)."
        },
        "raw": {
          "type": "string",
          "description": "0 leaves out the bulky `raw` source blocks (often 10-30x smaller).",
          "enum": [
            "0",
            "1"
          ]
        },
        "fields": {
          "type": "string",
          "description": "Comma-separated fields to return, e.g. `posts.id,posts.title`. Call metadata is always included."
        },
        "fresh": {
          "type": "string",
          "description": "1 skips the 24-hour cache and fetches live.",
          "enum": [
            "1"
          ]
        },
        "output": {
          "type": "string",
          "description": "JSON only for this OpenAny product. Omit output or use json; CSV and NDJSON exports are not exposed.",
          "enum": [
            "json"
          ]
        },
        "records": {
          "type": "string",
          "description": "Native CSV/NDJSON record selector; it has no effect on this JSON-only product."
        }
      },
      "required": [
        "name"
      ]
    },
    "headers": {
      "type": "object",
      "properties": {}
    }
  },
  "required": [
    "path",
    "query",
    "headers"
  ]
}
```

## Response fields
Source: Inferred from examples; not an exhaustive provider schema.
```json
{
  "type": "object",
  "properties": {
    "avatar": {
      "type": "string"
    },
    "cached": {
      "type": "boolean"
    },
    "credits_used": {
      "type": "integer"
    },
    "datasets": {
      "type": "integer"
    },
    "followers": {
      "type": "integer"
    },
    "fullname": {
      "type": "string"
    },
    "members": {
      "type": "integer"
    },
    "models": {
      "type": "integer"
    },
    "name": {
      "type": "string"
    },
    "papers": {
      "type": "integer"
    },
    "plan": {
      "type": "string"
    },
    "spaces": {
      "type": "integer"
    },
    "type": {
      "type": "string"
    },
    "url": {
      "type": "string"
    },
    "verified": {
      "type": "boolean"
    }
  }
}
```

## Request example
Scenario: Official example · Official documentation response · Supplier-tr
```bash
curl \
  'https://api.openany.si/v1/agent-apis/apish/huggingface/v1/profile?name=julien-c&output=json' \
  -X GET \
  -H "Authorization: Bearer $OPENANY_API_KEY" \
  -H 'Content-Type: application/json'
```

## Response example
Example from the provider's documentation. Field values in your results will differ.
Sample response · Documented HTTP 200
```json
{
  "avatar": "https://cdn-avatars.huggingface.co/v1/production/uploads/68783facef79a05727260de3/UPX5RQxiPGA-ZbBmArIKq.png",
  "cached": false,
  "credits_used": 1,
  "datasets": 16,
  "followers": 44101,
  "fullname": "OpenAI",
  "members": 72,
  "models": 39,
  "name": "openai",
  "papers": 7,
  "plan": "plus",
  "spaces": 6,
  "type": "organization",
  "url": "https://huggingface.co/openai",
  "verified": true
}
```

## Error handling
400: Check the request fields.
401 / 403: Verify credentials and access permissions.
402: Inspect payment requirements and balance.
429: Respect returned retry guidance.
5xx: Inspect the error and usage record before retrying a paid operation.

## Common questions
### Does one endpoint handle both individual users and organizations?
Yes. Pass either a username or an organization name in name, and check the returned type field.

### What input formats does name accept?
Pass a plain handle such as julien-c or huggingface, or a full huggingface.co profile URL.

### Does this endpoint list every model or dataset owned by the account?
No. It returns summary totals; use the Model Search, Dataset Search or Spaces Search APIs with author=<name> to list individual repositories.

### How do I list an organization's members or an account's followers?
Pass the same handle to the Organization Members API or the Followers & Following API.

### Are private profile attributes or private repository counts included?
No. Only publicly visible profile information and public resource totals are returned.

### How do caching and field selection work?
Output is JSON only. Pass fresh=1 to skip the 24-hour cache, raw=0 to omit bulky raw blocks, or fields to select specific keys.

## Available implementations
- apish: https://openany.si/hugging-face/hugging-face-user-or-organization-api/f5d171fb-f5dc-4442-8af5-84c271cd3263/

Integration guide: https://openany.si/docs/
Agent setup: https://openany.si/SKILL.md
