Bash / sh

Prerequisites

Almost none I’d say, just a unixoid operating system. Most inline-samples use bash all the time. It makes use of the popular curl command which one could say is the http client for that programming language.

Plain request

curl -XGET https://api.football-data.org/v4/competitions

Using a library

Kudos to Fritz Rehde who recently implemented a small bash-only library with minimal footprint.

Check the excellent documentation to get up and running quickly and doing stuff like below.

(base) ~ % footy -s -l PL

Pos  Team                        P   W   D   L   GF  GA  GD   Pts
1    Manchester City FC          37  28  6   3   96  24  72   90
2    Liverpool FC                36  26  8   2   89  24  65   86
3    Chelsea FC                  36  20  10  6   73  31  42   70
4    Tottenham Hotspur FC        37  21  5   11  64  40  24   68
5    Arsenal FC                  37  21  3   13  56  47  9    66
6    Manchester United FC        37  16  10  11  57  56  1    58
7    West Ham United FC          37  16  8   13  59  48  11   56
8    Wolverhampton Wanderers FC  37  15  6   16  37  40  -3   51
9    Leicester City FC           36  13  9   14  57  57  0    48
10   Brighton & Hove Albion FC   37  11  15  11  39  43  -4   48
11   Brentford FC                37  13  7   17  47  54  -7   46
12   Newcastle United FC         37  12  10  15  42  61  -19  46
13   Crystal Palace FC           36  10  15  11  47  43  4    45
14   Aston Villa FC              36  13  5   18  49  50  -1   44
15   Southampton FC              36  9   13  14  41  61  -20  40
16   Everton FC                  36  10  6   20  39  59  -20  36
17   Leeds United FC             37  8   11  18  40  78  -38  35
18   Burnley FC                  36  7   13  16  32  50  -18  34
19   Watford FC                  37  6   5   26  33  75  -42  23
20   Norwich City FC             37  5   7   25  23  79  -56  22