Introduction
Welcome to the FantasyPros API.
This API documentation page was created with Slate.
Authentication
To authorize, use this code:
# With shell, you can just pass the correct header with each request
curl "api_endpoint_here"
-H "x-api-key: your_api_key_here"
Make sure to replace
your_api_key_herewith your API key.
FantasyPros uses API keys to allow access to the API. You can email us here about getting a FantasyPros API key.
FantasyPros expects for the API key to be included in all API requests to the server in a header that looks like the following:
x-api-key: your_api_key_here
ALL
News
curl "https://api.fantasypros.com/v2/json/all/news"
-H "x-api-key: your_api_key_here"
The above command returns JSON structured like this:
{
"sport": "ALL",
"title": "Fantasy Player News",
"description": "Breaking player news along with the impact for fantasy owners",
"count": 25,
"items": [
{
"id": 124079,
"created": "2017-07-20 21:06:22",
"created_formated": "Thu, Jul 20th 9:06pm UTC",
"team_id": "NYY",
"title": "Starlin Castro collects pair of hits in Yankees' loss",
"sport_id": "MLB",
"link": "http://www.fantasypros.com/mlb/news/124079/starlin-castro-collects-pair-hits-yankees-loss.php",
"desc": "Starlin Castro went 2-for-4 on Wednesday with a pair of singles during the Yankees' 6-1 loss to the Twins.<br><a href=\"http://www.fantasypros.com/mlb/news/124079/starlin-castro-collects-pair-hits-yankees-loss.php\" target=\"_blank\"><small>view fantasy impact »</small></a>"
}
]
}
Player News.
HTTP Request
GET https://api.fantasypros.com/v2/{format}/all/news
Optional Query Parameters
| Parameter | Default | Description |
|---|---|---|
| fpid | null | Filter results by FP player id. |
| limit | 25 | Number of news items returned. |
| category | null | Type of news items to show.'injury','recap','transaction','rumor','breaking' |
Articles
curl "https://api.fantasypros.com/v2/json/all/articles"
-H "x-api-key: your_api_key_here"
The above command returns JSON structured like this:
{
"title": "FantasyPros Latest Articles and Advice",
"page": "main",
"sport": "ALL",
"date": null,
"featured": null,
"premium": false,
"start": 0,
"totalArticleCount": 110,
"featuredCount": 0,
"articleCount": 10,
"nextArticle": 11,
"articles": [
{
"id": "article196107",
"sport": "all",
"type": "wp_post",
"timestamp": 1557757388,
"time_ago": "3 hrs ago",
"datetime": "2019-05-13 10:23:08 ET",
"title": "Fantasy Baseball Injury Report: Jose Altuve, David Price, Khris Davis",
"url": "https://www.fantasypros.com/2019/05/fantasy-baseball-injury-report-jose-altuve-david-price-khris-davis/",
"subtitle": "The injuries keep mounting as we move onto Week 7, and the fantasy baseball injury report is here to keep you updated as you set your lineups.\r\n\r\nJose Altuve (2B - HOU) had to be removed from Friday's game after straining his left hamstring Friday. He went on the 10-day injured list Sunday and does not have an official timetable set for his return. The Astros do not think this is a serious injury, so the return may be sooner rather than later. Altuve is typically a durable player, with this only being the second IL stint of his MLB career. Aledmys Diaz is set to see a push in playing time while Altuve is on the shelf.\r\n\r\nDavid Price (SP - BOS) was placed on the 10-day injured list May 6 with elbow tendinitis. He played catch this week and had a bullpen session Sunday. He is not expected to need a rehab start and should be able to return to the Red Sox either this weekend or early next week.\r\n\r\nKhris Davis (UT - OAK) has been dealing with a hip contusion since leaving May 5's game. He returned to the lineup Wednesday, but he had to leave from that game as well. After sitting the next three days, he started on Sunday and should be fine to use this week.\r\n\r\nHere are a few more injuries to track this week.\r\n\r\nImport your team to My Playbook for instant Lineup advice >>\r\n\r\nTyler Glasnow (SP - TB)\r\nGlasnow is expected to miss four-six weeks with a mild forearm strain. The early-season ace was placed on the 10-day injured list May 11, so may be able to return near mid-June at the earliest.\r\n\r\nMax Fried (SP - ATL)\r\nFried was hit with a ball Tuesday and had to exit the game. X-rays were negative, and he made his scheduled start Sunday at Arizona. He allowed three runs over five innings with seven strikeouts and a walk.\r\n\r\nBuster Posey (C - SF)\r\nPosey was placed on the seven-day injured list Thursday with a concussion. He does not currently have a set date for his return but is hopeful that he can still catch.\r\n\r\nNelson Cruz (UT - MIN)\r\nCruz left Sunday's game with a wrist injury and is currently listed as day-to-day pending the results of Monday's MRI.\r\n\r\nDee Gordon (2B - SEA)\r\nGordon has not played since getting hit by a pitch Thursday. He is currently listed as day-to-day with a wrist injury but is not expected to need a stint on the injured list.\r\n\r\nSteven Matz (SP - NYM)\r\nMatz, originally expected to only miss a few days, had tests May 6 that revealed radial nerve discomfort in his left arm. He was placed on the 10-day injured list May 9, retroactive to May 5. He does not currently have a return date set.\r\n\r\nFrancisco Mejia (C - SD)\r\nSan Diego placed Mejia on the 10-day injured list Saturday with a left knee sprain. He may be able to return when first eligible.\r\n\r\nVince Velasquez (SP - PHI)\r\nVelasquez was placed on the 10-day injured list Saturday with a forearm strain. He does not currently have a timetable to return.\r\n\r\nRyan Braun (1B/OF - MIL)\r\nBraun was not in the lineup this weekend because of hamstring tightness. He is currently listed as day-to-day.\r\n\r\nBrandon Belt (1B - SF)\r\nBelt had to leave Friday's game early due to inflammation in his right knee. Although he did not start over the weekend, he homered off the bench on Sunday.\r\nUpdating Previous Injuries\r\nChris Archer (SP - PIT): Thumb\r\nArcher, who has been dealing with thumb inflammation since April 27, threw a simulated game Friday and might be able to return this week.\r\n\r\nFernando Tatis (SS - SD): Hamstring\r\nTatis has been on the 10-day injured list since April 30 with a hamstring strain. He resumed baseball activities May 4 and could return sometime this week.\r\n\r\nWillians Astudillo (C - MIN): Hamstring\r\nAstudillo had been sidelined since April 28 before returning and batting leadoff on Sunday.\r\n\r\nAaron Hicks (OF - NYY): Back\r\nOn the injured list since March 28 with lower back stiffness, Hicks started a Triple-A rehab assignment Friday and is set to be activated Monday.\r\n\r\nImport your team to My Playbook for custom advice all season >>\r\n\r\n\r\nSubscribe: Apple Podcasts | Google Play | SoundCloud | Stitcher | TuneIn\r\n\r\nShane McDonald is a correspondent at FantasyPros. For more from Shane, check out his archive or follow him @coachshanemac.\r\n\r\nwindow.PLAYERCARDS_CONFIG={affiliateCode:\"fpros_cards\"};",
"author_img": "https://images.fantasypros.com/images/experts/shane-mcdonald-20180111.jpg",
"img": "https://cdn.fantasypros.com/wp-content/uploads/thumb_196107.jpg",
"author": "Shane McDonald",
"author_url": "/news/correspondents/shane-mcdonald.php",
"category": "Injuries",
"category_url": "/content/injuries/",
"featured": true
}
]
}
HTTP Request
GET https://api.fantasypros.com/v2/{format}/all/articles
Optional Query Parameters
| Parameter | Default | Description |
|---|---|---|
| date | null | Get articles published on a specific date. |
| image | false | Include link to article image. |
| featured | null | Remove featured articles if true. |
NFL
News
curl "https://api.fantasypros.com/v2/json/nfl/news"
-H "x-api-key: your_api_key_here"
The above command returns JSON structured like this:
{
"sport": "NFL",
"title": "Fantasy Player News",
"description": "Breaking Fantasy Football player news along with the impact for fantasy owners",
"count": 25,
"items": [
{
"id": 124070,
"created": "2017-07-20 20:37:45",
"created_formated": "Thu, Jul 20th 8:37pm UTC",
"team_id": "FA",
"title": "Dan Orlovsky signs with Rams",
"sport_id": "NFL",
"link": "http://www.fantasypros.com/nfl/news/124070/dan-orlovsky-signs-with-rams.php",
"desc": "ESPN's Adam Schefter is reporting free agent quarterback Dan Orlovsky has signed with the Los Angeles Rams on Thursday. <br><a href=\"http://www.fantasypros.com/nfl/news/124070/dan-orlovsky-signs-with-rams.php\" target=\"_blank\"><small>view fantasy impact »</small></a>"
}
]
}
Player News.
HTTP Request
GET https://api.fantasypros.com/v2/{format}/nfl/news
Optional Query Parameters
| Parameter | Default | Description |
|---|---|---|
| fpid | null | Filter results by FP player id. |
| limit | 25 | Number of news items returned. |
| category | null | Type of news items to show.'injury','recap','transaction','rumor','breaking' |
Players
curl "https://api.fantasypros.com/v2/json/nfl/players"
-H "x-api-key: your_api_key_here"
The above command returns JSON structured like this:
{
"sport": "NFL",
"count": 6174,
"season": "2017",
"week": "0",
"players": [
{
"player_id": 9603,
"player_name": "Tom Brady",
"short_name": "T. Brady",
"first_name": "Tom",
"last_name": "Brady",
"reverse_name": "Brady, Tom",
"position_id": "QB",
"positions": [
"QB"
],
"team_id": "NE",
"filename": "https://www.fantasypros.com/nfl/players/tom-brady.php",
"sportsdata_player_id": "41c44740-d0f6-44ab-8347-3b5d515e5ecf",
"image_url": "https://images.fantasypros.com/images/nfl/players/195x270/41c44740-d0f6-44ab-8347-3b5d515e5ecf-20140530.jpg",
"large_image_url": "https://images.fantasypros.com/images/nfl/players/250x250/41c44740-d0f6-44ab-8347-3b5d515e5ecf-20140530.jpg",
"square_image_url": "http://images.fantasypros.com/images/nfl/players/70x70/9603.jpg",
"rank_ecr": 35,
"rank_adp": 26,
"rank_ecr_ppr": 46,
"rank_adp_ppr": 37,
"rank_ecr_half": 39,
"birthdate": "1977-08-03",
"birthdatetime": 239414400,
"age": 39
}
]
}
Player details.
HTTP Request
GET https://api.fantasypros.com/v2/json/nfl/players
Optional Query Parameters
| Parameter | Default | Description |
|---|---|---|
| player | null | Filter results by FP player id. |
| updated | null | Filter players with information changes after specified date.YYYY-MM-DD |
| show | null | Show players position rank.pos_rank |
Player Points
curl "https://api.fantasypros.com/v2/json/nfl/{season}/player-points"
-H "x-api-key: your_api_key_here"
The above command returns JSON structured like this:
{
"season": "2016",
"scoring": "PPR",
"players": [
{
"player_id": 9691,
"player_name": "Demaryius Thomas",
"position_id": "WR",
"team_id": "DEN",
"games": 16,
"points": 136.3,
"average": 8.5,
"weeks": {
"1": 4.8,
"2": 11,
"3": 14,
"4": 15.4,
"5": 10.9,
"6": 1.5,
"7": 10,
"8": 7.9,
"9": 5.6,
"10": 14.7,
"12": 6,
"13": 6.1,
"14": 12.6,
"15": 9.1,
"16": 2,
"17": 4.7
}
}
]
}
Retrieve fantasy points scored by player.
HTTP Request
GET https://api.fantasypros.com/v2/json/nfl/{season}/player-points
Optional Query Parameters
| Parameter | Default | Description |
|---|---|---|
| start | null | Specify start week for a range of points. |
| end | null | Specify end week for a date range of points. |
| position | ALL | Filter players by position. |
| scoring | PPR | Scoring type.STD or PPR |
Targets
curl "https://api.fantasypros.com/v2/json/nfl/{season}/targets"
-H "x-api-key: your_api_key_here"
The above command returns JSON structured like this:
{
"season": "2016",
"players": [
{
"player_id": 9006,
"player_name": "Adrian Peterson",
"position_id": "RB",
"team_id": "NO",
"targets": {
"1": 2,
"2": 3,
"15": 1
}
},
{
"player_id": 9016,
"player_name": "Andre Johnson",
"position_id": "WR",
"team_id": "FA",
"targets": {
"1": 7,
"2": 2,
"3": 3,
"4": 5,
"5": 4,
"7": 2
}
}
]
}
Retrieve passing targets by player by week.
HTTP Request
GET https://api.fantasypros.com/v2/json/nfl/{season}/targets
Compare Players
curl "https://api.fantasypros.com/v2/json/nfl/compare-players/?players=9016:9020&position=WR"
-H "x-api-key: your_api_key_here"
The above command returns JSON structured like this:
{
"sport": "NFL",
"year": "2016",
"week": "17",
"position_id": "WR",
"ranking_type": "weekly",
"rankings": {
"STD": {
"9016": [
{
"expert_id": "65",
"rank": "81"
},
{
"expert_id": "109",
"rank": "87"
}
],
"9020": [
{
"expert_id": "666",
"rank": "65"
},
{
"expert_id": "145",
"rank": "72"
}
]
},
"PPR": {
"9016": [
{
"expert_id": "65",
"rank": "81"
},
{
"expert_id": "109",
"rank": "87"
}
],
"9020": [
{
"expert_id": "666",
"rank": "65"
},
{
"expert_id": "145",
"rank": "72"
}
]
}
}
}
Compare rankings for up to four players.
HTTP Request
GET https://api.fantasypros.com/v2/json/nfl/compare-players
Required Query Parameters
| Parameter | Description |
|---|---|
| players | Colon delimited string of two to four player ids.1234:56789:9101 |
| position | PositionQB,RB,WR,TE,K,DST,FLX |
Optional Query Parameters
| Parameter | Default | Description |
|---|---|---|
| experts | All Experts | Colon delimited string of expert ids.1234:56789:9101 |
| ranking_type | weekly | Specify type of rankings to comparedraft, ros, or weekly |
| details | false | Display player and/or expert details like player_name, player_team, etc.all, players, or experts |
Consensus Rankings
curl "https://api.fantasypros.com/v2/json/nfl/2017/consensus-rankings?position=ALL"
-H "x-api-key: your_api_key_here"
The above command returns JSON structured like this:
{
"sport": "NFL",
"type": "Preseason",
"year": "2017",
"week": "0",
"position_id": "ALL",
"scoring": "STD",
"filters": null,
"count": 396,
"total_experts": 44,
"last_updated": "7/11",
"players": [
{
"player_id": 13948,
"player_name": "David Johnson",
"player_team_id": "ARI",
"player_position_id": "RB",
"player_positions": "RB",
"player_page_url": "https://www.fantasypros.com/nfl/players/david-johnson-rb.php",
"player_image_url": "https://images.fantasypros.com/images/nfl/players/195x270/2c8670ae-0c23-4d20-9d2b-f4c3e25f8938-20160420.jpg",
"player_square_image_url": "https://images.fantasypros.com/images/nfl/players/70x70/13948.jpg",
"player_yahoo_id": "28474",
"cbs_player_id": "1760290",
"player_owned_avg": 100,
"player_owned_espn": "99.9",
"player_owned_yahoo": "100.0",
"player_bye_week": "8",
"rank_ecr": 1,
"rank_min": "1",
"rank_max": "2",
"rank_ave": "1.25",
"rank_std": "0.43",
"pos_rank": "RB1"
}
]
}
Expert Consensus Rankings
HTTP Request
GET https://api.fantasypros.com/v2/json/nfl/{season}/consensus-rankings
Required Query Parameters
| Parameter | Description |
|---|---|
| position | PositionALL,QB,RB,WR,TE,K,DST,FLX,IDP,DL,LB,DB |
Optional Query Parameters
| Parameter | Default | Description |
|---|---|---|
| experts | false | Show expert information like name and twitter handle.show |
| filters | null | White list of experts to get rankings for. Colon delimited string of expert ids.1234:5678:91011 |
| scoring | STD | Fantasy points scoring type.STD, PPR, HALF |
| type | Preseason/Weekly | Ranking type. Types include: Rest of season, Dynasty, Waiver Wire, and ADP.ROS, DK, WW, ADP |
| week | 0 | Week number. |
Projections
curl "https://api.fantasypros.com/v2/json/nfl/{season}/projections"
-H "x-api-key: your_api_key_here"
The above command returns JSON structured like this:
{
"season": "2017",
"week": "0",
"count": "171",
"positions": "QB,RB,WR,TE,DST,K",
"scoring": "STD",
"players": [
{
"fpid": 13948,
"mflid": null,
"name": "David Johnson",
"position_id": "RB",
"team_id": "ARI",
"stats": {
"points": 293.7,
"points_ppr": 369.24,
"points_half": 331.47,
"rush_att": 284.02,
"rush_yds": 1191.38,
"rush_tds": 12.72,
"rec_rec": 75.54,
"rec_yds": 780.2,
"rec_tds": 4.32,
"fumbles": 2.85,
"ret_tds": 0,
"2pt_tds": 0.4
}
},
{
"fpid": 11180,
"mflid": null,
"name": "Russell Wilson",
"position_id": "QB",
"team_id": "SEA",
"stats": {
"points": 20.64,
"pass_att": 30.11,
"pass_cmp": 19.94,
"pass_yds": 245.01,
"pass_tds": 1.93,
"pass_ints": 0.57,
"rush_att": 6.35,
"rush_yds": 34.91,
"rush_tds": 0.2,
"fumbles": 0.2,
"ret_tds": 0,
"2pt_tds": 0.2
}
},
{
"fpid": 9808,
"mflid": null,
"name": "Antonio Brown",
"position_id": "WR",
"team_id": "PIT",
"stats": {
"points": 15.41,
"points_ppr": 23.8,
"points_half": 19.61,
"rec_rec": 8.39,
"rec_yds": 115.69,
"rec_tds": 0.66,
"rush_att": 0.2,
"rush_yds": 1.19,
"rush_tds": 0,
"fumbles": 0.14,
"ret_tds": 0,
"2pt_tds": 0.1
}
},
{
"fpid": 11690,
"mflid": null,
"name": "Jordan Reed",
"position_id": "TE",
"team_id": "WAS",
"stats": {
"points": 9.78,
"points_ppr": 15.52,
"points_half": 12.65,
"rec_rec": 5.74,
"rec_yds": 62.87,
"rec_tds": 0.62,
"fumbles": 0.12,
"ret_tds": 0,
"2pt_tds": 0
}
},
{
"fpid": 9581,
"mflid": null,
"name": "Steven Hauschka",
"position_id": "K",
"team_id": "BUF",
"stats": {
"points": 8.34,
"fga": 1.59,
"fg": 2.02,
"xpt": 2.27
}
},
{
"fpid": 8040,
"mflid": null,
"name": "Carolina Panthers",
"position_id": "DST",
"team_id": "CAR",
"stats": {
"points": 9.34,
"def_sack": 2.5,
"def_int": 1.35,
"def_td": 0.24,
"def_pa": 18.93,
"def_tyda": 319,
"def_safety": 0.03,
"def_ff": 1.36,
"def_fr": 0.82,
"def_retd": 0
}
},
{
"fpid": 14059,
"mflid": null,
"name": "Kwon Alexander",
"position_id": "LB",
"team_id": "TB",
"stats": {
"points": 16.15,
"def_sack": 0.17,
"def_int": 0.03,
"def_td": 0.01,
"def_tackle": 7.84,
"def_assist": 2.7,
"def_safety": 0,
"def_ff": 0.1,
"def_fr": 0.1,
"def_pd": 0.45,
"def_tlost": 0
}
}
]
}
Player Projections.
HTTP Request
GET https://api.fantasypros.com/v2/json/nfl/{season}/projections
Optional Query Parameters
| Parameter | Default | Description |
|---|---|---|
| week | current week | Week number. Use week = 0 for preseason projections. |
| position | RB | Filter by position.'QB','RB','WR','TE','K','DST','IDP','DL','LB','DB' |
| positions | null | Filter by multiple positions at once. Colon delimited string of positions.QB:RB:WR:TE:DST:K |
| scoring | STD | Show projections for specific scoring type.STD, PPR, HALF |
| players | null | Show projections for specific players. Colon delimited string of player ids.1234:5678:91011 |
| filters | null | Show projections by specific experts. Colon delimited string of expert ids.1234:5678:91011 |
Articles
curl "https://api.fantasypros.com/v2/json/nfl/articles"
-H "x-api-key: your_api_key_here"
The above command returns JSON structured like this:
{
"title": "FantasyPros Latest Articles and Advice",
"page": "main",
"sport": "NFL",
"date": null,
"featured": null,
"premium": false,
"start": 0,
"totalArticleCount": 66,
"featuredCount": 3,
"articleCount": 10,
"nextArticle": 10,
"articles": [
{
"id": "article192563",
"sport": "nfl",
"type": "wp_post",
"timestamp": 1557756363,
"time_ago": "4 hrs ago",
"datetime": "2019-05-13 10:06:03 ET",
"title": "Building the Perfect Bench (Fantasy Football)",
"url": "https://www.fantasypros.com/2019/05/building-the-perfect-bench-fantasy-football/",
"subtitle": "There is a 0% chance that your starting lineup in Week 13 will be the same as your starting lineup in Week 1. Many things happen throughout the season that affect which players you start. Between trades, injuries, unexpected breakouts, unexpected failures, etc., your roster is constantly in flux. That is why it is crucial to construct your bench as optimally as possible. The focus will be on a standard starting roster with a six-player bench, but I will also touch on what adjustments to make for shorter or deeper benches.\r\n\r\nRegardless of roster size, your bench should almost exclusively be comprised of wide receivers and running backs. Since you have to start at least two of each compared to just one of the other positions, it is most imperative to ensure you have alternatives at WR and RB for all of the various reasons you may need to replace a starter.\r\n\r\nCheck out our PointsBet review and promo codes >>\r\n\r\nWRs and RBs\r\nYou want your WRs and RBs to be players that can conceivably take the job of one of your starters. Given the nature of the flex position and the flexibility it provides, every team should draft one safe \"plug and play\" backup. ...",
"author_img": "https://images.fantasypros.com/images/experts/jason-katz-20170426.jpg",
"img": "https://cdn.fantasypros.com/wp-content/uploads/thumb_192563.jpg",
"author": "Jason Katz",
"author_url": "/news/correspondents/jason-katz.php",
"category": "Draft Prep",
"category_url": "/content/draft-prep/",
"featured": true,
"feature_link": true
}
]
}
HTTP Request
GET https://api.fantasypros.com/v2/{format}/nfl/articles
Optional Query Parameters
| Parameter | Default | Description |
|---|---|---|
| date | null | Get articles published on a specific date. |
| image | false | Include link to article image. |
| featured | null | Remove featured articles if true. |
MLB
News
curl "https://api.fantasypros.com/v2/json/mlb/news"
-H "x-api-key: your_api_key_here"
The above command returns JSON structured like this:
{
"sport": "MLB",
"title": "Fantasy Player News",
"description": "Breaking Fantasy Baseball player news along with the impact for fantasy owners",
"count": 25,
"items": [
{
"id": 124079,
"created": "2017-07-20 21:06:22",
"created_formated": "Thu, Jul 20th 9:06pm UTC",
"team_id": "NYY",
"title": "Starlin Castro collects pair of hits in Yankees' loss",
"sport_id": "MLB",
"link": "http://www.fantasypros.com/mlb/news/124079/starlin-castro-collects-pair-hits-yankees-loss.php",
"desc": "Starlin Castro went 2-for-4 on Wednesday with a pair of singles during the Yankees' 6-1 loss to the Twins.<br><a href=\"http://www.fantasypros.com/mlb/news/124079/starlin-castro-collects-pair-hits-yankees-loss.php\" target=\"_blank\"><small>view fantasy impact »</small></a>"
}
]
}
Player News.
HTTP Request
GET https://api.fantasypros.com/v2/{format}/mlb/news
Optional Query Parameters
| Parameter | Default | Description |
|---|---|---|
| fpid | null | Filter results by FP player id. |
| MLBAMID | null | Filter restuls by MLBAMID. |
| limit | 25 | Number of news items returned. |
| category | null | Type of news items to show.'injury','recap','transaction','rumor','breaking' |
Players
curl "https://api.fantasypros.com/v2/json/mlb/players"
-H "x-api-key: your_api_key_here"
The above command returns JSON structured like this:
{
"sport": "MLB",
"count": 4202,
"season": "2017",
"week": "14",
"players": [
{
"player_id": 4293,
"player_name": "Bryce Harper",
"short_name": "B. Harper",
"first_name": "Bryce",
"last_name": "Harper",
"reverse_name": "Harper, Bryce",
"position_id": "RF",
"positions": [
"RF"
],
"team_id": "WSH",
"filename": "https://www.fantasypros.com/mlb/players/bryce-harper.php",
"sportsdata_player_id": "f3caeac6-343a-4a01-b5a3-85c5485c57cb",
"image_url": "https://images.fantasypros.com/images/mlb/players/195x270/f3caeac6-343a-4a01-b5a3-85c5485c57cb-20160421.jpg",
"large_image_url": "https://images.fantasypros.com/images/mlb/players/250x250/f3caeac6-343a-4a01-b5a3-85c5485c57cb-20160421.jpg",
"square_image_url": "https://images.fantasypros.com/images/mlb/players/70x70/4293.jpg",
"rank_ecr": 9,
"primary_position": "OF",
"yahoo_positions": "RF",
"yahoo_id": "8875",
"rotowire_id": "11036",
"espn_positions": "RF",
"cbs_positions": "RF",
"rts_positions": "RF",
"birthdate": "1992-10-16",
"age": 24,
"throw_hand": "R",
"bat_hand": "L",
"status": "A"
}
]
}
Player details.
HTTP Request
GET https://api.fantasypros.com/v2/json/mlb/players
Optional Query Parameters
| Parameter | Default | Description |
|---|---|---|
| player | null | Filter results by FP player id. |
| updated | null | Filter players with information changes after specified date.YYYY-MM-DD |
| show | null | Show players position rank.pos_rank |
Compare Players
curl "https://api.fantasypros.com/v2/json/mlb/compare-players/?players=4293:3785&position=ALL&ranking_type=draft"
-H "x-api-key: your_api_key_here"
The above command returns JSON structured like this:
{
"sport": "MLB",
"year": "2017",
"week": "0",
"position_id": "ALL",
"ranking_type": "draft",
"rankings": {
"draft": {
"3785": [
{
"expert_id": "135",
"rank": "1"
}
],
"4293": [
{
"expert_id": "135",
"rank": "10"
}
]
}
}
}
Compare rankings for up to four players.
HTTP Request
GET https://api.fantasypros.com/v2/json/mlb/compare-players
Required Query Parameters
| Parameter | Description |
|---|---|
| players | Colon delimited string of two to four player ids.1234:56789:9101 |
| position | PositionALL,1B,2B,3B,SS,C,OF,SP,RP,DH |
Optional Query Parameters
| Parameter | Default | Description |
|---|---|---|
| experts | All Experts | Colon delimited string of expert ids.1234:56789:9101 |
| ranking_type | weekly | Specify type of rankings to comparedraft, ros, or weekly |
| details | false | Display player and/or expert details like player_name, player_team, etc.all, players, or experts |
Closer Depth Charts
curl "https://api.fantasypros.com/v2/json/mlb/closer-depth-chart"
-H "x-api-key: your_api_key_here"
The above command returns JSON structured like this:
{
"season": "2017",
"stats_season": "2017",
"projections": "ros",
"teams": {
"ARI": {
"committee": 0,
"updated": "2017-06-20 16:28:19",
"players": [
{
"order": "0",
"player_id": 3354,
"name": "Fernando Rodney",
"handed": "R",
"projections": {
"ip": 30,
"sv": 6,
"k": 32,
"era": 4.17,
"whip": 1.3,
"bs": 2,
"hd": 4
},
"stats": {
"ip": 30,
"sv": 21,
"k": 34,
"era": 4.45,
"whip": 1.15,
"bs": 4,
"hd": 0
},
"job_security": "strong",
"committee": 0,
"player_status": ""
},
{
"order": "1",
"player_id": 4223,
"name": "Randall Delgado",
"handed": "R",
"projections": {
"ip": 28,
"sv": 0,
"k": 27,
"era": 3.19,
"whip": 1.18,
"bs": 0,
"hd": 4
},
"stats": {
"ip": 60,
"sv": 1,
"k": 56,
"era": 3.15,
"whip": 1.17,
"bs": 0,
"hd": 2
},
"job_security": "strong",
"committee": 0,
"player_status": ""
}
]
}
}
}
Retrieve the closer situation for all 30 MLB teams.
HTTP Request
GET https://api.fantasypros.com/v2/json/mlb/closer-depth-chart
Lineups
curl "https://api.fantasypros.com/v2/json/mlb/lineups"
-H "x-api-key: your_api_key_here"
The above command returns JSON structured like this:
{
"league_key": "",
"season": "2017",
"start": "2017-07-05",
"end": "2017-07-05",
"count": 1,
"games": [
{
"event_id": "11088a7c-fba2-44e5-833c-753fcb373d5b",
"status": "closed",
"weather": "Clear, 83 F, 10 mph",
"chance_rain": 0,
"weather_icon": "https://icons.wxug.com/i/c/k/clear.gif",
"temp": 83,
"wind": 10,
"wind_direction": 143,
"deg_offset": "90",
"teams": {
"NYY": {
"record": "44-38"
},
"TOR": {
"record": "38-45"
}
},
"away_probable_id": 4343,
"home_probable_id": 3753,
"hitters": {
"TOR": {
"1": {
"player_id": "3578",
"rank_vbr": 120,
"position": "RF"
},
"2": {
"player_id": "3883",
"rank_vbr": 291,
"position": "3B"
}
},
"NYY": {
"1": {
"player_id": "3124",
"rank_vbr": 90,
"position": "LF"
},
"2": {
"player_id": "4955",
"rank_vbr": 20,
"position": "RF"
}
}
},
"pitchers": {
"TOR": {
"player_id": "4343",
"rank_vbr": 510,
"record": "4-6"
},
"NYY": {
"player_id": "3753",
"rank_vbr": 155,
"record": "8-4"
}
}
}
]
}
Retrieve MLB lineup and pitcher information for a specified date range.
HTTP Request
GET https://api.fantasypros.com/v2/json/mlb/lineups
Optional Query Parameters
| Parameter | Default | Description |
|---|---|---|
| start | Today EST | Specify start date for a date range of lineups |
| end | Today EST +12 hours | Specify end date for a date range of lineups |
| period | REG | Season type ‘REG’ for regular season, ‘PST’ for postseason |
Projections
curl "https://api.fantasypros.com/v2/json/mlb/2017/projections"
-H "x-api-key: your_api_key_here"
The above command returns JSON structured like this:
{
"season": "2017",
"week": "14",
"date": "2017-07-03 - 2017-07-16",
"type": "weekly",
"position": "1B",
"position_name": "First Basemen",
"count": 88,
"player": [
{
"fpid": 3020,
"yahooid": "7859",
"name": "Adam Lind",
"ab": 20.33,
"hits": 6.52,
"1b": "4.003",
"2b": 1.25,
"3b": 0,
"runs": 3.53,
"hrs": 1.27,
"rbi": 4.69,
"bb": 2.61,
"ibb": 0,
"hbp": 0.04,
"sf": 0.3,
"sb": 0.01,
"cs": 0.03,
"so": 3.62,
"ave": ".321",
"obp": ".394",
"slg": ".569",
"ops": ".964",
"pa": 23.29
}
]
}
MLB Projections.
HTTP Request
GET https://api.fantasypros.com/v2/json/mlb/{season}/projections
Optional Query Parameters
| Parameter | Default | Description |
|---|---|---|
| fpIds | null | Whitelist players to return projections for. Colon delimited string of player ids.12345:6789 |
| type | preseason | Type of projections, rest of season, weekly, daily.ros, weekly, daily |
| date | today | Date of projections.YYYY-MM-DD |
| position | 1B | Position.H,P,1B,2B,3B,SS,OF,DH,SP,RP |
Articles
curl "https://api.fantasypros.com/v2/json/mlb/articles"
-H "x-api-key: your_api_key_here"
The above command returns JSON structured like this:
{
"title": "FantasyPros Latest Articles and Advice",
"page": "main",
"sport": "MLB",
"date": null,
"featured": null,
"premium": false,
"start": 0,
"totalArticleCount": 110,
"featuredCount": 0,
"articleCount": 10,
"nextArticle": 11,
"articles": [
{
"id": "article196122",
"sport": "mlb",
"type": "wp_post",
"timestamp": 1557760558,
"time_ago": "2 hrs ago",
"datetime": "2019-05-13 11:15:58 ET",
"title": "Pitcher's Exit Velocity: May Update (2019 Fantasy Baseball)",
"url": "https://www.fantasypros.com/2019/05/pitchers-exit-velocity-may-update-2019-fantasy-baseball/",
"subtitle": "When we take a look at Statcast numbers, certain ones apply to both hitters and pitchers. Barrels, for instance, are used to measure well-hit balls with a great exit velocity and launch angle. Swinging strikes, on the other hand, are more often examined when looking at a pitcher to see how many times he gets the opposition to swing and miss.\r\n\r\nWhen talking about exit velocity, we are typically looking at hitters, but results are also kept for pitchers. \r\n\r\nNow that numbers are starting to normalize, it's a good time to look at some of the top pitcher leaders in exit velocities. Because it is still early in the season, I'm going to set the results to 90 batted-ball events as the qualifier.\r\n\r\nLet's take a look at those who are allowing the hardest exit velocity (measured in mph) on average entering Monday.\r\n\r\nMike Leake - 91.9\r\n\r\nFelix Hernandez - 91.7\r\n\r\nTyler Mahle - 91.5\r\n\r\nDavid Hess - 91.3\r\n\r\nPatrick Corbin - 91.3\r\n\r\nReynaldo Lopez - 91.2\r\n\r\nHomer Bailey - 91.2\r\n\r\nMatt Harvey - 91.0\r\n\r\nCarlos Carrasco - 90.9\r\n\r\nAndrew Cashner - 90.8\r\n\r\nOverall, this list looks a lot like you'd think it would, with a lot of not-so-good pitchers on it. However, names like Corbin, Carrasco, and even Mahle -- who was worst before Sunday's start -- are surprising. \r\n\r\nSo, what are they doing to counter the hard-hit balls? \r\n\r\nBefore we take a look at their current doings this year, let's see how their present numbers compare to their 2018 results.\r\n\r\n2018 Mahle - 88.4\r\n\r\n2018 Corbin - 88.0\r\n\r\n2018 Carrasco - 89.1\r\n\r\nAll are higher this year, which could be a product of early numbers not quite setting yet.\r\n\r\nWhile Mahle is allowing a lot of hard-hit balls, he also has a higher ground-ball rate, which helps suppress them. Also working in his favor is his 28.8 percent fly-ball rate, which is the 15th-best mark in baseball. There's a lot to like about Mahle's peripherals, so I'm not worried about his high exit velocity\r\n\r\nCarrasco has been hurt by the fly ball, allowing eight home runs already this year, and his fly-ball rate is the sixth-highest in baseball at 47.1 percent. But his season-long line is a little skewed with his 4.91 ERA. He's actually sixth in baseball with the highest ERA/FIP differential at 1.41. Carrasco is striking guys out at a 33.3 percent clip, which is MLB's fourth-best mark, and he's been BABIP'd to death all season with his fifth-ranking .354.\r\n\r\nHe's allowing a lot of hard contact, and it's just finding all of the holes right now. Better days are ahead. ...",
"author_img": "https://images.fantasypros.com/images/experts/mwaterloo-20190117.jpg",
"img": "https://cdn.fantasypros.com/wp-content/uploads/thumb_196122.jpg",
"author": "Michael Waterloo",
"author_url": "/news/correspondents/michael-waterloo.php",
"category": "Stock Watch",
"category_url": "/content/stock-watch/",
"featured": true
}
]
}
HTTP Request
GET https://api.fantasypros.com/v2/{format}/mlb/articles
Optional Query Parameters
| Parameter | Default | Description |
|---|---|---|
| date | null | Get articles published on a specific date. |
| image | false | Include link to article image. |
| featured | null | Remove featured articles if true. |
NBA
News
curl "https://api.fantasypros.com/v2/json/nba/news"
-H "x-api-key: your_api_key_here"
The above command returns JSON structured like this:
{
"sport": "NBA",
"title": "Fantasy Player News",
"description": "Breaking Fantasy Basketball player news along with the impact for fantasy owners",
"count": 25,
"items": [
{
"id": 124055,
"created": "2017-07-20 17:49:11",
"created_formated": "Thu, Jul 20th 5:49pm UTC",
"team_id": "HOU",
"title": "Troy Williams agrees to three-year deal with Rockets",
"sport_id": "NBA",
"link": "http://www.fantasypros.com/nba/news/124055/troy-williams-agrees-to-three-year-deal-with-rockets.php",
"desc": "Troy Williams has agreed to a three-year deal with the Rockets on Thursday. The first year of the deal is guaranteed with the remaining years non-guaranteed. Williams joins a crowded backcourt with Ariza, Tucker and Mbah a Moute.<br><a href=\"http://www.fantasypros.com/nba/news/124055/troy-williams-agrees-to-three-year-deal-with-rockets.php\" target=\"_blank\"><small>view fantasy impact »</small></a>"
}
]
}
Player News.
HTTP Request
GET https://api.fantasypros.com/v2/{format}/nba/news
Optional Query Parameters
| Parameter | Default | Description |
|---|---|---|
| fpid | null | Filter results by FP player id. |
| limit | 25 | Number of news items returned. |
| category | null | Type of news items to show.'injury','recap','transaction','rumor','breaking' |
Players
curl "https://api.fantasypros.com/v2/json/nba/players"
-H "x-api-key: your_api_key_here"
The above command returns JSON structured like this:
{
"sport": "NBA",
"count": 1327,
"season": "2016",
"week": "0",
"players": [
{
"player_id": 2135,
"player_name": "Stephen Curry",
"short_name": "S. Curry",
"first_name": "Stephen",
"last_name": "Curry",
"reverse_name": "Curry, Stephen",
"position_id": "PG,SG",
"positions": [
"PG",
"SG"
],
"team_id": "GSW",
"filename": "https://www.fantasypros.com/nba/players/stephen-curry.php",
"sportsdata_player_id": "8ec91366-faea-4196-bbfd-b8fab7434795",
"image_url": "https://images.fantasypros.com/images/nba/players/195x270/8ec91366-faea-4196-bbfd-b8fab7434795-20161029.jpg",
"large_image_url": "https://images.fantasypros.com/images/nba/players/250x250/8ec91366-faea-4196-bbfd-b8fab7434795-20161029.jpg",
"square_image_url": "https://images.fantasypros.com/images/nba/players/70x70/2135.jpg",
"rank_ecr": 3,
"rank_adp": 3
}
]
}
Player details.
HTTP Request
GET https://api.fantasypros.com/v2/json/nba/players
Optional Query Parameters
| Parameter | Default | Description |
|---|---|---|
| player | null | Filter results by FP player id. |
| updated | null | Filter players with information changes after specified date.YYYY-MM-DD |
| show | null | Show players position rank.pos_rank |
Compare Players
curl "https://api.fantasypros.com/v2/json/nba/compare-players/?players=2331:2135&position=ALL&ranking_type=draft"
-H "x-api-key: your_api_key_here"
The above command returns JSON structured like this:
{
"sport": "NBA",
"year": "2017",
"week": "0",
"position_id": "ALL",
"ranking_type": "draft",
"rankings": {
"draft": {
"3785": [
{
"expert_id": "135",
"rank": "1"
}
],
"4293": [
{
"expert_id": "135",
"rank": "10"
}
]
}
}
}
Compare rankings for up to four players.
HTTP Request
GET https://api.fantasypros.com/v2/json/nba/compare-players
Required Query Parameters
| Parameter | Description |
|---|---|
| players | Colon delimited string of two to four player ids.1234:56789:9101 |
| position | PositionALL,PG,SG,SF,PF,G,F,C,SGF,PFC |
Optional Query Parameters
| Parameter | Default | Description |
|---|---|---|
| experts | All Experts | Colon delimited string of expert ids.1234:56789:9101 |
| ranking_type | weekly | Specify type of rankings to comparedraft, ros, or weekly |
| details | false | Display player and/or expert details like player_name, player_team, etc.all, players, or experts |
Consensus Rankings
curl "https://api.fantasypros.com/v2/json/nba/2017/consensus-rankings?position=ALL"
-H "x-api-key: your_api_key_here"
The above command returns JSON structured like this:
{
"sport": "NBA",
"type": "Draft",
"year": "2017",
"week": "0",
"position_id": "ALL",
"scoring": "roto",
"filters": null,
"count": 157,
"total_experts": 4,
"last_updated": "5/09",
"players": [
{
"player_id": 2343,
"player_name": "Russell Westbrook",
"player_team_id": "OKC",
"player_position_id": "G",
"player_positions": "PG",
"player_page_url": "https://www.fantasypros.com/nba/players/russell-westbrook.php",
"player_square_image_url": "https://images.fantasypros.com/images/nba/players/210x210/2343.jpg",
"player_image_url": "https://images.fantasypros.com/images/nba/players/210x210/2343.jpg",
"player_yahoo_id": "4390",
"player_cbs_id": "",
"rank_ecr": "1",
"rank_min": "1",
"rank_max": "2",
"rank_ave": "1.50",
"rank_std": "0.50"
}
]
}
Expert Consensus Rankings
HTTP Request
GET https://api.fantasypros.com/v2/json/nba/{season}/consensus-rankings
Required Query Parameters
| Parameter | Description |
|---|---|
| position | Position'ALL','PG','SG','SF','PF','G','F','C','SGF','PFC' |
Optional Query Parameters
| Parameter | Default | Description |
|---|---|---|
| experts | false | Show expert information like name and twitter handle.show |
| filters | null | White list of experts to get rankings for. Colon delimited string of expert ids.1234:5678:91011 |
| type | Preseason/Weekly | Ranking type. Types include: Rest of season, Dynasty, and ADP.ROS, DK ADP |
| week | 0 | Week number. |
Projections
curl "https://api.fantasypros.com/v2/json/nba/{season}/projections"
-H "x-api-key: your_api_key_here"
The above command returns JSON structured like this:
{
"season": "2017",
"week": "0",
"date": "",
"type": "preseason",
"position": "ALL",
"position_name": "Overall",
"count": 126,
"player": [
{
"fpid": 2135,
"yahooid": 4612,
"name": "Stephen Curry",
"points": 1973,
"rebounds": 360,
"assists": 532,
"blocks": 17,
"steals": 146,
"field_goals_pct": 0.473,
"free_throws_pct": 0.902,
"three_points_made": 323,
"games_played": 79,
"games_started": null,
"minutes": 2632,
"field_goals_made": 670,
"field_goals_att": 1434,
"field_goals_missed": null,
"three_points_att": 777,
"blocked_att": null,
"three_points_missed": null,
"free_throws_made": 327,
"free_throws_att": 363,
"free_throws_missed": null,
"offensive_rebounds": null,
"defensive_rebounds": null,
"turnovers": 228,
"personal_fouls": null,
"tech_fouls": null,
"flagrant_fouls": null,
"two_points_pct": null,
"three_points_pct": 0.407,
"assists_turnover_ratio": 2.47,
"two_points_made": null,
"two_points_att": null,
"two_points_missed": null,
"double_double": null,
"triple_double": null
}
]
}
Player Projections.
HTTP Request
GET https://api.fantasypros.com/v2/json/nba/{season}/projections
Optional Query Parameters
| Parameter | Default | Description |
|---|---|---|
| week | current week | Week number. Use week = 0 for preseason projections. |
| date | current date | Date used for daily projections. |
| position | All | Filter by position.'ALL', 'PG', 'SG', 'SF', 'PF', 'G', 'F', 'C' |
| type | preseason | Show projections for specific type.ros, daily, weekly |
| fpIds | null | Show projections for specific players. Comma delimited string of player ids.1234,5678,91011 |
| filters | null | Show projections by specific experts. Colon delimited string of expert ids.1234:5678:91011 |
Articles
curl "https://api.fantasypros.com/v2/json/nba/articles"
-H "x-api-key: your_api_key_here"
The above command returns JSON structured like this:
{
"title": "FantasyPros Latest Articles and Advice",
"page": "main",
"sport": "NBA",
"date": null,
"featured": null,
"premium": false,
"start": 0,
"totalArticleCount": 110,
"featuredCount": 0,
"articleCount": 10,
"nextArticle": 11,
"articles": [
{
"id": "article192692",
"sport": "nba",
"type": "dfs",
"timestamp": 1554925782,
"time_ago": "Wed, Apr 10",
"datetime": "2019-04-10 15:49:42 ET",
"title": "FanDuel NBA Lineup Advice: Wednesday (4/10)",
"url": "https://www.fantasypros.com/2019/04/fanduel-nba-lineup-advice-wednesday-april-10-premium/",
"subtitle": "Navigating the final day of the regular season will be a challenge, with so many starters resting, and several teams playing for next season. However, there are still battles for playoff spots going on even this late in the proceedings. These final suggestions focus, for the most part, on those teams still trying to climb a rung on the ladder. As usual, to provide a range of salaries, the combined total must be less than FanDuel's $60k budget; this week there is $1,300 to spare.\r\n\r\nCheck out today's NBA Shot from FanDuel >>\r\nPoint Guard\r\nDerrick White (SA): $6,600 vs. DAL\r\nWhite carries some risk given his salary, so there's a certain leap of faith in playing him. But he has a good matchup against the Mavericks and he is capable of scoring 20+ points. He could pleasantly surprise in this one.\r\n\r\nDevonte' Graham (CHA): $3,500 vs. ORL\r\nGraham has seen double-digit points two of his last four games, but a paltry two points in each of the other two. He is a bargain-bin lucky-dip who could pay off with the Hornets still pushing to get into the playoffs.\r\nShooting Guard\r\nKhris Middleton (MIL): $6,600 vs. OKC\r\nThe Bucks have the number one spot locked up, but Middleton should nonetheless see close to the 26 minutes and 22 points he has seen in his last three games, contributing to 33 FPTS per game.\r\n\r\nD'Angelo Russell (BKN): $8,800 vs. MIA\r\nRussell's turnaround this season has been a driving force for the Nets making the postseason. He's scored 20+ points in his last five games, averaging 25.8 points, with three double-doubles along the way.\r\nSmall Forward\r\nPaul George (OKC): $10,100 @ MIL\r\nThe Thunder are finding their form at just the right time, with the George-Westbrook combo clicking. This means big scoring from George, who has dropped 25+ points in seven of his last eight games, averaging 27.1 points over that span.\r\n\r\nRodney Hood (POR): $4,200 vs. SAC\r\nHood played well when filling in for CJ McCollum, but has seen his numbers taper off with McCollum's return. Yet he's seeing at least 20 minutes per game and could be featured closer to the 30-minute mark if the Blazers' choose to minimize risk to their starters heading into the playoffs.\r\nPower Forward\r\nAl-Farouq Aminu (POR): $5,500 vs. SAC\r\nAminu has averaged 39 FPTS in his two games, going just one point either side of that average. Even with C.J. McCollum returning, Aminu still contributed with a double-double in each of those two games.\r\n\r\nGeorges Niang (UTA): $3,600 @ LAC\r\nNiang is a dart throw that has a good chance of scoring. He's totaled 22 FPTS in his last two games, having suddenly seen 20+ minutes. He's capable enough if he gets the playing time to be a value play.\r\nCenter\r\nRudy Gobert (UTA): $10,400 @ LAC\r\nGobert has tallied nine consecutive double-doubles, averaging 18.7 points and 12.8 rebounds. He's averaged 45.7 FPTS over that span. He'll be just as involved the Jazz final game of the season.\r\n\r\nCreate FanDuel lineups using our DFS Lineup Optimizer tool >>\r\n\r\nJason Micklewright is a correspondent at FantasyPros. For more from Jason, check out his archive and follow him @FantasyPonder.\r\n\r\nwindow.PLAYERCARDS_CONFIG={affiliateCode:\"fpros_cards\"};",
"author_img": "//images.fantasypros.com/images/photo_missing_square.jpg",
"img": "https://cdn.fantasypros.com/wp-content/uploads/thumb_192692.jpg",
"author_url": "https://www.fantasypros.com/2019/04/fanduel-nba-lineup-advice-wednesday-april-10-premium/",
"author": "Jason Micklewright",
"category": "DFS",
"category_url": "/content/dfs/",
"featured": true,
"feature_link": true
}
]
}
HTTP Request
GET https://api.fantasypros.com/v2/{format}/nba/articles
Optional Query Parameters
| Parameter | Default | Description |
|---|---|---|
| date | null | Get articles published on a specific date. |
| image | false | Include link to article image. |
| featured | null | Remove featured articles if true. |
NHL
News
curl "https://api.fantasypros.com/v2/json/nhl/news"
-H "x-api-key: your_api_key_here"
The above command returns JSON structured like this:
{
"sport": "NHL",
"title": "Fantasy Player News",
"description": "Breaking Fantasy Hockey player news along with the impact for fantasy owners",
"count": 25,
"items": [
{
"id": 117513,
"created": "2017-05-23 13:57:06",
"created_formated": "Tue, May 23rd 1:57pm UTC",
"team_id": "NSH",
"title": "Pekka Rinne undisputed leader as Nashville advances to first Stanley Cup",
"sport_id": "NHL",
"link": "http://www.fantasypros.com/nhl/news/117513/pekka-rinne-undisputed-leader-nashville-advances-to-first-stanley-cup.php",
"desc": "Pekka Rinne stopped 38-of-41 shots-faced during Monday's 6-3 victory over the Anaheim Ducks in game-six of the Western Conference Finals. The Nashville Predators clinched the best-of-seven-game series and advanced to the Stanley Cup Finals for the first time in franchise history.\r\n<br><a href=\"http://www.fantasypros.com/nhl/news/117513/pekka-rinne-undisputed-leader-nashville-advances-to-first-stanley-cup.php\" target=\"_blank\"><small>view fantasy impact »</small></a>"
}
]
}
Player News.
HTTP Request
GET https://api.fantasypros.com/v2/{format}/nhl/news
Optional Query Parameters
| Parameter | Default | Description |
|---|---|---|
| fpid | null | Filter results by FP player id. |
| limit | 25 | Number of news items returned. |
| category | null | Type of news items to show.'injury','recap','transaction','rumor','breaking' |
Players
curl "https://api.fantasypros.com/v2/json/nhl/players"
-H "x-api-key: your_api_key_here"
The above command returns JSON structured like this:
{
"sport": "NHL",
"count": 2615,
"season": "2016",
"week": "0",
"players": [
{
"player_id": 15373,
"player_name": "Patrick Kane",
"short_name": "P. Kane",
"first_name": "Patrick",
"last_name": "Kane",
"reverse_name": "Kane, Patrick",
"position_id": "RW,F",
"positions": [
"RW",
"F"
],
"team_id": "CHI",
"filename": "https://www.fantasypros.com/nhl/players/patrick-kane.php",
"sportsdata_player_id": "42c33e34-0f24-11e2-8525-18a905767e44",
"image_url": "https://images.fantasypros.com/images/nhl/players/195x270/42c33e34-0f24-11e2-8525-18a905767e44-20160421.jpg",
"large_image_url": "https://images.fantasypros.com/images/nhl/players/250x250/42c33e34-0f24-11e2-8525-18a905767e44-20160421.jpg",
"square_image_url": "https://images.fantasypros.com/images/nhl/players/70x70/15373.jpg",
"rank_ecr": 1,
"rank_adp": 1
}
]
}
Player details.
HTTP Request
GET https://api.fantasypros.com/v2/json/nhl/players
Optional Query Parameters
| Parameter | Default | Description |
|---|---|---|
| player | null | Filter results by FP player id. |
| updated | null | Filter players with information changes after specified date.YYYY-MM-DD |
| show | null | Show players position rank.pos_rank |
Compare Players
curl "https://api.fantasypros.com/v2/json/nhl/compare-players/?players=2331:2135&position=ALL&ranking_type=draft"
-H "x-api-key: your_api_key_here"
The above command returns JSON structured like this:
{
"sport": "NHL",
"year": "2017",
"week": "0",
"position_id": "ALL",
"ranking_type": "draft",
"rankings": {
"draft": {
"3785": [
{
"expert_id": "135",
"rank": "1"
}
],
"4293": [
{
"expert_id": "135",
"rank": "10"
}
]
}
}
}
Compare rankings for up to four players.
HTTP Request
GET https://api.fantasypros.com/v2/json/nhl/compare-players
Required Query Parameters
| Parameter | Description |
|---|---|
| players | Colon delimited string of two to four player ids.1234:56789:9101 |
| position | PositionALL,C,LW,RW,D,G |
Optional Query Parameters
| Parameter | Default | Description |
|---|---|---|
| experts | All Experts | Colon delimited string of expert ids.1234:56789:9101 |
| ranking_type | weekly | Specify type of rankings to comparedraft, ros |
| details | false | Display player and/or expert details like player_name, player_team, etc.all, players, or experts |
Articles
curl "https://api.fantasypros.com/v2/json/nhl/articles"
-H "x-api-key: your_api_key_here"
The above command returns JSON structured like this:
{
"title": "FantasyPros Latest Articles and Advice",
"page": "main",
"sport": "NHL",
"date": null,
"featured": null,
"premium": false,
"start": 0,
"totalArticleCount": 131,
"featuredCount": 0,
"articleCount": 10,
"nextArticle": 12,
"articles": [
{
"id": "article192175",
"sport": "nhl",
"type": "dfs",
"timestamp": 1554400115,
"time_ago": "Thu, Apr 4",
"datetime": "2019-04-04 13:48:35 ET",
"title": "DraftKings NHL Lineup Advice: Thursday (4/4)",
"url": "https://www.fantasypros.com/2019/04/draftkings-nhl-lineup-advice-thursday-april-4/",
"subtitle": "The 2019 NHL playoffs are just about here, but there is still so much unknown about the playoffs, and these couple of final games will straighten it all out. The battle for the two wild-card spots in the East is still brewing with Carolina, Columbus, and Montreal all still fighting to get in. Also, supremacy in the Central division has yet to be settled with Winnipeg, Nashville, and St. Louis all still vying for the top spot. Let's take a look at what players are available for tonight's excitement-filled slate of games in the NHL.\r\nCenter\r\nBo Horvat (VAN): $6,200 @ NSH\r\nThis has been the best statistical season of Horvat's career scoring 27 goals and dishing out 32 helpers along the way. Vancouver is still a young team and has a lot of undeveloped talent that seems to have a very bright future ahead of them. ...",
"author_img": "//images.fantasypros.com/images/photo_missing_square.jpg",
"img": "https://cdn.fantasypros.com/wp-content/uploads/thumb_192175.jpg",
"author_url": "https://www.fantasypros.com/2019/04/draftkings-nhl-lineup-advice-thursday-april-4/",
"author": "Matthew Catalano",
"category": "DFS",
"category_url": "/content/dfs/",
"featured": true
}
]
}
HTTP Request
GET https://api.fantasypros.com/v2/{format}/nhl/articles
Optional Query Parameters
| Parameter | Default | Description |
|---|---|---|
| date | null | Get articles published on a specific date. |
| image | false | Include link to article image. |
| featured | null | Remove featured articles if true. |
PGA
News
curl "https://api.fantasypros.com/v2/json/pga/news"
-H "x-api-key: your_api_key_here"
The above command returns JSON structured like this:
{
"sport": "PGA",
"title": "Fantasy Player News",
"description": "Breaking player news along with the impact for fantasy owners",
"count": 21,
"items": [
{
"id": 213055,
"created": "2019-05-10 18:24:25",
"created_formated": "Fri, May 10th 6:24pm UTC",
"author": "Nic Turner",
"player_id": 30731,
"team_id": "",
"title": "Sung Kang fires a 61 in round two to tie the course record",
"sport_id": null,
"link": "http://www.fantasypros.com//news/213055/sung-kang-fires-61-round-two-to-tie-course-record.php",
"desc": "Sung Kang shot a remarkable 10-under-par Friday to tie Marc Leishmans'course record set at Trinity Woods Golf Club last year. Kang is currently sitting in first place at -16, and has now started the tournament with rounds of 65 and 61.<br><a href=\"http://www.fantasypros.com//news/213055/sung-kang-fires-61-round-two-to-tie-course-record.php\" target=\"_blank\"><small>view fantasy impact »</small></a>"
},
]
}
Player News.
HTTP Request
GET https://api.fantasypros.com/v2/{format}/pga/news
Optional Query Parameters
| Parameter | Default | Description |
|---|---|---|
| fpid | null | Filter results by FP player id. |
| limit | 25 | Number of news items returned. |
| category | null | Type of news items to show.'injury','recap','transaction','rumor','breaking' |
Articles
curl "https://api.fantasypros.com/v2/json/pga/articles"
-H "x-api-key: your_api_key_here"
The above command returns JSON structured like this:
{
"title": "FantasyPros Latest Articles and Advice",
"page": "main",
"sport": "PGA",
"date": null,
"featured": null,
"premium": false,
"start": 0,
"totalArticleCount": 34,
"featuredCount": 0,
"articleCount": 10,
"nextArticle": 10,
"articles": [
{
"id": "article195731",
"sport": "pga",
"type": "dfs",
"timestamp": 1557320622,
"time_ago": "5 days ago",
"datetime": "2019-05-08 09:03:42 ET",
"title": "FanDuel PGA Preview: Byron Nelson Open",
"url": "https://www.fantasypros.com/2019/05/fanduel-pga-preview-byron-nelson-open/",
"subtitle": "The next major is right around the corner and FanDuel already has their prices up on the site for those of us that can't wait. Before we get to select Tiger's name, we have to get through the AT&T Byron Nelson. This is not a great field and we are probably destined for our third straight unknown winning (C.T. Pan and Max Homa the last two events). Whether or not the event is good or bad, we still get DFS and that means somebody has to win so why not it be one of us? FanDuel has a variety of decent contests this week ranging from $0.60 GPPs to single entries ...",
"author_img": "//images.fantasypros.com/images/photo_missing_square.jpg",
"img": "https://cdn.fantasypros.com/wp-content/uploads/thumb_195731.jpg",
"author": "Jamy Bechler",
"author_url": "/news/correspondents/jamy-bechler.php",
"category": "DFS",
"category_url": "/content/dfs/",
"featured": true
}
]
}
HTTP Request
GET https://api.fantasypros.com/v2/{format}/pga/articles
Optional Query Parameters
| Parameter | Default | Description |
|---|---|---|
| date | null | Get articles published on a specific date. |
| image | false | Include link to article image. |
| featured | null | Remove featured articles if true. |