Public API

The ECF Rating System has a public application program interface (API) that allows other software systems to make quick ad hoc requests for information using HTTPS and JSON.

It also allows the download of complete ratings lists equivalent to those in the previous system.

Any queries about these services should be sent to [email protected] in the first instance.

There is a limit on the amount of processing time per day per internet class C network address. The maximum processing time is currently 10 minutes per day, reset every midnight GMT, but may be changed without notice. Processing time and limits are provided in every JSON response.

19th July 2020 [email protected] Cirencester

Subject to change without notice currently

Player Name Search using sound-alike (100ms)

To get a list of all players with names sounding like "John Smythe"
https://www.ecfrating.org.uk/sandbox/new/api.php?v2/players/fuzzy_name/john+smythe

One or two words can be given in any order; spaces should be replaced with + signs for reliability.
FIDE and NM titles added to download May 2024.

Player Name Search using exact word-stems (200ms)

To get a list of all players with surnames commencing with "Smi..." including all Smiths
https://www.ecfrating.org.uk/sandbox/new/api.php?v2/players/name/smi

To get a list of all players with the surname "Smith" and "Jo" in the forename, including all John Smiths
https://www.ecfrating.org.uk/sandbox/new/api.php?v2/players/name/smith,+jo

Player's Info from Rating Code (10ms)

To get general info about player 120787J (10ms)
https://www.ecfrating.org.uk/sandbox/new/api.php?v2/players/code/120787

FIDE and NM titles added to download May 2024.

Player's Info from Membership Number (10ms)

To get general info about player ME003511 (10ms)
https://www.ecfrating.org.uk/sandbox/new/api.php?v2/players/mid/ME003511

FIDE and NM titles added to download May 2024.

Player's Rating (1ms) Revised June 2021

To get the ECF Official (over-the-board) Standard Rating of player 120787J effective on 2020-07-05
https://www.ecfrating.org.uk/sandbox/new/api.php?v2/ratings/S/120787/2020-07-05

Replace "S" with "R" or "B" to get OTB rapid or blitz ratings respectively instead, and with "SW", "RW", or "BW" to get online standard, rapid, or blitz ratings respectively.

Player's Games (10ms)

To get the 100 most recent over-the-board rapid games of player 120787J
https://www.ecfrating.org.uk/sandbox/new/api.php?v2/games/Rapid/player/120787/limit/100

Replace "Rapid" with "Standard" to get standard games instead, or with "Blitz" to get blitz games.
Online games are not published.

All Rated Players (2sec 4Mb) Revised October 2022

Latest:
JSON : https://www.ecfrating.org.uk/sandbox/new/api.php?v2/rating_list
CSV : https://www.ecfrating.org.uk/sandbox/new/api.php?v2/rating_list_csv

Swiss Manager
A CSV file with a reduced number of columns suitable for import into Swiss Manager is also available
https://www.ecfrating.org.uk/sandbox/new/api.php?v2/rating_list_sm

Historical: Example for 1st July 2022

* Right click, choose "copy link location" and paste to a new tab. Change date to desired date and press Enter.
* Only the ratings, categories and number of games are historical. All other info is current latest available.
* Monthly over-the board ratings are available from July 2020. Six-monthy (January and July) ratings are available for Jan 2012 to Jan 2020,
and annual July ratings only for the years 1994 to 2011.
* Online ratings are available monthly from Jan 2021.
* OTB Blitz ratings are available monthly from Dec 2021.

JSON : https://www.ecfrating.org.uk/sandbox/new/api.php?v2/rating_list/2022-07-01
CSV : https://www.ecfrating.org.uk/sandbox/new/api.php?v2/rating_list_csv/2022-07-01

In view of the volume of data the JSON response is now made available as a download file rather than displaying on screen.

1. Ratings are based on all games up to but excluding the given date provided in the json or file name for csv. Games dated thereafter have no effect.
2. "Original" ratings are calculated at the end of every month and will never change thereafter.
3. "Revised ratings" are recalculated nightly based on all submissions committed.
4. "Category" is the same as under the old system. A-F * etc, subject to adjustments made due to Covid (see here).
5. "games_36m" means number of games played in the previous 36 months
6. "Prior" provides the same info from the previous month.

Top Players (350ms)

To get the top 100 players table
https://www.ecfrating.org.uk/sandbox/new/list_top_players.php?domain=S&age_limit=none&age_col=age31dec&nation=ENG&gender=both&type=rating&format=json

To get various other top 100 tables use the following arguments.

Meaning Parameter  Possible Arguments (Choose one and only one!)
List &domain =S =R =B for OTB, =SW =RW =BW for Online
England or World &nation =ENG =ALL
Age group &age_limit =none =U20 =U19 =U18 =U17 =U16 =U15 =U14 =U13 =U12 =U11 =U9 =U8 =U7 =19 =18 =17 =16 =15 =14 =13 =12 =11 =10 =9 =8 =7 =6 =50plus =55plus =60plus =65plus =70plus =75plus =80plus
ECF or FIDE "age" &age_col =age =age31dec
Sex &gender =both =male =female
Rank by Rating, Improvement or Activity &type =rating =improvement =activity
&format=json is mandatory &format =json

Field name for FIDE and NM titles amended for consistency from playing_title to title May 2024.

Club Name Search using exact word-stems (5ms)

To get a list of all clubs with name containing word or word stems "LOND" including club names mentioning LONDON
https://www.ecfrating.org.uk/sandbox/new/api.php?v2/clubs/name/LOND

One or two words or word stems can be given in any order.

Club Info (10ms)

To get simple info about club code 3330
https://www.ecfrating.org.uk/sandbox/new/api.php?v2/clubs/code/3330

Club Players (500ms)

To get a list of players associated with a club and their latest original ratings for club 2SLG
JSON: https://www.ecfrating.org.uk/sandbox/new/api.php?v2/club_players/2SLG
CSV: https://www.ecfrating.org.uk/sandbox/new/api.php?v2/club_players_csv/2SLG

All Active Clubs (200ms)

https://www.ecfrating.org.uk/sandbox/new/api.php?v2/clubs/all_active

HTTP Error Codes

In all cases a detailed explanatory message will be given in the json response.

Code  Name  Description 
400 Bad Request The server cannot or will not process the request due to an apparent client error e.g. malformed request syntax.
404 Not Found The requested resource could not be found but may be available in future.
500 Internal Server Error An unexpected condition was encountered in the server. Similar requests by the client are likely to suffer the same result in the short term.

[Index]