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.5K Connect
- 1.2K Connectors
- 300 Workbench
- 6 Cloud Amplifier
- 8 Federated
- 2.9K Transform
- 100 SQL DataFlows
- 616 Datasets
- 2.2K Magic ETL
- 3.9K Visualize
- 2.5K Charting
- 738 Beast Mode
- 57 App Studio
- 40 Variables
- 685 Automate
- 176 Apps
- 452 APIs & Domo Developer
- 47 Workflows
- 10 DomoAI
- 36 Predict
- 15 Jupyter Workspaces
- 21 R & Python Tiles
- 394 Distribute
- 113 Domo Everywhere
- 275 Scheduled Reports
- 6 Software Integrations
- 124 Manage
- 121 Governance & Security
- 8 Domo Community Gallery
- 38 Product Releases
- 10 Domo University
- 5.4K Community Forums
- 40 Getting Started
- 30 Community Member Introductions
- 108 Community Announcements
- 4.8K Archive