NFIB’s SBET platform offers a REST API to allow users to perform queries of available SBET data using selection parameters. Developers can make custom calls to the API and receive the results in JSON format.

Developers can access the following datasets from 1974 to the current month and year:

 

Basic API Call Structure

All results from SBET are returned using stored procedures with parameters in the backend database. Therefore, to call a stored procedure that requires parameters the following URI format should be used:

POST https://api.nfib-sbet.org:443/rest/sbetdb/_proc/<procedure_name>

Please note that a POST should always be used to call an SBET stored procedure and the required parameters should be added in the HTTP Header.

The outgoing request should consist of the following HEADER parameters:

Sample API Request and Input Formats

GetIndicators - Getting Indicators without groupings by Industry, Employee size, etc.

https://api.nfib-sbet.org:443/rest/sbetdb/_proc/getIndicators

Request Body:

{"app_name": "sbet", "params": [
 { "name": "minYear", "param_type": "IN", "value": minYear},
 { "name": "minMonth", "param_type": "IN", "value": minMonth},
 { "name": "maxYear", "param_type": "IN", "value": maxYear},
 { "name": "maxMonth", "param_type": "IN", "value": maxMonth},
 { "name": "indicator", "param_type": "IN", "value": indicator}
 ]}

GetTotals2 and GetQtrMonthTrends2. Same input structure

GetTotals2 is used for pulling Indicator data. GetQtrMonthTrends2 is for Microdata questions

https://api.nfib-sbet.org:443/rest/sbetdb/_proc/getTotals2
https://api.nfib-sbet.org:443/rest/sbetdb/_proc/getQtrMonthTrends2

Request Body:

{"app_name": "sbet", "params": [
  { "name": "minYear", "param_type": "IN", "value": minYear },
  { "name": "minMonth", "param_type": "IN", "value": minMonth },
  { "name": "maxYear", "param_type": "IN", "value": maxYear },
  { "name": "maxMonth", "param_type": "IN", "value": maxMonth },
  { "name": "questions", "param_type": "IN", "value": questions },
  { "name": "industry", "param_type": "IN", "value": industry },
  { "name": "employee", "param_type": "IN", "value": employee },
  { "name": "statev", "param_type": "IN", "value": statev }
  ]}

Input Formats

Multiple values are allowed using a comma **NO SPACES**

minMonth and maxMonth are always 1 and 12 respectively. Only adjust the year

Industry
Employee
Regions (No Individual States)
Questions/Indicators. Questions and Indicators use the same variables. i.e. expand_employ is a question and indicator
**Only exception is rate_change_2 and cap_ex_total_2 where they use the same question for 2 indicators but different parts**
For additional stored procedures and input formats, please email swaroop.bhagavatula@NFIB.ORG