Count Signal Detections

Get the total number of signal detections matching your filters.

GET/api/v2/workspace/signals/count

Returns the total number of published signal detections matching the given filters. Accepts the same filter parameters as the query endpoint (signal_start_date, signal_end_date, detection_start_date, detection_end_date, agent_id, signal_run_id, company_id, company_domain, company_linkedin_handle, company_linkedin_url). The cursor and limit parameters are ignored.

Example request

curl "https://api.getsillage.com/api/v2/workspace/signals/count" \
  -H "Authorization: Bearer $SILLAGE_API_KEY"
const response = await fetch(
  'https://api.getsillage.com/api/v2/workspace/signals/count',
  {
    headers: {
      Authorization: `Bearer ${process.env.SILLAGE_API_KEY}`,
    },
  },
)

const result = await response.json()
import { request } from 'node:https'

const req = request(
  new URL('https://api.getsillage.com/api/v2/workspace/signals/count'),
  {
    headers: {
      Authorization: `Bearer ${process.env.SILLAGE_API_KEY}`,
    },
  },
  (res) => {
    let data = ''
    res.on('data', (chunk) => {
      data += chunk
    })
    res.on('end', () => {
      console.log(JSON.parse(data))
    })
  },
)

req.end()
import os
import requests

response = requests.get(
    "https://api.getsillage.com/api/v2/workspace/signals/count",
    headers={"Authorization": f"Bearer {os.environ['SILLAGE_API_KEY']}"},
    timeout=30,
)
response.raise_for_status()
result = response.json()

Example response

200 OK

{
  "total": 42
}

Errors

StatusMeaning
400Invalid query parameters.
401The API key is missing or invalid.
403The workspace does not have access to this resource.
404Returned when string company identifier(s) (company_domain, company_linkedin_handle, or company_linkedin_url) were supplied and none resolved to a known company in your workspace. company_id is never validated and never triggers a 404.
429Rate limit exceeded.
500An unexpected server error occurred.

Error responses use RFC 9457 problem documents with Content-Type: application/problem+json.

On this page