> ## 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.

# Leadmagic Jobs Finder: Inputs, Cost & CLI Example

> Searches for job postings based on various criteria. 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=leadmagic_jobs_finder:{}' --json
```

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

## Input Schema

| Name                       | Type                                          | Required | Default | Description                                |
| -------------------------- | --------------------------------------------- | -------- | ------- | ------------------------------------------ |
| `payload.company_name`     | `string`                                      | No       |         | Filter by company name.                    |
| `payload.company_website`  | `string`                                      | No       |         | Filter by company website.                 |
| `payload.job_title`        | `string`                                      | No       |         | Filter by job title.                       |
| `payload.location`         | `string`                                      | No       |         | Filter by job location.                    |
| `payload.experience_level` | `"entry" \| "mid" \| "senior" \| "executive"` | No       |         | Required experience level.                 |
| `payload.job_description`  | `string`                                      | No       |         | Keywords from the job description.         |
| `payload.country_id`       | `string`                                      | No       |         | Filter jobs by country ID.                 |
| `payload.page`             | `integer`                                     | No       | `1`     |                                            |
| `payload.per_page`         | `integer`                                     | No       | `20`    | Number of results per page. Maximum of 50. |

### Allowed values

| Field                      | Allowed values                        |
| -------------------------- | ------------------------------------- |
| `payload.experience_level` | `entry`, `mid`, `senior`, `executive` |

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

  ### Input JSON Schema

  ```json theme={null}
  {
    "type": "object",
    "description": "Searches for job postings based on various criteria.",
    "properties": {
      "company_name": {
        "type": "string",
        "description": "Filter by company name."
      },
      "company_website": {
        "type": "string",
        "description": "Filter by company website."
      },
      "job_title": {
        "type": "string",
        "description": "Filter by job title."
      },
      "location": {
        "type": "string",
        "description": "Filter by job location."
      },
      "experience_level": {
        "type": "string",
        "description": "Required experience level.",
        "enum": [
          "entry",
          "mid",
          "senior",
          "executive"
        ]
      },
      "job_description": {
        "type": "string",
        "description": "Keywords from the job description."
      },
      "country_id": {
        "type": "string",
        "description": "Filter jobs by country ID."
      },
      "page": {
        "type": "integer",
        "default": 1,
        "minimum": 1
      },
      "per_page": {
        "type": "integer",
        "description": "Number of results per page. Maximum of 50.",
        "default": 20,
        "minimum": 1,
        "maximum": 50
      }
    },
    "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": {
          "total_count": {
            "type": "integer"
          },
          "page": {
            "type": "integer"
          },
          "per_page": {
            "type": "integer"
          },
          "total_pages": {
            "type": "integer"
          },
          "results": {
            "type": "array",
            "items": {
              "type": "object",
              "description": "Job search result",
              "properties": {
                "company": {
                  "type": "object",
                  "properties": {
                    "name": {
                      "type": "string"
                    },
                    "website_url": {
                      "type": "string"
                    },
                    "linkedin_url": {
                      "type": "string"
                    },
                    "twitter_handle": {
                      "type": "string"
                    },
                    "github_url": {
                      "type": "string"
                    },
                    "is_agency": {
                      "type": "boolean"
                    }
                  },
                  "additionalProperties": false
                },
                "title": {
                  "type": "string"
                },
                "location": {
                  "type": "string"
                },
                "types": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "integer"
                      },
                      "name": {
                        "type": "string"
                      }
                    },
                    "additionalProperties": false
                  }
                },
                "cities": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "geonameid": {
                        "type": "integer"
                      },
                      "asciiname": {
                        "type": "string"
                      },
                      "name": {
                        "type": "string"
                      },
                      "country": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "integer"
                          },
                          "code": {
                            "type": "string"
                          },
                          "name": {
                            "type": "string"
                          }
                        },
                        "additionalProperties": false
                      }
                    },
                    "additionalProperties": false
                  }
                },
                "has_remote": {
                  "type": "boolean"
                },
                "published": {
                  "type": "string",
                  "format": "date-time"
                },
                "expired": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "date-time"
                },
                "application_url": {
                  "type": "string"
                },
                "language": {
                  "type": "string"
                },
                "salary_min": {
                  "type": "string"
                },
                "salary_max": {
                  "type": "string"
                },
                "salary_currency": {
                  "type": "string"
                },
                "experience_level": {
                  "type": "string"
                },
                "description": {
                  "type": "string",
                  "description": "Full job description text"
                }
              },
              "additionalProperties": false
            }
          }
        },
        "required": [
          "total_count",
          "page",
          "per_page",
          "total_pages",
          "results"
        ],
        "additionalProperties": false
      },
      "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 leadmagic_jobs_finder --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.34` per pricing unit.
* Billing mode: `post_deduct`.
