> ## Documentation Index
> Fetch the complete documentation index at: https://deepline.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Crustdata V2 Job Search: Inputs, Cost & CLI Example

> Search CrustData indexed job listings. Includes inputs, outputs, pricing notes, Deepline CLI examples, and GTM automation guidance.

## Run in Enrichment Spreadsheet

<Info>
  Use this function as a column step in `deepline enrich`.
</Info>

```bash theme={null}
deepline enrich --input leads.csv --output leads.enriched.csv --with 'result=crustdata-v2_crustdata_v2_job_search:{}' --json
```

<Tip>
  Map payload values to spreadsheet columns with `{{column_name}}` placeholders.
</Tip>

## Input Schema

| Name                   | Type      | Required | Default | Description                                           |
| ---------------------- | --------- | -------- | ------- | ----------------------------------------------------- |
| `payload.filters`      | `object`  | No       |         | Nested boolean filter group for CrustData job search. |
| `payload.limit`        | `integer` | No       | `20`    | Rows per page. Use 0 for aggregation-only queries.    |
| `payload.cursor`       | `string`  | No       |         | Pagination cursor returned by the previous response.  |
| `payload.sorts`        | `array`   | No       |         | Optional sort clauses.                                |
| `payload.fields`       | `array`   | No       |         | Optional response fields to return.                   |
| `payload.aggregations` | `array`   | No       |         | Optional aggregation requests.                        |

<details>
  <summary>Show raw input schema</summary>

  ### Input JSON Schema

  ```json theme={null}
  {
    "type": "object",
    "description": "Search CrustData indexed job listings. Deepline injects the required x-api-version: 2025-11-01 header.",
    "properties": {
      "filters": {
        "type": "object",
        "description": "Nested boolean filter group for CrustData job search.",
        "properties": {
          "op": {
            "type": "string",
            "description": "Boolean operator for this group.",
            "enum": [
              "and",
              "or"
            ]
          },
          "conditions": {
            "type": "array",
            "items": {
              "anyOf": [
                {
                  "type": "object",
                  "description": "One field-level predicate in a CrustData job-search filter tree.",
                  "properties": {
                    "column": {
                      "type": "string",
                      "description": "Legacy alias for field. The legacy dataset-table compatibility endpoint crustdata_v2_job_listings translates old column aliases; native /job/search callers should use field with canonical dot-paths."
                    },
                    "field": {
                      "type": "string",
                      "description": "Dot-path job-search field to filter, such as company.basic_info.company_id, company.basic_info.primary_domain, job_details.title, location.raw, or metadata.date_added. Native /job/search rejects legacy aliases like job_title, job_location, and job_list_date."
                    },
                    "type": {
                      "type": "string",
                      "description": "CrustData filter operator, such as =, (.), in, not_in, >, =, or <=."
                    },
                    "value": {
                      "description": "Filter value. Use a scalar for single-value filters and an array for list filters."
                    }
                  },
                  "required": [
                    "field",
                    "type",
                    "value"
                  ],
                  "additionalProperties": true
                },
                {
                  "type": "object",
                  "description": "Recursive OpenAPI schema reference #/components/schemas/JobSearchFilterGroup.",
                  "additionalProperties": true
                }
              ]
            }
          }
        },
        "required": [
          "op",
          "conditions"
        ],
        "additionalProperties": false
      },
      "limit": {
        "type": "integer",
        "description": "Rows per page. Use 0 for aggregation-only queries.",
        "default": 20,
        "minimum": 0,
        "maximum": 1000
      },
      "cursor": {
        "type": "string",
        "description": "Pagination cursor returned by the previous response."
      },
      "sorts": {
        "type": "array",
        "description": "Optional sort clauses.",
        "items": {
          "type": "object",
          "properties": {
            "field": {
              "type": "string",
              "description": "Dot-path field to sort by."
            },
            "column": {
              "type": "string",
              "description": "Legacy alias for field. The legacy dataset-table compatibility endpoint crustdata_v2_job_listings translates old column aliases; native /job/search callers should use field with canonical dot-paths."
            },
            "order": {
              "type": "string",
              "enum": [
                "asc",
                "desc"
              ]
            }
          },
          "required": [
            "field",
            "order"
          ],
          "additionalProperties": true
        }
      },
      "fields": {
        "type": "array",
        "description": "Optional response fields to return.",
        "items": {
          "type": "string"
        }
      },
      "aggregations": {
        "type": "array",
        "description": "Optional aggregation requests.",
        "items": {
          "type": "object",
          "additionalProperties": true
        }
      }
    },
    "required": [],
    "additionalProperties": false
  }
  ```
</details>

## Output Schema

| Name          | Type     | Required | Default | Description                                    |
| ------------- | -------- | -------- | ------- | ---------------------------------------------- |
| `result.data` | `object` | Yes      |         | Provider response payload.                     |
| `result.meta` | `object` | No       |         | Additional response metadata (status, paging). |

<details>
  <summary>Show raw output schema</summary>

  ### Output JSON Schema

  ```json theme={null}
  {
    "type": "object",
    "description": "Standard tool result payload.",
    "properties": {
      "data": {
        "type": "object",
        "description": "Provider response payload.",
        "properties": {
          "job_listings": {
            "type": "array",
            "items": {
              "type": "object",
              "description": "A CrustData job listing returned by indexed or live job search.",
              "properties": {
                "crustdata_job_id": {
                  "type": "integer"
                },
                "job_details": {
                  "type": "object",
                  "properties": {
                    "title": {
                      "type": "string"
                    },
                    "category": {
                      "type": "string"
                    },
                    "url": {
                      "type": "string",
                      "format": "uri"
                    },
                    "workplace_type": {
                      "type": "string"
                    },
                    "number_of_openings": {
                      "type": "integer"
                    }
                  },
                  "additionalProperties": true
                },
                "company": {
                  "type": "object",
                  "properties": {
                    "basic_info": {
                      "type": "object",
                      "properties": {
                        "crustdata_company_id": {
                          "type": "integer"
                        },
                        "company_id": {
                          "type": "integer"
                        },
                        "name": {
                          "type": "string"
                        },
                        "website_domain": {
                          "type": "string"
                        },
                        "linkedin_profile_url": {
                          "type": "string"
                        }
                      },
                      "additionalProperties": true
                    }
                  },
                  "additionalProperties": true
                },
                "location": {
                  "type": "object",
                  "properties": {
                    "raw": {
                      "type": "string"
                    },
                    "city": {
                      "type": "string"
                    },
                    "state": {
                      "type": "string"
                    },
                    "country": {
                      "type": "string"
                    }
                  },
                  "additionalProperties": true
                },
                "content": {
                  "type": "object",
                  "properties": {
                    "description": {
                      "type": "string"
                    }
                  },
                  "additionalProperties": true
                },
                "metadata": {
                  "type": "object",
                  "properties": {
                    "date_added": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "date_updated": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "company_name": {
                      "type": "string"
                    },
                    "company_website_domain": {
                      "type": "string"
                    },
                    "linkedin_id": {
                      "type": "string"
                    }
                  },
                  "additionalProperties": true
                },
                "job_title": {
                  "type": "string",
                  "description": "Legacy flat title field when returned by older response variants."
                },
                "company_name": {
                  "type": "string",
                  "description": "Legacy flat company-name field when returned by older response variants."
                },
                "linkedin_profile_url": {
                  "type": "string",
                  "description": "Legacy flat company LinkedIn URL field when returned by older response variants."
                }
              },
              "additionalProperties": true
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Cursor for the next page, when available."
          },
          "total_count": {
            "type": "integer",
            "description": "Total matching jobs when returned by CrustData.",
            "minimum": 0
          },
          "aggregations": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": true
            }
          }
        },
        "required": [
          "job_listings"
        ],
        "additionalProperties": true
      },
      "meta": {
        "type": "object",
        "description": "Additional response metadata (status, paging).",
        "additionalProperties": true
      }
    },
    "required": [
      "data"
    ],
    "additionalProperties": false
  }
  ```
</details>

## Advanced: Direct CLI

<Info>
  Use direct execution for single payload debugging.
</Info>

```bash theme={null}
deepline tools execute crustdata-v2_crustdata_v2_job_search --payload '{}' --json
```

### CLI flags

| Flag                        | Description                                         |
| --------------------------- | --------------------------------------------------- |
| `--json`                    | Print machine-readable output.                      |
| `--wait`                    | Wait for terminal provider status when supported.   |
| `--debug`                   | Enable wait mode with additional status/log output. |
| `--wait-timeout SECONDS`    | Max seconds to wait in wait mode.                   |
| `--poll-interval SECONDS`   | Polling interval in seconds during wait mode.       |
| `--timeout SECONDS`         | Request timeout in seconds.                         |
| `--connect-timeout SECONDS` | Connection timeout in seconds.                      |

## Cost

* Pricing model: `per_result` (per result).
* Estimated Deepline credits: `0.4` per pricing unit.
* Billing mode: `post_deduct`.
