# Transfermarkt referee profile and record API

Get Transfermarkt referee profiles and records by season or competition via REST or OpenAny MCP—with pay-per-use pricing and no subscription. Powered by Apish, pass parameters such as output, raw, referee_id, and retrieve structured data including source referee identifier, source competition reference, source competition appearance count, and source second-yellow count for football reference, and value comparison.

Documentation: https://openany.si/transfermarkt/transfermarkt-referee-profile-and-record-api/3c8a1837-72cd-4585-91f1-4f91c7cdd160/
API ID: 3c8a1837-72cd-4585-91f1-4f91c7cdd160
Provider: apish
Contract revision: 3
Method: GET
Endpoint: https://api.openany.si/v1/agent-apis/apish/transfermarkt/v1/referee
Page update time: 2026-12-03T02:47:47.902Z
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:47:46.020Z. 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
## Transfermarkt Referee Profile API

Pass referee\_id, optionally season start year and competition. Defaults cover all source seasons/competitions; ordinary red cards and second-yellow dismissals remain separate measures.

## What You Can Build

- **Football reference**: Retain the source entity and season context.
- **Value comparison**: Keep valuation, fee and source units separate.

## Returned Data

| Field | Meaning |
| --- | --- |
| `id` | Source referee identifier |
| `record[].competition_id` | Source competition reference |
| `record[].appearances` | Source competition appearance count |
| `record[].second_yellow_cards` | Source second-yellow count |

## Request parameters
```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "Transfermarkt referee profile and record 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": {
        "referee_id": {
          "type": "string",
          "description": "The referee id (1157), or a referee link like transfermarkt.com/<name>/profil/schiedsrichter/1157."
        },
        "season": {
          "type": "string",
          "description": "Starting year of one season, e.g. 2025 for 2025/26 (default: all seasons)."
        },
        "competition": {
          "type": "string",
          "description": "A competition id such as GB1 (default: all)."
        },
        "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 are not supported.",
          "enum": [
            "json"
          ]
        },
        "records": {
          "type": "string",
          "description": "With output=csv|ndjson: the top-level list to turn into rows (e.g. `reviews`), or `.` for the whole object as one row."
        }
      },
      "required": [
        "referee_id"
      ]
    },
    "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"
    },
    "citizenship": {
      "type": "string"
    },
    "competition": {
      "type": "string"
    },
    "credits_used": {
      "type": "integer"
    },
    "date_of_birth": {
      "type": "string"
    },
    "fetched_at": {
      "type": "string"
    },
    "first_league_debut": {
      "type": "string"
    },
    "id": {
      "type": "string"
    },
    "name": {
      "type": "string"
    },
    "place_of_birth": {
      "type": "string"
    },
    "record": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "appearances": {
            "type": "integer"
          },
          "competition": {
            "type": "string"
          },
          "competition_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "penalties": {
            "type": "integer"
          },
          "red_cards": {
            "type": "integer"
          },
          "second_yellow_cards": {
            "type": "integer"
          },
          "yellow_cards": {
            "type": "integer"
          }
        }
      }
    },
    "season": {
      "type": "string"
    },
    "totals": {
      "type": "object",
      "properties": {
        "appearances": {
          "type": "integer"
        },
        "penalties": {
          "type": "integer"
        },
        "red_cards": {
          "type": "integer"
        },
        "second_yellow_cards": {
          "type": "integer"
        },
        "yellow_cards": {
          "type": "integer"
        }
      }
    },
    "url": {
      "type": "string"
    }
  }
}
```

## Request example
Scenario: Official example · Live API.SH response · Minimal request
```bash
curl \
  'https://api.openany.si/v1/agent-apis/apish/transfermarkt/v1/referee?output=json&raw=0&referee_id=1157' \
  -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,
  "citizenship": "Brazil",
  "competition": "all",
  "credits_used": 1,
  "date_of_birth": "1976-10-04",
  "fetched_at": "2026-11-19T12:23:42.073Z",
  "first_league_debut": "20/04/2003",
  "id": "1157",
  "name": "Rodrigo Martins Cintra",
  "place_of_birth": "Rio de Janeiro",
  "record": [
    {
      "appearances": 26,
      "competition": "Campeonato Brasileiro Série A",
      "competition_id": "BRA1",
      "penalties": 16,
      "red_cards": 11,
      "second_yellow_cards": 4,
      "yellow_cards": 133
    },
    {
      "appearances": 18,
      "competition": "Campeonato Baiano",
      "competition_id": null,
      "penalties": 5,
      "red_cards": 6,
      "second_yellow_cards": 3,
      "yellow_cards": 87
    },
    {
      "appearances": 12,
      "competition": "Campeonato Paulista",
      "competition_id": "BCP1",
      "penalties": 6,
      "red_cards": 2,
      "second_yellow_cards": 7,
      "yellow_cards": 60
    },
    {
      "appearances": 8,
      "competition": "Campeonato Brasileiro Série B",
      "competition_id": "BRA2",
      "penalties": 1,
      "red_cards": 2,
      "second_yellow_cards": 2,
      "yellow_cards": 55
    },
    {
      "appearances": 3,
      "competition": "Copa do Brasil",
      "competition_id": null,
      "penalties": 2,
      "red_cards": 2,
      "second_yellow_cards": 1,
      "yellow_cards": 17
    },
    {
      "appearances": 1,
      "competition": "Campeonato Brasileiro Série C",
      "competition_id": null,
      "penalties": 1,
      "red_cards": 1,
      "second_yellow_cards": 0,
      "yellow_cards": 4
    },
    {
      "appearances": 1,
      "competition": "Campeonato Paulista - Série A1 - Fase final",
      "competition_id": null,
      "penalties": 0,
      "red_cards": 0,
      "second_yellow_cards": 0,
      "yellow_cards": 7
    },
    {
      "appearances": 1,
      "competition": "Campeonato Paulista - Troféu Independência",
      "competition_id": null,
      "penalties": 0,
      "red_cards": 0,
      "second_yellow_cards": 0,
      "yellow_cards": 5
    }
  ],
  "season": "all",
  "totals": {
    "appearances": 70,
    "penalties": 31,
    "red_cards": 24,
    "second_yellow_cards": 17,
    "yellow_cards": 368
  },
  "url": "https://www.transfermarkt.com/rodrigo-martins-cintra/profil/schiedsrichter/1157"
}
```

## 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
### Which season format is accepted?
Use the start year, such as 2025 for 2025/26; the default is all seasons.

### Is competition the same input name as competition_id?
This operation exposes competition, accepting a source competition ID such as GB1.

### Can red and second-yellow counts be merged as one source field?
Keep red_cards and second_yellow_cards separate.

### Are totals tied to the chosen filters?
Retain the returned season and competition with totals and per-competition records.

### 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/transfermarkt/transfermarkt-referee-profile-and-record-api/3c8a1837-72cd-4585-91f1-4f91c7cdd160/

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