Site
Home / Forum / Developers / Search Team by Short Name

Search Team by Short Name


Posted: 26 Jan 2018 11:22

edalex
Posts: 88
Joined: Mar 2017

Hi all,
my suggestion is to add new API call like thesportsdb.com/api/v1/json/{APIKEY}/searchshortteams.php?t={ShortTeamName} to search i.e. Tampa Bay Lightning by TBL term.
Also it will be cool to search by alternative names too

Posted: 26 Jan 2018 12:29

zag
Posts: 1,558
Joined: Oct 2016

Great idea!

Nice and easy too:

thesportsdb.com/api/v1/json/{APIKEY}/searchteams.php?sname={TeamShortCode}


https://www.thesportsdb.com/api/v1/json/ ... ?sname=TBL

Posted: 26 Jan 2018 12:38

zag
Posts: 1,558
Joined: Oct 2016

Alternative names should already be included in main search I think

Posted: 26 Jan 2018 14:57

edalex
Posts: 88
Joined: Mar 2017

Alternative names should already be included in main search I think
Hmm, I didn't know that, cool. Indeed it's working even when alternative name is not single

Posted: 30 Jan 2018 22:45

edalex
Posts: 88
Joined: Mar 2017

Hi, Seems like short name is not always visible in gui to let it set or edit https://www.thesportsdb.com/edit_team.php?t=135272

Posted: 02 Feb 2018 16:28

zag
Posts: 1,558
Joined: Oct 2016

Yep I will add this, I have to be careful though as some of the automated API's rely on the short name being something specific.

Posted: 02 Feb 2018 17:10

edalex
Posts: 88
Joined: Mar 2017

Yep I will add this, I have to be careful though as some of the automated API's rely on the short name being something specific.
Yeah, but some short names looks wrong. See my file with stats https://docs.google.com/spreadsheets/d/ ... sp=sharing
So i.e. Los Angeles Dodgers an't be found https://www.thesportsdb.com/api/v1/json/ ... ?sname=LAD
I've posted my thought here
viewtopic.php?f=4&t=4068


Who is Online?

In total there are 68 users online :: 3 registered, 0 hidden and 65 guests (based on users active over the past 5 minutes) Most users ever online was 424 on Fri Nov 10, 2017 9:02 pm

About Us

Discussion forum for TheSportsDB.com site and related topics

Rules

- Be Polite
- Respect other users
- Always post log files with issues
- Try to be helpful
- No Piracy discussion

Showing 0 to 7 (Total: 7)