[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"doc-seo-400397-105":3,"detail-sidebar-cat-0-en-105":81,"doc-detail-400397-en":131,"doc-similar-400397":163},{"code":4,"msg":5,"data":6},0,"ok",{"site_id":7,"language":8,"slug":9,"title":10,"keywords":11,"description":12,"schema_data":13,"social_meta":74,"head_meta":76,"extra_data":78,"updated_unix":80},105,"en","flexible-client-for-the-financial-modeling-prep-api-r-package-documentation","Flexible Client for the 'Financial Modeling Prep' API - R package documentation","","Flexible client for the Financial Modeling Prep API (package fmpapi) providing an interface to financial data through all available endpoints and parameters. Includes functions to retrieve processed financial statements, historical market data, stock lists, and company profiles via fmp_get, returning data frames with optional snake_case column conversion. Provides fmp_set_api_key to collect the user’s API key, store it in a .Renviron file, and load environment variables for immediate use.",{"@graph":14,"@context":73},[15,34,56],{"@type":16,"itemListElement":17},"BreadcrumbList",[18,23,27,31],{"item":19,"name":20,"@type":21,"position":22},"https://docshare.wps.com","Home","ListItem",1,{"item":24,"name":25,"@type":21,"position":26},"https://docshare.wps.com/document/","Document",2,{"item":28,"name":29,"@type":21,"position":30},"https://docshare.wps.com/document/technology/","Technology",3,{"item":32,"name":10,"@type":21,"position":33},"https://docshare.wps.com/document/flexible-client-for-the-financial-modeling-prep-api-r-package-documentation/400397/",4,{"url":32,"name":10,"@type":35,"image":36,"author":41,"headline":10,"publisher":44,"fileFormat":47,"inLanguage":8,"description":12,"dateModified":48,"datePublished":49,"encodingFormat":47,"isAccessibleForFree":50,"interactionStatistic":51},"DigitalDocument",{"url":37,"@type":38,"width":39,"height":40},"https://docshare.wps.com/thumbnails/flexible-client-for-the-financial-modeling-prep-api-r-package-documentation/400397.png","ImageObject",300,407,{"name":42,"@type":43},"asba","Person",{"url":19,"name":45,"@type":46},"DocShare","Organization","application/pdf","2026-11-30","2026-09-27",true,{"@type":52,"interactionType":53,"userInteractionCount":55},"InteractionCounter",{"@type":54},"ViewAction",16,{"@type":57,"mainEntity":58},"FAQPage",[59,65,69],{"name":60,"@type":61,"acceptedAnswer":62},"What does fmp_get retrieve from the Financial Modeling Prep API?","Question",{"text":63,"@type":64},"It fetches financial data such as balance sheet statements, income statements, cash flow statements, historical market data, stock lists, and company profiles.","Answer",{"name":66,"@type":61,"acceptedAnswer":67},"How do I use fmp_get to specify which API resource to query?",{"text":68,"@type":64},"Provide the resource argument with the API resource name (e.g., \"balance-sheet-statement\", \"income-statement\", \"cash-flow-statement\", \"profile\", or \"stock/list\"). Optionally add symbol and params to refine the request.",{"name":70,"@type":61,"acceptedAnswer":71},"How does fmp_set_api_key store and activate the API key?",{"text":72,"@type":64},"It prompts for the Financial Modeling Prep API key and saves it to a .Renviron file in either the project directory or the home directory, with an option to add .Renviron to .gitignore for security. It then reads the .Renviron file so environment variables are available immediately, and starting a new R session is recommended.","https://schema.org",{"og:url":32,"og:type":75,"og:title":10,"og:site_name":45,"og:description":12},"article",{"robots":77,"canonical":32},"index,follow",{"doc_id":79,"site_id":7},400397,1790534486,{"code":4,"msg":82,"data":83},"success",[84,88,92,96,101,105,110,115,120,123,127],{"id":22,"doc_module":4,"doc_module_name":25,"category_name":85,"show_sort_weight":86,"slug":87},"Story & Novel",90,"story-novel",{"id":26,"doc_module":4,"doc_module_name":25,"category_name":89,"show_sort_weight":90,"slug":91},"Literature",80,"literature",{"id":33,"doc_module":4,"doc_module_name":25,"category_name":93,"show_sort_weight":94,"slug":95},"Exam",70,"exam",{"id":97,"doc_module":4,"doc_module_name":25,"category_name":98,"show_sort_weight":99,"slug":100},5,"Comic",60,"comic",{"id":102,"doc_module":4,"doc_module_name":25,"category_name":29,"show_sort_weight":103,"slug":104},6,50,"technology",{"id":106,"doc_module":4,"doc_module_name":25,"category_name":107,"show_sort_weight":108,"slug":109},7,"Healthcare",40,"healthcare",{"id":111,"doc_module":4,"doc_module_name":25,"category_name":112,"show_sort_weight":113,"slug":114},8,"Research & Report",30,"research-report",{"id":116,"doc_module":4,"doc_module_name":25,"category_name":117,"show_sort_weight":118,"slug":119},9,"Religion & Spirituality",20,"religion-spirituality",{"id":118,"doc_module":4,"doc_module_name":25,"category_name":121,"show_sort_weight":118,"slug":122},"World Cup","world-cup",{"id":124,"doc_module":4,"doc_module_name":25,"category_name":125,"show_sort_weight":124,"slug":126},10,"Lifestyle","lifestyle",{"id":128,"doc_module":4,"doc_module_name":25,"category_name":129,"show_sort_weight":97,"slug":130},19,"General","general",{"code":4,"msg":82,"data":132},{"doc_id":79,"user_id":133,"nickname":42,"user_avatar":134,"doc_module":4,"category_id":102,"category_name":29,"doc_title":10,"doc_description":12,"doc_content":135,"file_id":136,"file_url":137,"file_type":138,"file_size":139,"view_count":55,"is_deleted":4,"is_public":22,"is_downloadable":22,"audit_status":22,"page_count":97,"language":140,"language_code":8,"site_id":7,"html_lang":8,"table_of_contents":141,"faqs":142,"seo_title":143,"seo_description":12,"update_tm":144,"read_time":145,"preview_page_count":33,"preview_urls":146},3985747872567,"https://ap-avatar.wpscdn.com/davatar_276721f389ce27ea32af1340a28f341c","Package ‘fmpapi’  \nMay 8, 2026  \nType Package  \nTitle Flexible Client for the 'Financial Modeling Prep' API Version 1.0.1  \nDescription Provides a flexible interface to the 'Financial Modeling Prep' API  \n\u003C[https://site.financialmodelingprep.com/developer/docs](https://site.financialmodelingprep.com/developer/docs)>. The package  \nsupports all available endpoints and parameters, enabling R users  \nto interact with a wide range of financial data.  \nLicense MIT + file LICENSE Encoding UTF-8 RoxygenNote 7.3.3 Depends R (>= 4.1)  \nImports httr2 (>= 1.0.0), dplyr (>= 1.0.0), cli (>= 1.0.0)  \nSuggests spelling, testthat (>= 3.0.0) URL [https://github.com/tidy-finance/r-fmpapi](https://github.com/tidy-finance/r-fmpapi),  \n[https://tidy-finance.github.io/r-fmpapi/](https://tidy-finance.github.io/r-fmpapi/)  \nBugReports [https://github.com/tidy-finance/r-fmpapi/issues](https://github.com/tidy-finance/r-fmpapi/issues)  \nConfig/testthat/edition 3 Language en-US NeedsCompilation no  \nAuthor Christoph Scheuch [aut, cre, cph](ORCID:  \n\u003C[https://orcid.org/0009-0004-0423-6819](https://orcid.org/0009-0004-0423-6819)>)  \nMaintainer Christoph Scheuch \u003C[christoph@tidy-intelligence.com](christoph@tidy-intelligence.com)> Repository CRAN  \nDate/Publication 2026-04-09 16:30:02 UTC  \nContents  \nfmp_get ........................................... 2  \nfmp_set_api_key ...................................... 3  \nIndex 5  \n2 fmp_get  \n\n| fmp_get | Retrieve Financial Data from the Financial Modeling Prep (FMP) API |\n| --- | --- |\n\nDescription  \nThis function fetches financial data from the FMP API, including balance sheet statements, income  \nstatements, cash flow statements, historical market data, stock lists, and company profiles.  \nUsage  \nfmp_get(  \nresource,  \nsymbol = NULL,  \nparams = list(),  \napi_version = \"stable\",  \nsnake_case = TRUE)  \nArguments  \nresource A string indicating the API resource to query. Examples include \"balance-sheet-statement\",  \n\"income-statement\", \"cash-flow-statement\", \"historical-market-capitalization\",\"profile\", and \"stock/list\".  \nsymbol A string specifying the stock ticker symbol (optional) .  \nparams List of additional arguments to customize the query (optional) .  \napi_version A string specifying the version of the FMP API to use. Defaults to \"v3\".  \nsnake_case A boolean indicating whether column names are converted to snake_case. De  \nfaults to TRUE.  \nValue  \nA data frame containing the processed financial data.  \nExamples  \n\\#\\# Not run:  \n\\# Get available balance sheet statements  \nfmp_get(  \nresource = \"balance-sheet-statement\",  \nsymbol = \"AAPL\")  \n\\# Get last income statements  \nfmp_get(  \nresource = \"income-statement\",  \nsymbol = \"AAPL\",  \nparams = list(limit = 1)  \nfmp_set_api_key 3  \n)  \n\\# Get annual cash flow statements  \nfmp_get(  \nresource = \"cash-flow-statement\",  \nsymbol = \"AAPL\",  \nparams = list(period = \"annual\"))  \n\\# Get historical market capitalization  \nfmp_get(  \nresource = \"historical-market-capitalization\",  \nsymbol = \"UNH\",  \nparams = list(from = \"2023-12-01\", to = \"2023-12-31\"))  \n\\# Get stock list  \nfmp_get(  \nresource = \"stock/list\")  \n\\# Get company profile  \nfmp_get(  \nresource = \"profile\", symbol = \"AAPL\")  \n\\# Search for stock information  \nfmp_get(  \nresource = \"search\", params = list(query = \"AAP\"))  \n\\# Get data with original column names  \nfmp_get(  \nresource = \"profile\", symbol = \"AAPL\", snake_case = FALSE)  \n\\#\\# End(Not run)  \n\n| fmp_set_api_key | Set the Financial Modeling Prep API key |\n| --- | --- |\n\nDescription  \nThis function prompts the user to input their Financial Modeling Prep (FMP) API key and saves it to a .Renviron file, either in the project directory or the home directory. It also gives the user the option to add .Renviron to .gitignore for security purposes.  \nUsage  \nfmp_set_api_key()  \n4 fmp_set_api_key  \nValue  \nInvisibly returns TRUE after saving the key or aborting the operation. The function will read the.Renviron file after saving, allowing the environment va","cbCaii3aTruW6IbW","https://ap.wps.com/l/cbCaii3aTruW6IbW","pdf",78356,"English","# fmp_get\n## Retrieve Financial Data from the Financial Modeling Prep (FMP) API\n# fmp_set_api_key\n## Set the Financial Modeling Prep API key\n# Index","[{\"question\":\"What does fmp_get retrieve from the Financial Modeling Prep API?\",\"answer\":\"It fetches financial data such as balance sheet statements, income statements, cash flow statements, historical market data, stock lists, and company profiles.\"},{\"question\":\"How do I use fmp_get to specify which API resource to query?\",\"answer\":\"Provide the resource argument with the API resource name (e.g., \\\"balance-sheet-statement\\\", \\\"income-statement\\\", \\\"cash-flow-statement\\\", \\\"profile\\\", or \\\"stock/list\\\"). Optionally add symbol and params to refine the request.\"},{\"question\":\"How does fmp_set_api_key store and activate the API key?\",\"answer\":\"It prompts for the Financial Modeling Prep API key and saves it to a .Renviron file in either the project directory or the home directory, with an option to add .Renviron to .gitignore for security. It then reads the .Renviron file so environment variables are available immediately, and starting a new R session is recommended.\"}]","Flexible Client for the 'Financial Modeling Prep' API - R package documentation | PDF",1790510935,13,[147,151,155,159],{"page_no":22,"url":148,"width":149,"height":150},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-16/88b43b1634a38cdbd9e9fb025cf98eeb.webp",983,1272,{"page_no":26,"url":152,"width":153,"height":154},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-16/68ebbcb47cadaeb11321a7fd766257e1.webp",982,1270,{"page_no":30,"url":156,"width":157,"height":158},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-16/1d39a42e9ee717b59e73bf509dc0b92d.webp",981,1269,{"page_no":33,"url":160,"width":161,"height":162},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-16/7f5475a38e89da4d9a094b94d0e586e4.webp",980,1268,{"list":164,"token":11},[165,171,177,183,189,195,202,208,214,220],{"doc_id":166,"doc_title":167,"file_type":138,"home_preview_img_url":168,"slug":169,"view_count":145,"category_name":29,"create_tm":170},400395,"Access to the 'FMP Cloud' and 'Financial Modeling Prep' API - Version 0.1.7 - R package","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229919688286/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111339&Signature=BrZIsGt%2FGNmKZl0av4pNHaEEGRg%3D","access-to-the-fmp-cloud-and-financial-modeling-prep-api-version-017-r-package",1790510931,{"doc_id":172,"doc_title":173,"file_type":138,"home_preview_img_url":174,"slug":175,"view_count":26,"category_name":29,"create_tm":176},735280,"Chapter3 - Code Lists - Workforce Now API Inventory","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230034100767/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111339&Signature=dgYtCIDERgNOVGh4MNAVt4Z6IyI%3D","chapter3-code-lists-workforce-now-api-inventory",1795456075,{"doc_id":178,"doc_title":179,"file_type":138,"home_preview_img_url":180,"slug":181,"view_count":33,"category_name":29,"create_tm":182},699383,"Perform and Display Google Trends Queries - Interface for Retrieving and Displaying Google Trends Data","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230010933911/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111339&Signature=FBNxoNXDl9Q6mDEwemMObo%2FUlsQ%3D","perform-and-display-google-trends-queries-interface-for-retrieving-and-displaying-google-trends-data",1794466096,{"doc_id":184,"doc_title":185,"file_type":138,"home_preview_img_url":186,"slug":187,"view_count":97,"category_name":29,"create_tm":188},638832,"FIRMS-FSC10 8d ICES to FIRMS Webservices - ICES web services overview","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229970221287/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111339&Signature=xsq6%2FiHbsSKImjJtnP8AAYnjcxE%3D","firms-fsc10-8d-ices-to-firms-webservices-ices-web-services-overview",1792700024,{"doc_id":190,"doc_title":191,"file_type":138,"home_preview_img_url":192,"slug":193,"view_count":26,"category_name":29,"create_tm":194},719665,"Missing Data Imputation via Language Models and Statistics - v0.1.0","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230023927791/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111339&Signature=bYSB4zxqgxOm9kn%2FSNe6JvAgQHk%3D","missing-data-imputation-via-language-models-and-statistics-v010",1795010754,{"doc_id":196,"doc_title":197,"file_type":138,"home_preview_img_url":198,"slug":199,"view_count":200,"category_name":29,"create_tm":201},687275,"Collect - Microsoft 365 - Setup and Data Collection Guide","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230001254468/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111339&Signature=0swqdo6SoRdeawsjypJC9zHZ9pc%3D","collect-microsoft-365-setup-and-data-collection-guide",14,1794082544,{"doc_id":203,"doc_title":204,"file_type":138,"home_preview_img_url":205,"slug":206,"view_count":106,"category_name":29,"create_tm":207},656071,"Chapter 9 - Designing the Database","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229974783416/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111339&Signature=03yRDmkkIzb4IIO20Uwz70dO0CU%3D","chapter-9-designing-the-database",1792965985,{"doc_id":209,"doc_title":210,"file_type":138,"home_preview_img_url":211,"slug":212,"view_count":33,"category_name":29,"create_tm":213},705001,"Pallet Rack Product Guide - Upright Frame Capacities","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230014017004/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111339&Signature=%2F6FJwVbFF%2FY8NfIM3O95QiVTSSc%3D","pallet-rack-product-guide-upright-frame-capacities",1794641780,{"doc_id":215,"doc_title":216,"file_type":138,"home_preview_img_url":217,"slug":218,"view_count":22,"category_name":29,"create_tm":219},760200,"Saleae+Users+Guide","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230044227669/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111339&Signature=8iTJUu32RgUbqvce36ZVRrpVeA4%3D","saleaeusersguide",1795898991,{"doc_id":221,"doc_title":222,"file_type":138,"home_preview_img_url":223,"slug":224,"view_count":97,"category_name":29,"create_tm":225},700181,"AURIX™ TC3x Variants-China edition - Addendum - v1.1","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230011562939/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111339&Signature=EyhcgM99uLspauPVOJ3SE8F8jAk%3D","aurix-tc3x-variants-china-edition-addendum-v11",1794516469]