# Hugging Face followers and following API

Get Hugging Face Followers & Following 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 name, owner type, pro, and next cursor to map researcher networks, track organization audience, and enrich contributor profiles, ready for production pipelines and AI agent automation.

Documentation: https://openany.si/hugging-face/hugging-face-followers-and-following-api/21a41540-8191-49bd-851c-8c053996437a/
API ID: 21a41540-8191-49bd-851c-8c053996437a
Provider: apish
Contract revision: 3
Method: GET
Endpoint: https://api.openany.si/v1/agent-apis/apish/huggingface/v1/followers
Page update time: 2026-12-03T02:43:38.177Z
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:36.819Z. 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 Followers & Following API

Pass required name (username, organization name, @name or huggingface.co/\<name\> URL) with optional list (followers by default, or following for user accounts only), limit (10 to 500, default 50) and cursor. Each entry returns username, full name, avatar URL, account type, Pro status and profile link.

## What You Can Build

- **Map researcher networks**: Fetch followers and following lists for a Hugging Face user to discover collaborators and followed labs.
- **Track organization audience**: List public followers of an AI organization with up to 500 accounts per page.
- **Enrich contributor profiles**: Pass returned items\[\].name handles into the Hugging Face User & Organization API for resource counts.

## Returned Data

| Field | Meaning |
| --- | --- |
| `name` | Normalized username or organization queried |
| `owner_type` | Whether the queried account is a user or organization |
| `list` | Mode returned: followers or following |
| `count` | Number of accounts returned in this page |
| `items[].name` | Public username or organization handle |
| `items[].fullname` | Displayed full name on the profile |
| `items[].type` | Account type such as user or org |
| `items[].pro` | Whether the account has a Hugging Face Pro badge |
| `items[].url` | Direct Hugging Face profile URL |
| `next_cursor` | Opaque cursor for the next page, or null on the last page |

## Request parameters
```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "Hugging Face followers and following 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": "User or organization name, @name or huggingface.co/<name> link."
        },
        "list": {
          "type": "string",
          "description": "followers (default) or following (users only).",
          "enum": [
            "followers",
            "following"
          ]
        },
        "limit": {
          "type": "integer",
          "description": "Accounts per page, 10-500 (default 50)."
        },
        "cursor": {
          "type": "string",
          "description": "next_cursor from the previous page."
        },
        "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": {
    "cached": {
      "type": "boolean"
    },
    "count": {
      "type": "integer"
    },
    "credits_used": {
      "type": "integer"
    },
    "items": {
      "type": "array",
      "items": {
        "anyOf": [
          {
            "type": "object",
            "properties": {
              "avatar": {
                "type": "string"
              },
              "fullname": {
                "type": "string"
              },
              "name": {
                "type": "string"
              },
              "pro": {
                "type": "boolean"
              },
              "type": {
                "type": "string"
              },
              "url": {
                "type": "string"
              }
            }
          },
          {
            "type": "string"
          }
        ]
      }
    },
    "list": {
      "type": "string"
    },
    "name": {
      "type": "string"
    },
    "next_cursor": {
      "type": "string"
    },
    "owner_type": {
      "type": "string"
    }
  }
}
```

## Request example
Scenario: Official example · Official documentation response · Supplier-tr
```bash
curl \
  'https://api.openany.si/v1/agent-apis/apish/huggingface/v1/followers?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
{
  "cached": false,
  "count": 50,
  "credits_used": 1,
  "items": [
    {
      "avatar": "https://huggingface.co/avatars/f12871b9967851fcd41ad9ce49637971.svg",
      "fullname": "Omar Hassan",
      "name": "omar-ha",
      "pro": false,
      "type": "user",
      "url": "https://huggingface.co/omar-ha"
    },
    {
      "avatar": "https://huggingface.co/avatars/5098165f5742b88b59f976718b490772.svg",
      "fullname": "Dj",
      "name": "DJ123983943",
      "pro": false,
      "type": "user",
      "url": "https://huggingface.co/DJ123983943"
    },
    "… 48 more"
  ],
  "list": "followers",
  "name": "julien-c",
  "next_cursor": "6ae0a9906d86e0d4f4200c11",
  "owner_type": "user"
}
```

## 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
### Can I query list=following for an organization account?
No. The contract specifies that following applies to user accounts only; organizations support followers.

### What input formats does the name parameter accept?
Pass a plain username or organization name, an @name handle, or a full huggingface.co/<name> URL.

### What is the page size range for limit?
limit accepts values from 10 to 500 and defaults to 50 accounts per page.

### How do I paginate through large follower lists?
Pass the returned next_cursor into cursor on subsequent calls until next_cursor is null.

### How is this different from Organization Members?
Followers lists public accounts following a user or org, whereas Organization Members lists public members belonging to an organization.

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

## Available implementations
- apish: https://openany.si/hugging-face/hugging-face-followers-and-following-api/21a41540-8191-49bd-851c-8c053996437a/

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