judgelord / regulationsdotgov

a package to get data from regulations.gov
https://judgelord.github.io/regulationsdotgov/
MIT License
0 stars 0 forks source link

regulations.gov api call example includes spaces #1

Open mzkhuzam opened 5 months ago

mzkhuzam commented 5 months ago

In their section on retrieving comments for a docket where number of comments is greater than 5000, regulations.gov includes the following example: https://api.regulations.gov/v4/comments?filter[commentOnId]=09000064846eebaf&filter[lastModifiedDate][ge]=2020-08-10 11:58:52&page[size]=250&page[number]=N&sort=lastModifiedDate,documentId&api_key=DEMO_KEY

API requests cannot have spaces.

judgelord commented 5 months ago

just to clarify, the issue is that there is a space in the lastModifiedDate filed in the example provided on regulations.gov:

filter[lastModifiedDate][ge]=2020-08-10 11:58:52

However, in GSA's regulations.gov API docs they say

"The lastModifiedDate attribute of the last document in the first set (Step 3) was 2020-08-10T15:58:52Z. This date translates to 2020-08-10 11:58:52 in Eastern time."