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

# HarvestAPI: Search Services

> Search LinkedIn service-provider profiles by service and location. Includes SDK V2 guidance, input constraints, response fields, and Deepline credit cost.

Search LinkedIn service-provider profiles by service and location.

<Info>
  Tool ID: `harvestapi_search_services`
</Info>

## Run this action

Use the TypeScript SDK for a single call. Put `ctx.tools.execute(...)` inside a Play when the call should be durable, scheduled, or run across a CSV.

```ts theme={null}
import { Deepline } from 'deepline';

const deepline = await Deepline.connect();
const result = await deepline.tools.execute(
  'harvestapi_search_services',
  {
    "search": "software companies hiring engineers"
  },
);

console.log(result.toolResponse.raw);
```

### CLI

```bash theme={null}
deepline tools execute harvestapi_search_services --input '{
  "search": "software companies hiring engineers"
}' --json
```

## Example response

The SDK exposes this shape at `result.toolResponse.raw`. Values below are representative.

```json theme={null}
{
  "data": {
    "elements": [
      {
        "publicIdentifier": "example_123"
      }
    ],
    "pagination": {
      "totalPages": 123,
      "totalElements": 123,
      "pageNumber": 123
    },
    "status": 1
  }
}
```

Use `deepline tools get harvestapi_search_services --json` for the latest machine-readable contract.

## Input reference

Search LinkedIn profile services by name keywords and location.

| Name               | Type     | Required | Default | Details                                                                                                                                |
| ------------------ | -------- | -------- | ------- | -------------------------------------------------------------------------------------------------------------------------------------- |
| `payload.search`   | `string` | Yes      | —       | Search profiles by name                                                                                                                |
| `payload.location` | `string` | No       | —       | Filter by location text                                                                                                                |
| `payload.geoId`    | `string` | No       | —       | Filter by location as LinkedIn Geo ID. Overrides the location query param. Use the /linkedin/geo-id-search endpoint to find the Geo ID |
| `payload.page`     | `string` | No       | —       | Page number, use for pagination                                                                                                        |

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

  ### Input JSON Schema

  ```json theme={null}
  {
    "type": "object",
    "description": "Search LinkedIn profile services by name keywords and location.",
    "properties": {
      "search": {
        "type": "string",
        "description": "Search profiles by name"
      },
      "location": {
        "type": "string",
        "description": "Filter by location text"
      },
      "geoId": {
        "type": "string",
        "description": "Filter by location as LinkedIn Geo ID. Overrides the location query param. Use the /linkedin/geo-id-search endpoint to find the Geo ID"
      },
      "page": {
        "type": "string",
        "description": "Page number, use for pagination"
      }
    },
    "required": [
      "search"
    ],
    "additionalProperties": false
  }
  ```
</details>

## Output reference

Standard tool result payload.

| Name                                           | Type                | Required | Default | Details                                        |
| ---------------------------------------------- | ------------------- | -------- | ------- | ---------------------------------------------- |
| `result.data`                                  | `object`            | Yes      | —       | Provider response payload.                     |
| `result.data.elements`                         | `array`             | No       | —       | —                                              |
| `result.data.elements[].id`                    | `string`            | No       | —       | —                                              |
| `result.data.elements[].publicIdentifier`      | `string`            | Yes      | —       | —                                              |
| `result.data.elements[].name`                  | `string`            | No       | —       | —                                              |
| `result.data.elements[].position`              | `string`            | No       | —       | —                                              |
| `result.data.elements[].location`              | `object`            | No       | —       | —                                              |
| `result.data.elements[].location.linkedinText` | `string`            | No       | —       | —                                              |
| `result.data.elements[].linkedinUrl`           | `string`            | No       | —       | —                                              |
| `result.data.elements[].photo`                 | `string`            | No       | —       | —                                              |
| `result.data.elements[].hidden`                | `boolean`           | No       | —       | —                                              |
| `result.data.pagination`                       | `object`            | No       | —       | —                                              |
| `result.data.pagination.totalPages`            | `integer`           | No       | —       | Format: `int32`.                               |
| `result.data.pagination.totalElements`         | `integer`           | No       | —       | Format: `int32`.                               |
| `result.data.pagination.pageNumber`            | `integer`           | No       | —       | Format: `int32`.                               |
| `result.data.pagination.previousElements`      | `integer`           | No       | —       | Format: `int32`.                               |
| `result.data.pagination.pageSize`              | `integer`           | No       | —       | Format: `int32`.                               |
| `result.data.pagination.paginationToken`       | `string`            | No       | —       | Format: `nullable`.                            |
| `result.data.status`                           | `string \| integer` | No       | —       | —                                              |
| `result.data.error`                            | `string \| null`    | No       | —       | —                                              |
| `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": {
          "elements": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string"
                },
                "publicIdentifier": {
                  "type": "string"
                },
                "name": {
                  "type": "string"
                },
                "position": {
                  "type": "string"
                },
                "location": {
                  "type": "object",
                  "properties": {
                    "linkedinText": {
                      "type": "string"
                    }
                  },
                  "additionalProperties": false
                },
                "linkedinUrl": {
                  "type": "string"
                },
                "photo": {
                  "type": "string"
                },
                "hidden": {
                  "type": "boolean"
                }
              },
              "required": [
                "publicIdentifier"
              ],
              "additionalProperties": false
            }
          },
          "pagination": {
            "type": "object",
            "properties": {
              "totalPages": {
                "type": "integer",
                "format": "int32"
              },
              "totalElements": {
                "type": "integer",
                "format": "int32"
              },
              "pageNumber": {
                "type": "integer",
                "format": "int32"
              },
              "previousElements": {
                "type": "integer",
                "format": "int32"
              },
              "pageSize": {
                "type": "integer",
                "format": "int32"
              },
              "paginationToken": {
                "type": "string",
                "format": "nullable"
              }
            },
            "additionalProperties": false
          },
          "status": {
            "type": [
              "string",
              "integer"
            ]
          },
          "error": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "additionalProperties": false
      },
      "meta": {
        "type": "object",
        "description": "Additional response metadata (status, paging).",
        "additionalProperties": true
      }
    },
    "required": [
      "data"
    ],
    "additionalProperties": false
  }
  ```
</details>

## Deepline cost

* Pricing model: `provider_usage` (provider usage).
* Estimated Deepline credits: `0.03` per pricing unit.

## Related documentation

* [HarvestAPI provider guide](/docs/providers/harvestapi/guide)
* [SDK V2 quickstart](/docs/sdk-v2/quickstart)
* [SDK reference](/docs/sdk-v2/sdk-reference)
* [Run tools across a CSV](/docs/sdk-v2/batch-csv)
