/taxonomies
Search taxonomies using either whole keywords (relevance search) or partial keywords (autocomplete), or list taxonomy items.
GET /taxonomies
GET /taxonomiesGet a list of current available taxonomy facets.
Code Example
curl --request GET \
--url https://api.lightcast.io/global-postings/taxonomies \
--header 'Authorization: Bearer <ACCESS_TOKEN>'Response Examples
{
"data": [
"company",
"currency",
"skills",
"title",
"laa_country",
"laa_admin_area_1",
"laa_admin_area_2",
"laa_metro",
"naics2",
"naics3",
"naics4",
"naics5",
"naics6"
]
}GET /taxonomies/\{facet}
GET /taxonomies/\{facet}Search taxonomies using either whole keywords (relevance search) or partial keywords (autocomplete).
URL Parameters
| Name | Description |
|---|---|
facetenum | Which taxonomy to search for ID/name suggestions (Cities will always have a null ID, and cannot be listed without a Example: Must be one of: |
Query Parameters
| Name | Description |
|---|---|
qstring | A query string of whole or partial keywords to search for. Only when autocomplete is true is q assumed to be a prefix. If q is omitted, the response will list results sorted by id of length limit.This parameter is optional. Example: Analysts |
autocompleteboolean | Autocomplete search terms. Only used in combination with q.
Default: |
limitinteger | How many search results to return. This parameter is optional. Minimum: 1Maximum: 10000Default: 10 |
Code Examples
url --request GET \
--url 'https://api.lightcast.io/global-postings/taxonomies/lot_occupation?q=Analysts' \
--header 'Authorization: Bearer <ACCESS_TOKEN>'Response Examples
{
"data": [
{
"id": "e15b",
"name": "Analysts and Data Scientists",
"score": 8.110737
}
]
}// 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."
}
]
}// The facet you requested wasn't found.
{
"errors": [
{
"status": 404,
"title": "URL not found",
"detail": "Unrecognized facet 'foo'"
}
]
}POST /taxonomies/\{facet}/lookup
POST /taxonomies/\{facet}/lookupLook up taxonomy items by ID.
URL Parameters
| Name | Description |
|---|---|
facetenum | Which taxonomy to look up IDs in. Example: Must be one of: |
Request Body
{
"ids": [
"e15b"
]
}Code Examples
curl --request POST \
--url https://api.lightcast.io/global-postings/taxonomies/lot_occupation/lookup \
--header 'Authorization: Bearer <ACCESS_TOKEN>' \
--header 'Content-Type: application/json' \
--data '{ "ids": [ "e15b" ] }'Response Examples
{
"data": [
{
"id": "e15b",
"name": "Analysts and Data Scientists"
}
]
}//Your request wasn't valid (bad parameter names or values).
{
"errors": [
{
"status": 400,
"title": "Malformed Request",
"detail": "Expected array"
}
]
}{
"errors": [
{
"status": 404,
"title": "URL not found",
"detail": "Unrecognized facet 'foo'"
}
]
}
