Both the following URL API calls return the same record despite using the Offset filter:
Am I querying correctly?
Open Data Stack Exchange is a question and answer site for developers and researchers interested in open data. It only takes a minute to sign up.
Sign up to join this communityBoth the following URL API calls return the same record despite using the Offset filter:
Am I querying correctly?
I see that the O is capitalized in offset. so try this and it should work.
curl -H "X-API-KEY: MYKEY" https://data.dol.gov/get/vets4212dataset/format/json/limit/1/offset/30/date_column/EndingPeriod/start_date/2015-07-01/end_date/2015-07-01/orderby/asc
[
{
"ReportID": "1956243",
"ReportType": "4212",
"FilingCycle": "2015",
"EndingPeriod": "2015-07-01",
"FormType": "Single Establishment",
"OrgType": "Prime Contractor",
"CoName": "Stealth Software Technologies Inc",
"CoAddress": "12100 Wilshire Blvd",
"CoCity": "Los Angeles",
"CoCounty": "Los Angeles",
"CoState": "CA",
"CoZip": "90025",
"HlName": "",
"HlAddress": "",
"HlCity": "",
.... truncated
}
]%
curl -H "X-API-KEY: MYKEY" https://data.dol.gov/get/vets4212dataset/format/json/limit/1/offset/20/date_column/EndingPeriod/start_date/2015-07-01/end_date/2015-07-01/orderby/asc
[
{
"ReportID": "1954920",
"ReportType": "4212",
"FilingCycle": "2015",
"EndingPeriod": "2015-07-01",
"FormType": "Single Establishment",
"OrgType": "Prime Contractor",
"CoName": "Impact Research and Technology LLC",
"CoAddress": "3510 E Desert Broom Way ",
"CoCity": "Phoenix",
"CoCounty": "Maricopa",
"CoState": "AZ",
"CoZip": "85044",
"HlName": "",
"HlAddress": "",
.... truncated
}
]%