# Blockscout — Fetch media type for a specific NFT instance

Look up Blockscout NFT media type via REST or OpenAny MCP—with pay-per-use pricing and no subscription. Powered by Blockscout, pass parameters such as Set, and retrieve structured data including structured JSON records, identifiers, and response metadata for nft renderers, and media inspection tools, ready for production pipelines and AI agent automation.

Documentation: https://openany.si/blockscout/blockscout-fetch-media-type-for-a-specific-nft-instance/8ff5b968-02ff-488c-bf3e-942b3b99bcc3/
API ID: 8ff5b968-02ff-488c-bf3e-942b3b99bcc3
Provider: blockscout
Contract revision: 4
Method: GET
Endpoint: https://api.openany.si/v1/agent-apis/blockscout/{chain_id}/api/v2/tokens/{address_hash_param}/instances/{token_id_param}/media-type
Page update time: 2026-12-03T02:49:16.030Z
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 / call
The published contract currently has no usage charge. Authentication and service limits still apply.
Price source: OpenAny public API contract.
Contract update time: 2026-12-03T02:49:15.705Z. This is not a price-change timestamp.
```json
{
  "currency": "USD",
  "mode": "fixed",
  "priceMicroUsd": "0",
  "rounding": null,
  "unit": "call",
  "unitQuantity": null
}
```

## Usage and limits
## Blockscout NFT Media Type API

Pass chain\_id, address\_hash\_param and token\_id\_param to the media-type route. It focuses on media-type lookup for one instance; use the NFT details route for metadata and owner context.

## What You Can Build

- **NFT renderers**: Choose presentation behavior for a known instance.
- **Media inspection tools**: Inspect media-type information separately from full NFT details.

## Response Scope

The response concerns the media type of the selected NFT instance. Handle missing or unrecognized type information in the renderer instead of assuming an image.

## Request parameters
```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "Blockscout — Fetch media type for a specific NFT instance 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": {
        "address_hash_param": {
          "type": "string",
          "description": "Address hash in the path"
        },
        "token_id_param": {
          "type": "string",
          "description": "Token ID for ERC-721/1155/404 tokens"
        },
        "chain_id": {
          "type": "string",
          "description": "The ID of the blockchain"
        }
      },
      "required": [
        "address_hash_param",
        "token_id_param",
        "chain_id"
      ]
    },
    "query": {
      "type": "object",
      "properties": {}
    },
    "headers": {
      "type": "object",
      "properties": {}
    }
  },
  "required": [
    "path",
    "query",
    "headers"
  ]
}
```

## Response fields
Source: Inferred from examples; not an exhaustive provider schema.
```json
{
  "type": "object",
  "properties": {}
}
```

## Request example
Scenario: Schema template · Schema template (not executed)
```bash
curl \
  'https://api.openany.si/v1/agent-apis/blockscout/%3Cchain_id%3E/api/v2/tokens/%3Caddress_hash_param%3E/instances/%3Ctoken_id_param%3E/media-type' \
  -X GET \
  -H "Authorization: Bearer $OPENANY_API_KEY" \
  -H 'Content-Type: application/json'
```

## Response example
Response illustration only. Placeholder values and unknown business fields are not recorded API results. Replace request placeholders before use.
Response template · not a real response · Documented HTTP 200
```json
{}
```

## 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 token_id_param identify the token contract?
No. The contract address and instance token ID are separate path inputs.

### Does this return or transcode a media file?
The operation is a media-type lookup, not a media conversion or file-download operation.

### Can I retrieve NFT metadata here?
Use NFT Instance Details for metadata and ownership context.

### Does this route list every NFT in a collection?
No. It identifies one NFT instance with its contract and token ID.

### Which API key should I use?
Use your OpenAny API key as Bearer authentication on the documented OpenAny route.

### Where can I check the current request price?
Check the pricing area for the selected implementation. Follow its billing unit and any request-dependent rules before sending the request.

## Available implementations
- blockscout: https://openany.si/blockscout/blockscout-fetch-media-type-for-a-specific-nft-instance/8ff5b968-02ff-488c-bf3e-942b3b99bcc3/

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