JSON No Code Connector Pagination with Sam.gov
The sam.gov API supports JSON pagination, but it's not clear if their API is supported with Domo's pagination options.
Sam.gov does include a next link, but it includes a placeholder for the api key, which needs to be replaced. Domo adds the configured api key as another parameter, but don't see how to configure Domo to remove the placeholder value, so Sam.gov rejects these requests.
"nextLink": "https://api.sam.gov/entity-information/v3/entities?api_key=REPLACE_WITH_API_KEY&page=1&size=10&primaryNaics=541512&includeSections=entityRegistration"
Alternatively, Domo's paging option allows setting of both page and size parameters, but Domo apparently expects or requires a total pages count in the result set Sam.gov returns totalRecords, not totalPages. I've tried to use totalRecords for total pages, but hit a maximum allow usage error from Sam.gov, which I suspect is the sam.gov 1000 requests/day.
Best Answer
-
You might want to try selecting the "Offset by pages" option and then "No" in the pagination configuration, where it asks if the data contains the total number of pages, that has worked for me in the past. This works if you get a NULL response when you get to the last page, the connector will stop trying to keep fetching pages. If the api throws an error however, then this may not be a good fit for the JSON No Code connector, and you may need to look into using Domo Jupyter Workspaces instead. Regarding the Rate Limit, there is no "per day" rate limit that the connector allows just seconds, minutes, and hours.
0
Answers
-
You might want to try selecting the "Offset by pages" option and then "No" in the pagination configuration, where it asks if the data contains the total number of pages, that has worked for me in the past. This works if you get a NULL response when you get to the last page, the connector will stop trying to keep fetching pages. If the api throws an error however, then this may not be a good fit for the JSON No Code connector, and you may need to look into using Domo Jupyter Workspaces instead. Regarding the Rate Limit, there is no "per day" rate limit that the connector allows just seconds, minutes, and hours.
0
Categories
- All Categories
- 1.8K Product Ideas
- 1.8K Ideas Exchange
- 1.6K Connect
- 1.2K Connectors
- 300 Workbench
- 6 Cloud Amplifier
- 9 Federated
- 2.9K Transform
- 102 SQL DataFlows
- 626 Datasets
- 2.2K Magic ETL
- 3.9K Visualize
- 2.5K Charting
- 754 Beast Mode
- 61 App Studio
- 41 Variables
- 693 Automate
- 178 Apps
- 456 APIs & Domo Developer
- 49 Workflows
- 10 DomoAI
- 38 Predict
- 16 Jupyter Workspaces
- 22 R & Python Tiles
- 398 Distribute
- 115 Domo Everywhere
- 276 Scheduled Reports
- 7 Software Integrations
- 130 Manage
- 127 Governance & Security
- 8 Domo Community Gallery
- 38 Product Releases
- 11 Domo University
- 5.4K Community Forums
- 40 Getting Started
- 30 Community Member Introductions
- 110 Community Announcements
- 4.8K Archive