diff --git a/code-samples/api_paging_csvoutput.sh b/code-samples/api_paging_csvoutput.sh index f8009c8..1db2bc4 100644 --- a/code-samples/api_paging_csvoutput.sh +++ b/code-samples/api_paging_csvoutput.sh @@ -3,7 +3,7 @@ # Base URL for this endpoint with $inlinecount set to return total record count. Add # filters, column selection, and sort order to the end of the baseURL -baseUrl='https://www.fema.gov/api/open/v2/FemaWebDisasterDeclarations?$inlinecount=allpages' +baseUrl='https://www.fema.gov/api/open/v1/FemaWebDisasterDeclarations?$inlinecount=allpages' # Return 1 record with your criteria to get total record count. Specifying only 1 # column here to reduce amount of data returned. The backslashes are needed before diff --git a/code-samples/api_paging_jsonoutput.py b/code-samples/api_paging_jsonoutput.py index 0a877eb..4888756 100644 --- a/code-samples/api_paging_jsonoutput.py +++ b/code-samples/api_paging_jsonoutput.py @@ -8,7 +8,7 @@ from datetime import datetime # Base URL for this endpoint. Add filters, column selection, and sort order to this. -baseUrl = "https://www.fema.gov/api/open/v2/FemaWebDisasterDeclarations?" +baseUrl = "https://www.fema.gov/api/open/v1/FemaWebDisasterDeclarations?" top = 1000 # number of records to get per call skip = 0 # number of records to skip diff --git a/code-samples/api_paging_jsonoutput.sh b/code-samples/api_paging_jsonoutput.sh index c4395df..7a803fe 100644 --- a/code-samples/api_paging_jsonoutput.sh +++ b/code-samples/api_paging_jsonoutput.sh @@ -1,7 +1,7 @@ #!/bin/bash # Paging example using bash. Output in JSON. -baseUrl='https://www.fema.gov/api/open/v2/FemaWebDisasterDeclarations?$inlinecount=allpages' +baseUrl='https://www.fema.gov/api/open/v1/FemaWebDisasterDeclarations?$inlinecount=allpages' # Return 1 record with your criteria to get total record count. Specifying only 1 # column here to reduce amount of data returned. The backslashes are needed before diff --git a/code-samples/api_paging_rdsoutput.r b/code-samples/api_paging_rdsoutput.r index ead466f..1dfb2c5 100644 --- a/code-samples/api_paging_rdsoutput.r +++ b/code-samples/api_paging_rdsoutput.r @@ -8,7 +8,7 @@ require("httr") # wrapper for curl package - may require installation datalist = list() # a list that will hold the results of each call -baseUrl <- "https://www.fema.gov/api/open/v2/FemaWebDisasterDeclarations?" +baseUrl <- "https://www.fema.gov/api/open/v1/FemaWebDisasterDeclarations?" # Determine record count. Specifying only 1 column here to reduce amount of data returned. # Remember to add criteria/filter here (if you have any) to get an accurate count.