/totals
Get summary metrics on all postings matching the filters.
POST /totals
POST /totalsQuery Parameters
| Name | Type | Description |
|---|---|---|
noc_version | enum | Specify NOC taxonomy version to use. Default: Must be one of: |
company_version | enum | Specify company taxonomy version to use. Default: Must be one of: |
area_version | enum | Specify area taxonomy version to use. Default: Must be one of: |
area_ca_version | enum | Specify area taxonomy version to use. Default: Must be one of: |
new_taxonomy_versions | enum | Use new taxonomy versions. Must be one of: |
lot_version | enum | Specify LOT taxonomy version to use. Must be one of: |
naics_version | enum | Specify NAICS taxonomy version to use. Must be one of: |
naics_standard_version | enum | Specify NAICS taxonomy version to use. Must be one of: |
Request Body
{
"filter": {
"when": "active",
"skills_name": {
"include": [
"SQL (Programming Language)",
"C++ (Programming Language)"
],
"exclude": [
"Java (Programming Lanuage)",
"C Sharp (Programming Language)"
]
}
},
"metrics": [
"duplicate_postings",
"unique_postings"
]
}
Code Examples
curl --request POST \
--url https://api.lightcast.io/ca-jpa/totals \
--header 'Authorization: Bearer <ACCESS_TOKEN>' \
--header 'Content-Type: application/json' \
--data '{ "filter": { "when": "active", "skills_name": { "include": [ "SQL (Programming Language)", "C++ (Programming Language)" ], "exclude": [ "Java (Programming Lanuage)", "C Sharp (Programming Language)" ] } }, "metrics": [ "duplicate_postings", "unique_postings" ] }'Response Examples
{
"data": {
"totals": {
"duplicate_postings": 66483,
"median_posting_duration": null,
"unique_postings": 16267
}
}
}// Your request wasn't valid (bad parameter names or values).
{
"errors": [
{
"status": 400,
"title": "Malformed Request",
"detail": "Expected array"
}
]
}// Your request wasn't unauthorized.
{
"errors": [
{
"status": 401,
"title": "Unauthorized Request",
"detail": "You are not authorized to access this resource."
}
]
}// Your request wasn't valid (bad keyword expression).
{
"errors": [
{
"status": 422,
"title": "Invalid request content",
"detail": "Invalid keyword search expression syntax:\n\t\"general merchandise\" OR \"apparel\" OR \"grocery\" OR\n\t ^"
}
]
}
