The information from this request is only available for a limited time after the original query from the WQP. In the readWQPdata and readWQPqw functions, the results from this function will be attached as an attribute to the data.
Examples
# \donttest{
rawPcode <- readWQPqw("USGS-01594440", "01075", ignore_attributes = TRUE)
#> GET: https://www.waterqualitydata.us/data/Result/search?siteid=USGS-01594440&pCode=01075&mimeType=csv
#> NEWS: Data does not include USGS data newer than March 11, 2024. More details:
#> https://doi-usgs.github.io/dataRetrieval/articles/Status.html
headerInfo <- attr(rawPcode, "headerInfo")
wqp_request_id <- headerInfo$`wqp-request-id`
count_info <- wqp_check_status(wqp_request_id)
#> Request failed [404]. Retrying in 1.2 seconds...
#> Request failed [404]. Retrying in 1 seconds...
#> Error in: https://www.waterqualitydata.us/wqx3/status/
count_info[["dataProviders"]]
#> NULL
# }