# Figshare usage statistics API

Get Figshare Usage Statistics data via REST or OpenAny MCP—with pay-per-use pricing and no subscription. Powered by Apish, pass parameters such as id, output, and retrieve structured data including resource kind, selected timeline counter, timeline bucket, aggregate repository usage counters, and optional geographic totals to research catalogue, and deposit review.

Documentation: https://openany.si/figshare/figshare-usage-statistics-api/44e34b47-1c05-49aa-955f-4304b882cf26/
API ID: 44e34b47-1c05-49aa-955f-4304b882cf26
Provider: apish
Contract revision: 3
Method: GET
Endpoint: https://api.openany.si/v1/agent-apis/apish/figshare/v1/stats
Page update time: 2026-12-03T02:44:32.409Z
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:44:31.100Z. 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
## Figshare Usage Statistics API

Pair id with kind to identify the resource. counter chooses the metric for timeline and geographic totals, while start\_date and end\_date set YYYY-MM-DD bounds. granularity=total omits the timeline; by\_country=true adds country and city totals. Counters are repository usage signals, not unique researcher identities.

## What You Can Build

- **Research catalogue**: Retain the returned resource identifier and source link in a catalogue of research deposits.
- **Deposit review**: Inspect the returned metadata before opening the source record and its access or reuse terms.

## Returned Data

| Field | Meaning |
| --- | --- |
| `kind` | Resource kind |
| `counter` | Selected timeline counter |
| `timeline[].period` | Timeline bucket |
| `timeline[].count` | Counter value for the bucket |
| `totals` | Aggregate repository usage counters |
| `by_country` | Optional geographic totals |

## Request parameters
```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "Figshare usage statistics 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": {
        "id": {
          "type": "string",
          "description": "Item, collection or project id."
        },
        "kind": {
          "type": "string",
          "description": "What the id is.",
          "enum": [
            "article",
            "collection",
            "project"
          ]
        },
        "counter": {
          "type": "string",
          "description": "Counter for the timeline and country totals.",
          "enum": [
            "views",
            "downloads",
            "shares"
          ]
        },
        "granularity": {
          "type": "string",
          "description": "Timeline step (`total` skips the timeline).",
          "enum": [
            "month",
            "day",
            "year",
            "total"
          ]
        },
        "start_date": {
          "type": "string",
          "description": "Timeline start (YYYY-MM-DD)."
        },
        "end_date": {
          "type": "string",
          "description": "Timeline end (YYYY-MM-DD)."
        },
        "by_country": {
          "type": "boolean",
          "description": "true adds totals by country and city."
        },
        "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": [
        "id"
      ]
    },
    "headers": {
      "type": "object",
      "properties": {}
    }
  },
  "required": [
    "path",
    "query",
    "headers"
  ]
}
```

## Response fields
Source: Inferred from examples; not an exhaustive provider schema.
```json
{
  "type": "object",
  "properties": {
    "by_country": {
      "type": "null"
    },
    "cached": {
      "type": "boolean"
    },
    "counter": {
      "type": "string"
    },
    "credits_used": {
      "type": "integer"
    },
    "end_date": {
      "type": "null"
    },
    "granularity": {
      "type": "string"
    },
    "id": {
      "type": "integer"
    },
    "kind": {
      "type": "string"
    },
    "start_date": {
      "type": "null"
    },
    "timeline": {
      "type": "array",
      "items": {
        "anyOf": [
          {
            "type": "object",
            "properties": {
              "count": {
                "type": "integer"
              },
              "period": {
                "type": "string"
              }
            }
          },
          {
            "type": "string"
          }
        ]
      }
    },
    "totals": {
      "type": "object",
      "properties": {
        "cites": {
          "type": "integer"
        },
        "downloads": {
          "type": "integer"
        },
        "shares": {
          "type": "integer"
        },
        "views": {
          "type": "integer"
        }
      }
    }
  }
}
```

## Request example
Scenario: Official example · Official documentation response · Supplier-tr
```bash
curl \
  'https://api.openany.si/v1/agent-apis/apish/figshare/v1/stats?id=7504448&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
{
  "by_country": null,
  "cached": false,
  "counter": "views",
  "credits_used": 1,
  "end_date": null,
  "granularity": "month",
  "id": 7504448,
  "kind": "article",
  "start_date": null,
  "timeline": [
    {
      "count": 2299,
      "period": "2024-11"
    },
    {
      "count": 2502,
      "period": "2024-12"
    },
    "… 23 more"
  ],
  "totals": {
    "cites": 491,
    "downloads": 133823,
    "shares": 2,
    "views": 201053
  }
}
```

## 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
### Why do id and kind both matter?
Item, collection and project IDs refer to different resource types; use kind to select the intended one.

### How do I request totals without a timeline?
Set granularity=total.

### Can I restrict a date range?
Use start_date and end_date as YYYY-MM-DD.

### How do I include geographic totals?
Set by_country=true; this adds country and city aggregates when available.

### How do I bypass cached results?
Pass fresh=1. A cache bypass retrieves available source data; it does not make unpublished or restricted records available.

### Can I request CSV or NDJSON?
This OpenAny implementation serves JSON only. Omit output or set output=json.

## Available implementations
- apish: https://openany.si/figshare/figshare-usage-statistics-api/44e34b47-1c05-49aa-955f-4304b882cf26/

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