This repository has been archived by the owner on Feb 1, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 48
Differences between the API and MongoDB
jpmckinney edited this page Apr 19, 2013
·
13 revisions
- API renames
_id
toid
- Removes
_all_ids
,_type
. You can't add these back with thefields
query string parameter.
-
By default, returns only
id
,state
,chamber
,committee
,subcommittee
,parent_id
,created_at
andupdated_at
. You can add fields using thefields
query string parameter. To get all the fields except for +plus fields andcountry
andlevel
(which are alwaysus
andstate
if set), use:fields=members,parent_id,state,chamber,committee,subcommittee,sources,created_at,updated_at
- No discernible difference
- Adds a
legislators
field with an array of objects withleg_id
andfull_name
fields
- Adds
bbox
,region
andshape
fields
The Events API lacks the following documentation:
-
dtstart
: search for events with awhen
afterdtstart
, in the formatYYYY-MM-DD
, defaults to a week ago -
dtend
: search for events with awhen
beforedtstart
, in the formatYYYY-MM-DD
- A maximum of 1000 events are returned. In order to retrieve all events, you must change the size of the time window set by
dtstart
anddtend
until under 1000 events are returned, then proceed to the next time window and repeat. The first window isdtstart=1900-01-01&dtend=2010-12-01
. Good luck!