TryzenAPI
Imports

Start importing the companies of a LinkedIn company search URL

POST
/v1/imports/linkedin-company-search

Access: an API key (or an org-wide key naming the workspace) with manage on leads.

Checks the URL (422 search_url_invalid with every problem in error.problems), the sender (404 sender_not_found, 409 sender_not_connected) and the list (409 people_list for a people list, list_busy while it is being filled), then starts the import job. The URL is a LinkedIn company search (/search/results/companies/) with keywords and only these filters: Headquarters location (companyHqGeo), Industry (industryCompanyVertical), Company size (companySize), Job listings (hasJobs) and Connections (network). Any other filter is refused: LinkedIn would ignore it and the import would be bigger than the search. Works with free LinkedIn accounts. A new list is created as a company list. The sender's account reads the results over HTTP, 12 per page, at a slow, budgeted pace (the same daily search budget and working hours as people searches), up to 1,000 companies. Any connected sender works (GET /v1/imports/linkedin-search/senders; no browser needed). Poll GET /v1/imports/{importId}; counts are companies. progress.total is null until the first results page.

Authorization

apiKey
headerx-api-key<token>

Workspace API key (nrk_…), shown once when created

Request Body

application/json
  1. body
url*string
Length1 <= length <= 4096
senderId*string
Match^[0-9a-f]{24}$
target*|
maxResults?integer
Range1 <= value <= 1000
Default1000

Response Body

Default Response

application/json
  1. response
import*
Example Request
curl -X POST 'https://api.tryzen.co/v1/imports/linkedin-company-search' \  -H 'Content-Type: application/json' \  -d '{  "url": "string",  "senderId": "string",  "target": {    "kind": "new",    "name": "string"  }}'
Example Response
{  "import": {    "id": "string",    "listId": "string",    "listName": "string",    "status": "pending",    "source": {      "type": "csv",      "url": "string",      "reactionType": "LIKE",      "crm": {        "provider": "hubspot",        "listId": "string",        "listName": "string",        "listKind": "static",        "linkedinUrlProperty": "string"      }    },    "senderIds": [      "string"    ],    "maxResults": 1,    "fileName": "string",    "progress": {      "offset": 0,      "total": 0    },    "counts": {      "created": 0,      "existing": 0,      "addedToList": 0,      "alreadyInList": 0,      "invalid": 0,      "duplicateInFile": 0    },    "rejectedSample": [      {        "rowNumber": 1,        "errors": [          {            "code": "string",            "column": "string",            "detail": "string"          }        ]      }    ],    "error": {      "code": "string",      "message": "string"    },    "createdAt": "2019-08-24T14:15:22Z",    "startedAt": "2019-08-24T14:15:22Z",    "finishedAt": "2019-08-24T14:15:22Z"  }}

Start importing the people of a LinkedIn search URL POST

**Access:** an API key (or an org-wide key naming the workspace) with manage on `leads`. Checks the URL (422 `search_url_invalid` with every problem in `error.problems`), the sender (404 `sender_not_found`, 409 `sender_not_connected`) and the list (409 `list_busy`), then starts the import job. How the results are read depends on the URL's filters. With keywords and only Connections (`network`), Locations (`geoUrn`), Current company (`currentCompany`), School (`schoolFilter`) or Services (`serviceCategory`), they are read directly, 12 per page. Any other filter (Industry, Past company, Title, …) is read in the sender's own browser, 10 per page, a few pages at a sitting, so it is slower; the sender must have a browser set up (`browserSearch` in `GET /v1/imports/linkedin-search/senders`), otherwise 422 `search_url_invalid` with one `browser_required` problem per such filter. Up to 1,000 results. The sender's account pages through the results at a slow, budgeted pace, so an import can take hours or days; it stays `importing` while it waits. `progress.total` is null until the first results page. Poll `GET /v1/imports/{importId}`.

Start importing the people who reacted to a LinkedIn post POST

**Access:** an API key (or an org-wide key naming the workspace) with manage on `leads`. Checks the post URL (422 `post_url_invalid` with the problem in `error.problems`), the sender (404 `sender_not_found`, 409 `sender_not_connected`) and the list (409 `company_list` for a company list, `list_busy` while it is being filled), then starts the import job. The URL is a LinkedIn post: `https://www.linkedin.com/posts/<slug>-activity-<id>-<x>` (the post's “Copy link to post”) or `https://www.linkedin.com/feed/update/urn:li:activity:<id>/` (`ugcPost` posts too). Shared posts (`urn:li:share:`) aren't supported yet. `reactionType` imports only one kind of reaction (`LIKE`, `PRAISE` = Celebrate, `EMPATHY` = Love, `INTEREST` = Insightful, `APPRECIATION` = Support, `ENTERTAINMENT` = Funny); without it, every reaction. The people go into a people list (a new one, or an existing ready people list). The sender's account reads the reactors over HTTP, 10 per page, at a slow, budgeted pace (the same daily read budget and working hours as searches), up to 10,000 per post. Company pages that reacted are skipped. Any connected sender works (`GET /v1/imports/linkedin-search/senders`; no browser needed). Poll `GET /v1/imports/{importId}`. `progress.total` is null until the first page.