{"id":14068842,"url":"https://github.com/k5cents/fflr","last_synced_at":"2026-02-19T20:35:18.159Z","repository":{"id":194349461,"uuid":"209177645","full_name":"k5cents/fflr","owner":"k5cents","description":"Get ESPN fantasy football data in R","archived":false,"fork":false,"pushed_at":"2025-08-10T20:11:02.000Z","size":5883,"stargazers_count":28,"open_issues_count":8,"forks_count":8,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-10-22T04:54:37.584Z","etag":null,"topics":["espn","fantasy-football"],"latest_commit_sha":null,"homepage":"https://k5cents.github.io/fflr/","language":"R","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/k5cents.png","metadata":{"files":{"readme":"README.Rmd","changelog":"NEWS.md","contributing":".github/CONTRIBUTING.md","funding":null,"license":"LICENSE.md","code_of_conduct":".github/CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":".github/SUPPORT.md","governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2019-09-17T23:53:07.000Z","updated_at":"2025-10-06T09:28:54.000Z","dependencies_parsed_at":null,"dependency_job_id":"2f581edb-4a65-44f8-8af1-094137d50590","html_url":"https://github.com/k5cents/fflr","commit_stats":null,"previous_names":["kiernann/fflr","k5cents/fflr"],"tags_count":10,"template":false,"template_full_name":null,"purl":"pkg:github/k5cents/fflr","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/k5cents%2Ffflr","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/k5cents%2Ffflr/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/k5cents%2Ffflr/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/k5cents%2Ffflr/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/k5cents","download_url":"https://codeload.github.com/k5cents/fflr/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/k5cents%2Ffflr/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29630839,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-19T18:02:07.722Z","status":"ssl_error","status_checked_at":"2026-02-19T18:01:46.144Z","response_time":117,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["espn","fantasy-football"],"created_at":"2024-08-13T07:06:26.124Z","updated_at":"2026-02-19T20:35:18.131Z","avatar_url":"https://github.com/k5cents.png","language":"R","funding_links":[],"categories":["R"],"sub_categories":[],"readme":"---\noutput: github_document\neditor_options: \n  chunk_output_type: console\n---\n\n\u003c!-- README.md is generated from README.Rmd. Please edit that file --\u003e\n\n```{r include = FALSE}\nknitr::opts_chunk$set(\n  collapse = TRUE,\n  warning = FALSE,\n  message = FALSE,\n  error = FALSE,\n  comment = \"#\u003e\",\n  fig.path = \"man/figures/README-\",\n  fig.height = 4,\n  fig.width = 9,\n  out.width = \"100%\",\n  dpi = 300\n)\nif (!interactive()) {\n  options(width = 99)\n}\n```\n\n# fflr \u003cimg src=\"man/figures/logo.png\" align=\"right\" width=\"120\" /\u003e\n\n\u003c!-- badges: start --\u003e\n[![Lifecycle: experimental][life_badge]][life_link]\n[![CRAN status][cran_badge]][cran_link]\n![Downloads][dl_badge]\n[![Codecov test coverage][cov_badge]][cov_link]\n[![R build status][ga_badge]][ga_link]\n\u003c!-- badges: end --\u003e\n\nThe fflr package is used to query the [ESPN Fantasy Football API][api]. Get data\non fantasy football league members, teams, and individual athletes.\n\nThis package has been tested with a narrow subset of possible league settings.\nIf a function doesn't work as intended, please file an [issue on GitHub][iss].\n\n## Installation\n\n\u003e [!IMPORTANT]  \n\u003e As of 2024-05-17, fflr was removed from [CRAN][cran] for failure to comply\nwith the policy on internet resources. This issue arose when ESPN changed their\nAPI format and adjusted endpoints to account for the end of the 2023 NFL season.\nI hope to work with CRAN to get the package published again before the 2024\nseason, but it may not be possible.\n\n\u003e [!IMPORTANT]  \n\u003e As of 2025-08-01, ESPN has changed their API to restrict access to historical\ndata previously obtained via the `leagueHistory = TRUE` argument. Now you must\nsign into ESPN via your web browser and copy the \"espn_s2\" cookie using the\ninspect element tools. That cookie can then be passed to `ffl_api()` by\nproviding the `cookie` argument to any function with the `...` argument.\n\nThe most recent development version can always be installed from [GitHub][gh]:\n\n```{r remote, eval=FALSE}\n# install.packages(\"remotes\")\nremotes::install_github(\"k5cents/fflr\")\n```\n\n## Usage\n\n```{r library-fflr}\nlibrary(fflr)\npackageVersion(\"fflr\")\n```\n\nData is only available for public leagues. See [this help page][help] on how to\nmake a private league public\n\nFunctions require a unique `leagueId`, which can be found in any ESPN page URL.\n\n\u003cpre\u003ehttps://fantasy.espn.com/football/league?leagueId=\u003cb\u003e42654852\u003c/b\u003e\u003c/pre\u003e\n\nUse `ffl_id()` to set a default `fflr.leagueId` option. Your `.Rprofile` file \ncan [set this option on startup][rprof].\n\n```{r rm-opt, echo=FALSE}\noptions(fflr.leagueId = NULL)\n```\n\n```{r ffl-id, message=TRUE}\nffl_id(leagueId = \"42654852\")\n```\n\nThe `leagueId` argument defaults to `ffl_id()` and can be omitted once set.\n\n```{r league-teams}\nleague_info()\nleague_teams()\n```\n\nThe `scoringPeriodId` argument can be used to get data from past weeks.\n\n```{r team-roster}\nall_rost \u003c- team_roster(scoringPeriodId = 1)\nall_rost$CHI[, 5:13][-7]\n```\n\nThere are included objects for NFL teams and players.\n\n```{r nfl-players}\nnfl_teams\n```\n\n\u003e [!NOTE]  \n\u003e The fflr project is released with a [Contributor Code of Conduct][coc]. By\ncontributing, you agree to abide by its terms.\n\n\u003c!-- refs: start --\u003e\n[life_badge]: https://img.shields.io/badge/lifecycle-stable-brightgreen.svg\n[life_link]: https://lifecycle.r-lib.org/articles/stages.html#stable\n[cran_badge]: https://www.r-pkg.org/badges/version/fflr\n[cran_link]: https://CRAN.R-project.org/package=fflr\n[ga_badge]: https://github.com/k5cents/fflr/workflows/R-CMD-check/badge.svg\n[ga_link]: https://github.com/k5cents/fflr/actions\n[cov_badge]: https://codecov.io/gh/k5cents/fflr/graph/badge.svg?token=CMz6DIxJdH\n[cov_link]: https://app.codecov.io/gh/k5cents/fflr?branch=master\n[dl_badge]: https://cranlogs.r-pkg.org/badges/grand-total/fflr\n[api]: https://lm-api-reads.fantasy.espn.com/apis/v3/games/ffl/\n[iss]: https://github.com/k5cents/fflr/issues\n[cran]: https://cran.r-project.org/package=fflr\n[gh]: https://github.com/k5cents/fflr\n[coc]: https://k5cents.github.io/fflr/CODE_OF_CONDUCT.html\n[help]: https://web.archive.org/web/20211105212446/https://support.espn.com/hc/en-us/articles/360000064451-Making-a-Private-League-Viewable-to-the-Public\n[rprof]: https://stat.ethz.ch/R-manual/R-devel/library/base/html/Startup.html\n\u003c!-- refs: end --\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fk5cents%2Ffflr","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fk5cents%2Ffflr","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fk5cents%2Ffflr/lists"}