Volleyball head to head API
Head to headEvery meeting between two teams.
A list you will want once and then keep: it changes rarely. Ids in it open their own endpoints.
It needs team and opponent. Leave one out and the answer names it, before any data is read.
Try it
Your key stays in this browser and is filled in on every docs page.
{
"data": {
"team_a": {
"id": "vb_pszjefcets",
"name": "Hüper/Wüst",
"discipline": "beach",
"gender": "men",
"kind": "pair",
"federation": "GER",
"country_code": "DE"
},
"team_b": {
"id": "vb_10mdr01vtk",
"name": "L. Ringøen/Karlsen",
"discipline": "beach",
"gender": "men",
"kind": "pair",
"federation": "NOR",
"country_code": "NO"
},
"record": {
"team_a_won": 0,
"team_b_won": 0,
"meetings": 0
},
"matches": []
},
"meta": {
"sport": "volleyball",
"endpoint": "/head-to-head",
"count": 0,
"cached": false,
"age_seconds": 0
}
}Parameters
Query values this call takes. Anything else is refused with bad_param and the list it accepts.
| Name | Type | What it does | |
|---|---|---|---|
| team | id | required | A team, by its id. |
| opponent | id | required | The other side, by its id. |
Returns
Each field in data, from a real answer. Every id is ours and opens its own endpoint.
| Field | Type | What it holds |
|---|---|---|
| team_a | object | The first side |
| team_b | object | The second side |
| record | object | Won, lost and drawn |
| matches | list | Matches played |
| meta | What it holds |
|---|---|
| sport, endpoint | What you asked |
| count | Rows in this answer |
| page, per_page, total, next_cursor | Where you are in a paged list, when it is paged |
| as_of | When the data was built |
| cached, age_seconds | Whether this is a stored copy, and its age |
| access | On the free key: what it reads, and the plan that opens the rest |
Errors
Codes this call can give. Each is explained in Errors.
| Status | Code | When |
|---|---|---|
| 401 | no_key | No key sent, or not in a form we read |
| 401 | bad_key | A key we do not know |
| 403 | plan | The free key asked for a date other than yesterday |
| 404 | not_found | An id we never issued for volleyball |
| 422 | bad_param | A value this call does not take, or a required one missing |
| 429 | rate | Over the calls a minute for your plan |
| 503 | upstream | The data is not answering; retry after Retry-After |
The free key reads yesterday. The Volleyball plan opens live, fixtures and every date held, for $29 a month.
Add Volleyball