Supported Formats

json

Examples

wget "https://trackdrive.net/api/v1/calls/stats/?group_by=status&created_at_from=2017-02-24 04:02:31 UTC&created_at_to=2017-02-24 16:02:31 +0000&stat=count"

Params

Param name
Description
auth_token
optional

Authorize requests using your token. Get it from your profile: trackdrive.net/profile/edit

  • Must be String

group_by
required

Group calls by one of these attributes.

  • Must be one of: buyer_converted, offer_converted, status.

stat
required

Return statistics on the grouped calls by one of these numeric columns.

  • Must be one of: count, revenue, profit, cost.

created_at_to
required

Date formatted like 2016-01-01 12:25:15 -0500

  • Must be String

created_at_from
required

Date formatted like 2016-01-01 12:25:15 -0500

  • Must be String

page
optional

Return the next page of results.

  • Must be a number.

offer_repeat_caller
optional

Match calls where the Traffic Source had a repeat caller.

  • Must be one of: true, false.

buyer_repeat_caller
optional

Match calls where the Buyer had a repeat caller.

  • Must be one of: true, false.

buyer_converted
optional

Whether this call's buyer has converted.

  • Must be one of: true, false.

offer_converted
optional

Match calls where the Traffic Source converted.

  • Must be one of: true, false.

in_progress
optional

Match calls that are on-going

  • Must be one of: true, false.

has_recording
optional

Match calls that have a recording.

  • Must be one of: true, false.

buyer_conversion_duplicated_call
optional

Match calls where the callerID was a duplicate against the Buyer's conversion settings.

  • Must be one of: true, false.

offer_conversion_duplicated_call
optional

Match calls where the callerID was a duplicate against the Traffic Source's conversion settings.

  • Must be one of: true, false.

no_buyer
optional

Match calls that didn't connect to a Buyer

  • Must be one of: true, false.

token_key
optional

Calls that are tagged with this token will be matched. EG: token_key=buyer_id will return all calls that have a buyer_id token.

  • Must be String

token_value
optional

Will match calls that are tagged with a token:value. EG: token_key=buyer_id:12345 will return all calls that have a buyer_id token with the value set to 12345.

  • Must be String

order
optional

Sort results by this field.

  • Must be one of: created_at, updated_at, end_time.

order_dir
optional

Sort results in ascending or descending order.

  • Must be one of: desc, asc.

number_id
optional

Refer to the number api for details

  • Must be a number.

offer_id
optional

Refer to the offer api for details

  • Must be a number.

traffic_source_id
optional

Refer to the traffic source api for details

  • Must be a number.

buyer_id
optional

Refer to the buyer api for details

  • Must be a number.

buyer_group_ids
optional

translation missing: en.api.buyer_group_ids

  • Must be a number.

ring_pool_id
optional

Refer to the ring pool api for details

  • Must be a number.

id
optional

An Integer number eg: 12345

  • Must be a number.

provider_configuration_id
optional

Refer to the provider api for details

  • Must be a number.

contact_id
optional

Match calls that were placed by this caller.

  • Must be a number.

status
optional

Match results that have this status.

  • Must be one of: forwarded, finished, no-answer, no-buyer, no-buyer-all-maxed-out, no-buyer-all-filtered, no-buyer-prevent-dupes, not-open, caller-hung-up, rejected, rejected-traffic-source-capped-hang-up, blocked, failed.

ended_at_to
optional

Date formatted like 2016-01-01 12:00:15 -0500

  • Must be String

ended_at_from
optional

Date formatted like 2016-01-01 12:00:15 -0500

  • Must be String