Skip to main content
GET
/
events
/
stats
Retrieve statistics on events
curl --request GET \
  --url https://app.leadconduit.com/events/stats \
  --header 'Authorization: Basic <encoded-value>'
[
  {
    "source-submitted": 123,
    "source-success": 123,
    "source-failure": 123,
    "source-error": 123,
    "recipient-submitted": 123,
    "recipient-success": 123,
    "recipient-failure": 123,
    "recipient-error": 123,
    "return-received-submitted": 123,
    "return-received-success": 123,
    "return-received-failure": 123,
    "return-received-error": 123,
    "return-sent-submitted": 123,
    "return-sent-success": 123,
    "return-sent-failure": 123,
    "return-sent-error": 123,
    "conversion-received-submitted": 123,
    "conversion-received-success": 123,
    "conversion-received-failure": 123,
    "conversion-received-error": 123,
    "conversion-sent-submitted": 123,
    "conversion-sent-success": 123,
    "conversion-sent-failure": 123,
    "conversion-sent-error": 123,
    "ping-submitted": 123,
    "ping-success": 123,
    "ping-success-rate": 123,
    "ping-win-rate": 123,
    "cost": 123,
    "revenue": 123,
    "profit": 123,
    "cost-per-conversion-received-success": 123,
    "avg-cost-per-lead": 123,
    "avg-revenue-per-lead": 123
  }
]

Authorizations

Authorization
string
header
required

LeadConduit uses HTTP Basic Authentication with the username API and your API key as the password.

For example: API:1f1b96c9150d8050e858c043d543bb4eadae0e6f'

Query Parameters

type
string

Convenience option that specifies a filter on event type (source, recipient, filter, feedback-received, or feedback-sent). Can be used multiple times to specify multiple types. (default: source)

rule
Binary Rule · object

Limit counted events using this rule. Can be used multiple times to specify multiple rules. Each rule must be sent as URL encoded JSON.

group_by
string

Group event counts by unique values of this property. Can be used multiple times to specify multiple properties. (default: none)

interval
string

Groups event counts into sub-timeframes spanning a specified length of time: minutely, hourly, daily, weekly, monthly, yearly (default: none)

timezone
integer

When an interval is specified, this time zone will be used to set the start and end of each interval. Any tz database time zone name (i.e. America/Chicago) or the number of seconds to offset time from UTC (i.e. -18000)

start
string<date-time>

Count events that were created at or after this time (default: beginning of the day today)

end
string<date-time>

Count events that were created at or before this time (default: end of the day today)

outcome
string

DEPRECATED: use column instead. The outcome to count (default: success, failure, error). Can be used multiple times to specify multiple types.

column
Event Statistic · object

A column to aggregate. Can be used multiple times to specify multiple columns. source-success, source-failure, source-error

by_lead
boolean

Boolean indicating whether to count unique leads or unique events - false counts individual events (default: true)

Response

200 - application/json

OK

source-submitted
integer

Total number of leads submitted to LeadConduit by a source

source-success
integer

Total number of leads submitted to LeadConduit by a source resulting in success (lead was purchased)

source-failure
integer

Total number of leads submitted to LeadConduit by a source resulting in failure (lead was not purchased)

source-error
integer

Total number of leads submitted to LeadConduit by a source resulting in error

recipient-submitted
integer

Total number of leads submitted by LeadConduit to a recipient

recipient-success
integer

Total number of leads submitted by LeadConduit to a recipient resulting in success (lead was purchased)

recipient-failure
integer

Total number of leads submitted by LeadConduit to a recipient resulting in failure (lead was not purchased)

recipient-error
integer

Total number of leads submitted by LeadConduit to a recipient resulting in error

return-received-submitted
integer

Total number of returns to LeadConduit by a recipient

return-received-success
integer

Total number of returns to LeadConduit by a recipient resulting in success (lead was returned)

return-received-failure
integer

Total number of returns to LeadConduit by a recipient resulting in failure (return was denied)

return-received-error
integer

Total number of returns to LeadConduit by a recipient resulting in error

return-sent-submitted
integer

Total number of returns sent by LeadConduit to a source

return-sent-success
integer

Total number of returns sent by LeadConduit to a source resulting in success (lead was returned to the source)

return-sent-failure
integer

Total number of returns sent by LeadConduit to a source resulting in failure (return was denied by the source)

return-sent-error
integer

Total number of returns sent by LeadConduit to a source resulting in error

conversion-received-submitted
integer

Total number of conversions to LeadConduit by a recipient

conversion-received-success
integer

Total number of conversions to LeadConduit by a recipient resulting in success (lead was marked converted)

conversion-received-failure
integer

Total number of conversions to LeadConduit by a recipient resulting in failure (conversion was denied)

conversion-received-error
integer

Total number of conversions to LeadConduit by a recipient resulting in error

conversion-sent-submitted
integer

Total number of conversions sent by LeadConduit to a source

conversion-sent-success
integer

Total number of conversions sent by LeadConduit to a source resulting in success (lead was reported converted to the source)

conversion-sent-failure
integer

Total number of conversions sent by LeadConduit to a source resulting in failure (conversion was denied by the source)

conversion-sent-error
integer

Total number of conversions sent by LeadConduit to a source resulting in error

ping-submitted
integer

Total count of pings submitted to LeadConduit by a source

ping-success
integer

Total number of pings submitted to LeadConduit by a source that result in success

ping-success-rate
integer

The percentage of submitted pings that resulted in success

ping-win-rate
integer

The percentage of pings submitted by a source that resulted in a source submission

cost
integer

The total cost in USD for the leads purchased as determined by the source pricing configuration

revenue
integer

The total revenue in USD for leads sold as determined by recipient pricing configuration

profit
integer

The difference between revenue and cost

cost-per-conversion-received-success
integer

The cost in USD for each successful conversion that occurred for the leads submitted during the specified timeframe.

avg-cost-per-lead
integer

The average cost in USD paid per lead calculated by dividing cost by the number of good leads (source-submitted-success minus return-sent-success)

avg-revenue-per-lead
integer

The average revenue in USD received per lead calculated by dividing revenue by the number of good leads (recipient-submitted-success minus return-received-success)