Load data from the HUD User Data API into R, including Fair Market Rents and Income Limits.
Note: hudapi uses the HUD User Data API but is not endorsed or certified by HUD User.
Install hudapi by running the following code:
devtools::install_github("CenterOnBudget/hudapi")
Next, if you don't already have one, sign up for a HUD API access token. Once you have your token, store it in your .Renviron
file for easy-use by running the following code:
usethis::edit_r_environ()
And adding your HUD API access token like so:
HUD_API_TOKEN="your_token_here"
This allows hudapi to automatically load your access token when pulling data from the HUD API, and saves you from having to manually copy-paste your token around or openly include your token in scripts you may share with others (or post on GitHub).
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.