Start importing the people of a LinkedIn search URL
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}.
apiKeyx-api-key<token>Workspace API key (nrk_…), shown once when created
application/json- body
url*string1 <= length <= 4096senderId*string^[0-9a-f]{24}$target*|maxResults?integer1 <= value <= 10001000Default Response
application/json- response
import*curl -X POST 'https://api.tryzen.co/v1/imports/linkedin-search' \ -H 'Content-Type: application/json' \ -d '{ "url": "string", "senderId": "string", "target": { "kind": "new", "name": "string" }}'{ "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" }}Senders that can run a LinkedIn search import (connected ones) GET
**Access:** an API key (or an org-wide key naming the workspace) with manage on `leads`. `browserSearch` says whether the sender has a browser set up: only those can import a search with a filter LinkedIn applies only on its results page (Industry, Past company, Title, …).
Start importing the companies of a LinkedIn company 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 `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.