balance

Updated on Thursday, 23 May, 2013 - 16:27
Purpose: 

Determine your credit balance or DPU balance.

Syntax: 

    https://api.datasift.com/balance

All calls to the API must be properly authenticated with a DataSift username and API key.

Examples: 

1.  Here's an example of a call to /balance for pay-as-you-go customers:

https://api.datasift.com/balance

The returned JSON object has this form:

 

Property: Description:
plan This example shows a customer who is using our Pay As You Go plan.
credit The credit remaining on this Pay As You Go plan.

 

2.  Here's an example of a call to /balance for subscribers.

    https://api.datasift.com/balance

The returned JSON object has this form:

 

Property: Description:
cost The license cost for your data plus, if your remaining_dpus falls to zero and you continue to run streams, the additional DPU cost you have incurred so far this month.
remaining_dpus The DPUs remaining on this plan for the current month.