Skip to content

Commit

Permalink
Merge branch 'main' of https://github.com/datausa/datausa-site into s…
Browse files Browse the repository at this point in the history
…taging
  • Loading branch information
davelandry committed Jun 27, 2022
2 parents 89446f2 + 134bca5 commit 2cd95e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/pages/Data/API.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ export default class API extends Component {
https://datausa.io/api/data?drilldowns=<strong>Nation</strong>&measures=<strong>Population</strong>&year=<strong>latest</strong>
</p>
<p>
This call gives us the popoulation of the US based on the latest available year of data. Using the string "latest" instead of a hard-coded year ensures that if the underlying data is updated with a new year's worth of data, the API calls will all reflect this new data automatically. Additionally, to get data at the state level we can use:
This call gives us the population of the US based on the latest available year of data. Using the string "latest" instead of a hard-coded year ensures that if the underlying data is updated with a new year's worth of data, the API calls will all reflect this new data automatically. Additionally, to get data at the state level we can use:
</p>
<p>
https://datausa.io/api/data?drilldowns=<strong>State</strong>&measures=<strong>Population</strong>&year=<strong>latest</strong>
Expand Down

0 comments on commit 2cd95e8

Please sign in to comment.