abarrett86 Tue 12/11/12 1:01 PM

Does FleaFlicker have a public API?

nvleafs Thu 11/21/13 2:06 PM

Anyone know of a way to scrape data? No API for this site is the only thing holding this site from being better than the big ones.

GeekItTillItMhz Thu 8/2/18 10:35 PM

Found this, seems to be up to date.

githubDOTcom/BenMagyar/flea-killer

FleaMod Admin Tue 12/11/12 1:17 PM

Not at the moment, no.

abarrett86 Wed 12/12/12 9:27 AM

I assumed as much. Since you said 'not at the moment', does that mean there are plans for one in the future?

FleaMod Admin Wed 12/12/12 9:45 AM

It's something we'd like to have, absolutely, but not imminent with all the other enhancements (mobile, droid, etc) we're working hard on.

drsheep Fri 10/25/13 5:59 PM

Any update? :) I see a lot of sites using player lineup's from FleaFlicker. Thanks.

fleafounder Admin Mon 10/28/13 2:37 PM

There's no official API but you can scrape the data you need if your crawler is respectful (requests only one page at a time). What did you have in mind?

dengelberg Sun 11/17/13 2:04 AM

+1 for a public API

Ken_Kaneki Thu 12/4/14 4:20 PM

any work on an api?

inventsimple Mon 8/10/15 12:35 AM

+1 for a API. Restful please :)

Mr-Kevin Fri 9/11/15 1:46 AM

What the hell fleaflicker

Ken_Kaneki Fri 9/11/15 9:08 AM

still would love an api...lol. there has to be one right?

Zero2Cool Sun 9/24/17 3:06 PM

Pushing for some API love!! :)

dfcHeadChair Mon 10/16/17 11:28 AM

I would help develop a public API!

Mr-Kevin Sun 12/17/17 5:10 PM

How about an authenticated API too so someone could make a phonegap (/react/ionic) app in like a day for android/iphone?

[Deleted User] Fri 8/3/18 10:09 PM

What exactly would this API allow us to do?

Zero2Cool Mon 8/20/18 8:44 AM

An API would allow us to view transactions or available free agents or box scores. It really depends on the developer and what they want to do. I would like better (subjectively phrased) filtering on the transactions and free agents so that's what I would do. So others could see box scores and games, FleaFlicker doesn't require a user to be logged into view, which allows us to iframe the FF scores page for all to view.

Mr-Kevin Wed 9/5/18 2:11 PM

I would like someone to create an improved mobile app

[Deleted User] Wed 9/5/18 4:58 PM

The mobile app has been revamped and is now quite good.

Zero2Cool Wed 9/5/18 5:04 PM

FleaFlicker on mobile is excellent. I'd like all the columns available with using table-responsive instead of making them disappear, but it's excellent. The Desktop box score version is just garbage and painful to look at. The analytics must show Mobile users > Desktop users when they decided that layout.

znibb Tue 8/13/19 5:19 AM

What's the status on the API?

fleafounder Admin Tue 8/13/19 9:19 AM

We have an API but haven't had the time to make it public yet. Email us and let us know what you're looking to do and we'll do our best to help you out.

fleafounder Admin Tue 10/29/19 3:20 PM

We've started making our internal API public: fleaflicker.com (link is also at the bottom of every page).

Zero2Cool Thu 10/31/19 8:15 AM

Very nice FleaFounder!

znibb Tue 11/5/19 9:49 AM

This is amazing fleafounder thanks!

cmaustin Fri 11/8/19 4:07 PM

Anyone getting a 404 error when trying to access the API?

Maybe I'm not using the right URL.

URL = "fleaflicker.com"

I set the parameters, ?sport=NFL&league_id=INT&season=2018

FYI, league_id is an integer, didn't want to display it.

When I do a get request, I get a status_code 404.

maybe I still have a bad URL, or is an API key required?

[Deleted User] Wed 11/13/19 1:03 AM

Does anyone know of a good website for me to learn how to use Fleaflickers API?

fleafounder Admin Wed 11/13/19 9:19 AM

cmaustin -- try this: fleaflicker.com

Twitty Thu 11/14/19 11:43 AM

Thanks for getting around to this, this is awesome! I've managed to get the other ones working but can't get FetchRosterRequest to go - could you post a sample request similar to the league one you sent above?

fleafounder Admin Thu 11/14/19 12:09 PM

Sure -- here you go fleaflicker.com

fleafounder Admin Thu 11/14/19 12:10 PM

Also looks like there'a typo in the API docs -- the paths shouldn't end in "Request", we'll put out a fix soon.

cmaustin Thu 11/14/19 2:22 PM

I have some codes, that might be useful. Just working out some bugs. Will post back later.

cmaustin Thu 11/14/19 3:23 PM

I was interested in getting our teams's total scores for each week per season, but one thing I noticed is there is no total team point for that week in /FetchRoster. With a python script I added up the starting player's score values to get the team score. However, I notice that past seasons points are converted to the current season scoring rules. For instance, if I get player points from our 2014 season (where we did not have 0.5 ppr), their points in the json file for 2014 will reflect our current scoring rules, which has 0.5 ppr.

I see that the weekly box scores will reflect the points for that season's scoring rules. But, if you select a player and select the same week and season you'll notice the scores are different, if you had difference scoring rules between the seasons.

Is there a way to get the matchup box scores?

cmaustin Thu 11/14/19 10:15 PM

Fleaflicker -

I see you now added a boxscore path.. i figured it out, so no need to respond to my above message! thanks!

cmaustin

[Deleted User] Fri 11/15/19 4:42 PM

cmaustin, could you work up the way to get injurys or something like that for me?

I have no idea how to do this but an example would be all I need to look at and learn enough to do my own.

I see what was posted by fleafounder but have no idea how to use it the way I would need to get the results

cmaustin Sat 11/16/19 11:36 PM

Hi mrbud. Do you know any programming? I wrote python codes to extract what I am looking for. I'm self taught, but I can do my best to try and help. If you don't know how to start with API's there are some good basic walk throughs online to help you get started. And there are a lot of APIs out there to practice on as well. You can practice on fleaflicker, but I think they're still building it up. Because there is a lot of nested data in the json files, I would suggest starting out with some simpler APIs to get an idea how to do it first.

However, things I have used the API for so far: getting all scores by week per season, flex info like who started and what position used in flex, all players started for each week for each season.

[Deleted User] Sun 11/17/19 1:30 AM

I would certainly appreciate any resources you could recommend for me to look at to get me started.

thank you cmaustin

nvleafs Mon 11/18/19 10:24 AM

Wondering if we can get a list of all the routes so far? This is what I have:

League standings: fleaflicker.com

Team roster: fleaflicker.com

League activity: fleaflicker.com

League draft board: fleaflicker.com

Team roster with specific week: fleaflicker.com

League Scoreboard: fleaflicker.com

Box Score: fleaflicker.com

Wondering if there is a way to get a team's schedule / weekly matchups so I don't have to look up the game IDs manually.

cmaustin Mon 11/18/19 11:18 PM

hey nvleafs -

I might have a python script that might help you. What are you specifically looking to do?

nvleafs Tue 11/19/19 9:16 AM

Was hoping for an API route that would give you the fantasy game ids - either for a given week - or for an entire team's schedule. I am scraping them via a script using the website right now.

cmaustin Tue 11/19/19 11:39 AM

/FetchLeagueScoreboard path can get you gameIDs. I used this path to get the all the of the gameIDs for each week.

nvleafs Thu 11/21/19 10:44 AM

Completely misread the response on that one, thanks!

ataber Fri 12/27/19 1:55 PM

This is pretty great so far. A couple questions:

1) Are there any plans to open up api calls for roster updates or any other post/put type functionality?

2) Is there a way (or planned for the future) to make the currently available calls for a given authenticated user. For example, as a logged in user to the site I can see my open trades, but as an unauthenticated api caller I'm (rightly so) not allowed to see these open/proposed trades.

sujin6 Tue 1/28/20 5:00 AM

Hi

Is there any api for user login

fleafounder Admin Tue 1/28/20 8:42 AM

Yes there's a login endpoint but it's not currently documented. What are you trying to do? Maybe we can help.

sujin6 Tue 1/28/20 9:30 AM

I want to get the league data particular to a user, and need user_id for that. I want to get the user_id & validate the user.

fleafounder Admin Tue 1/28/20 11:22 AM

League listings for a specific user don't need a login: fleaflicker.com

For example, here are your leagues (your userId is 1256205) fleaflicker.com

sujin6 Wed 1/29/20 5:24 AM

Hi

I am creating a simple view of the API result(League listing), if multiple people want to use this , It might be really helpful to show the userId by validating their creds, & then list the leagues.

fleafounder Admin Wed 1/29/20 12:50 PM

You should be able to do that -- instead of user_id=XXX pass an email via email=XXX

It won't be validated but this way people can look up their teams using their email address.

SamKinison Tue 2/4/20 3:37 PM

Is there an API to get all of the NFL players within Fleaflicker?

PovertyBayOrca Thu 2/6/20 4:26 PM

Is 30 a hard limit for the number of players you can get per request?

PovertyBayOrca Thu 2/6/20 4:30 PM

If so, could you move it up to at least the number of teams in the NFL.

Thanks

PovertyBayOrca Thu 2/6/20 11:10 PM

Set at 32, the FetchPlayerListing would let me get all the D/ST or QB or K for each NFL team with one request per each position.

fleafounder Admin Fri 2/7/20 9:16 AM

Correct -- we only return 30 results at a time. But most of the time there shouldn't be a need to make separate calls to FetchPlayerListing. We return player data (name, team, schedule, stats, etc) with requests to FetchRoster too.

PovertyBayOrca Fri 2/7/20 11:32 AM

Returning 32 would be appreciated.

PovertyBayOrca Fri 2/7/20 2:13 PM

Teams in this case are NFL teams not Flea league teams.

Algirdas Wed 2/26/20 10:31 AM

Hi, is there a way to get the results of all past trades in the league, not just the 10 most recent? My request looks like this:

fleaflicker.com

fleafounder Admin Wed 2/26/20 11:17 AM

You can add &resultOffset=10 to get the next 10.

SamKinison Mon 5/4/20 10:09 AM

Can you tell me what API call gives me the league rules - like points per passing yard etc,

ataber Tue 5/5/20 1:41 PM

fleaflicker.com where [SPORTVALUE] is replaced with one of NFL, MLB, NBA, NHL and [LEAGUE_ID] is replaced with the id of the league you want to look at, e.g. fleaflicker.com

fleafounder Admin Wed 5/6/20 4:33 PM

Correct, thanks ataber. This is now documented here fleaflicker.com

ataber Fri 5/8/20 10:55 AM

fleafounder, thanks for updating the documentation.

There are some other endpoints that I've been able to figure out partially, but may not be clear on all of the query parameters yet, is there any chance these things will be getting updated in the docs at some point? If there's anything I can do to help out with that just let me know, I'm willing to help.

Is there any guidance on the login endpoint or some other user level access validation? Working on building myself an interface more tailored to how I want to manage my leagues and need to be able to access things like trade offers, messages, etc. to do that in a meaningful way. I sent an email the other day on this, but haven't heard back yet, but I'm sure you guys get plenty of mail so just wanted to throw this out on the forum as well.

Thanks!

PovertyBayOrca Sat 5/23/20 11:38 PM

When you already get 30 items returned in some requests the &resultOffset=n might subtract from the number of items returned.

Example: request returns 32 in resultTotal, the actual return is 30 due to the limit.

Without the offset or with it set to a value that would return equal or less than the resultTotal, you get 30 out of 32 possible returns (set to 2 or less in this case ... limit 30 + 2 = 32 resultTotal). With it set to 10 you get 22 out of the possible 32 returns.

Any offset that results in a requested return of greater than the resultTotal and is greater than the 30 limit will give a return of the resultTotal minus the offset.

I have not tested all possible cases/situations.

ataber Mon 6/8/20 10:29 PM

That was kinda confusing. The way that it works though is that resultTotal returns the total number of results for the entire query, not just that 'page' of results.

All you really need to know if you're trying to pull all records from a query is that whatever the value of "resultOffsetNext" (if anything) is, is what you need to set the value of resultOffset equal to on subsequent requests until there's no longer a value returned for "resultOffsetNext" and the # of records you've received matches the value from resultTotal.

PovertyBayOrca Sun 6/14/20 3:37 PM

Thanks. I will try that. Working through the details on what is returned on each type of pull and optilon is time consuming.

Thanks again for the guidance.

mjm500 Fri 3/12/21 12:49 PM

Does anybody know how to get the scoring categories used for roto leagues? Using FetchLeagueRules, for point-based leagues there is a "groups" container which has "scoringRules" within it, but for roto leagues, the "groups" container doesn't seem to show so I can't find the categories selected for that league. All I see for roto leagues is the "allScoringRuleTypes" container.

Thanks for any help.

ataber Mon 5/17/21 5:55 PM

Do you have any league IDs I could use to look at this if you still haven't figured it out? I don't have any roto leagues myself, but I'd be happy to look into it.

fleafounder Admin Mon 5/17/21 6:55 PM

You can see them on the standings API endpoint. E.g., fleaflicker.com

Each team has a roto object with the statValues you need:

```

"category": {

"id": 34,

"abbreviation": "SO",

"nameSingular": "Strikeout",

"namePlural": "Strikeouts"

},

```

sqlt Tue 12/21/21 9:08 PM

I was curious if there was an Auth call for the API? I saw there wasn't one publicly earlier, but I wasn't sure if there was an update or not.

ataber Tue 12/21/21 9:30 PM

To my knowledge there still is not an available auth call in the API to make certain calls as a specific user if that's what you're after. What are you trying to do?

sqlt Tue 12/21/21 9:33 PM

Trying to skin a new app so my league mates stop trying to force me to move the league to sleeper...

All they care about is flashy UI. I can get them a new skin without Auth, but that svelte severely limits usability

sqlt Tue 12/21/21 9:34 PM

Heck, I'd even give the code base to fleaflicker to use, lol.

ataber Tue 12/21/21 10:09 PM

There is technically a way to do it. I have some c# code that I can send along, but I'm on vacation until next week.

sqlt Tue 12/21/21 10:17 PM

No worries. Anything would be helpful. I appreciate it

fleafounder Admin Thu 12/23/21 9:25 AM

We're working on an app update! Stick with us :)

You can pass the token you get from /api/Login in the Authorization header on any requests.

sqlt Fri 12/24/21 12:16 PM

Sounds good. Thanks!

ataber Sun 12/26/21 10:22 PM

@fleafounder is /api/Login a POST? Any chance you could post a sample? I never could get it to work previously, but haven't tried in a while.

soulforged2 Tue 9/6/22 6:44 AM

Hi, I am also interested in knowing more about the /api/Login call. How does it work? I would also like to request the open trades for the user.

Thanks!

soulforged Tue 9/6/22 8:07 AM

I have actually managed to get the token from the api/Login call. How should I add it to the authorization header? What type of authorization should I use?

ataber Tue 9/20/22 12:16 PM

@soulforged, I'm assuming Bearer, but I haven't been able to get a token to test myself. Any chance you could hit me up with the CURL or some insight into how you got it working through the api/Login call?

Algirdas Sun 4/23/23 12:17 PM

Maybe some POST actions are planned to be added? I'm trying to automate Commish Execute (since our league does not want 24 hour review period) but I haven't had much luck yet.