Access Live USPS Data in Google Sheets

Ready to get started?

Learn more or sign up for a free trial:

CData Connect



Use CData Connect Cloud to create a virtual MySQL Database for USPS data and gain access to live USPS data from your Google Sheets.

Google Sheets is a free, web-based spreadsheet program. When paired with CData Connect Cloud, you can instantly access USPS data from within Google Sheets for data analysis, collaborations, calculations, and more. This article shows how to connect to USPS in your Connect Cloud instance and access live USPS data in Google Sheets.

CData Connect Cloud provides a pure cloud-to-cloud interface for USPS, allowing you to easily access live USPS data in Google Sheets. Simply use the partner Connect Cloud Connector to generate a query (or write your own). Using optimized data processing out of the box, CData Connect Cloud pushes all supported query operations (filters, JOINs, etc) directly to USPS, leveraging server-side processing to quickly return USPS data.

This setup requires a CData Connect Cloud instance and the CData Connect Cloud Connector for Google Sheets. To get started, get a free trial of Connect Cloud and download the free Connect Cloud Google Sheets Connector.


Create a Virtual MySQL Database for USPS Data

CData Connect Cloud uses a straightforward, point-and-click interface to connect to data sources and generate APIs.

  1. Log into Connect Cloud and click Databases.
  2. Select "USPS" from Available Data Sources.
  3. Enter the necessary authentication properties to connect to USPS.

    To authenticate with USPS, set the following connection properties.

    • PostageProvider: The postage provider to use to process requests. Available options are ENDICIA and STAMPS. If unspecified, this property will default to ENDICIA.
    • UseSandbox: This controls whether live or test requests are sent to the production or sandbox servers. If set to true, the Password, AccountNumber, and StampsUserId properties are ignored.
    • StampsUserId: This value is used for logging into authentication to the Stamps servers. This value is not applicable for Endicia and is optional if UseSandbox is true.
    • Password: This value is used for logging into Endicia and Stamps servers. If the postage provider is Endicia, this will be the pass phrase associated with your postage account. It is optional if UseSandbox is true.
    • AccountNumber: The shipper's account number. It is optional if UseSandbox is true.
    • PrintLabelLocation: This property is required to use the GenerateLabels or GenerateReturnLabels stored procedures. This should be set to the folder location where generated labels should be stored.

    The Cache Database

    Many of the useful task available from USPS require a lot of data. To ensure this data is easy to input and recall later, utilize a cache database to make requests. Set the cache connection properties in order to use the cache:

    • CacheLocation: The path to the cache location, for which a connection will be configured with the default cache provider. For example, C:/users/username/documents/uspscache

    As an alternative to CacheLocation, set the combination of CacheConnection and CacheProvider to configure a cache connection using a provider separate from the default.

  4. Click Test Database.
  5. Click Privileges -> Add and add the new user (or an existing user) with the appropriate permissions.

With the virtual database created, you are ready to connect to USPS data from Google Sheets.

Access Live USPS Data in Google Sheets

The steps below outline connecting to CData Connect Cloud from Google Sheets to access live USPS data.

  1. Log into Google Sheets, create a new sheet (or open an existing one).
  2. Click Add-ons and click Get Add-ons (if you have already installed the Add-on, jump to step 5).
  3. Search for CData Connect Cloud Connector and select the Add-on.
  4. Authorize the Connector.
  5. Back in Google Sheets, click Add-ons and open the CData Connect Cloud Connector.
  6. Use your instance name (myinstance in myinstance.cdatacloud.net), username, and password to connect to your Connect Cloud instance.
  7. Click CREATE to access USPS data through your Connect Cloud instance.
  8. Select a Database (e.g. USPS1) and click Next.
  9. Select a Table (e.g. Senders) and Fields (columns), add any sorting, filtering, and limits and click Execute.

SQL Access to USPS Data from Cloud Applications

Now, you have a direct, cloud-to-cloud connection to live USPS data from your Google Sheets workbook. You can add more data to your workbook for calculations, aggregations, collaboration, and more.

Try CData Connect Cloud and get SQL data access to 200+ SaaS, Big Data, and NoSQL sources directly from your cloud applications.