You can use Vayne’s API to create order and collect data seamlessly to build build automated workflows and API agents ⇒ access API.
First you need to make sure that your plan allows for API access. If so, you will be able to generate a token to authenticate your API calls.
Optionally, you can add a webhook, where the data will be pushed once the scraping is done.
Right now API is included for all customers on the Starter, Growth and Expand plans.
<aside> 🍪
Your session cookie needs to be connected in the dashboard
</aside>


Our API includes five endpoints :
a POST to create orders
curl -X "POST" "<https://vayne.io/api/orders>" \\
-H 'accept: application/json' \\
-H 'Authorization: Bearer d67ec95f875c16dcad893d14c2bb5fa62827feb2f8e2d563c34d8dc8cd321ec2' \\
-H 'Content-Type: application/json; charset=utf-8' \\
-d $'{
"email_inference": true,
"name": "Y Combinator 3",
"url": "<https://www.linkedin.com/sales/search/people?query=(recentSearchParam%3A(id%3A4904052482%2CdoLogHistory%3Atrue)%2Cfilters%3AList((type%3ACURRENT_COMPANY%2Cvalues%3AList((id%3Aurn%253Ali%253Aorganization%253A167872%2Ctext%3AY%2520Combinator%2CselectionType%3AINCLUDED%2Cparent%3A(id%3A0)>)))%2C(type%3ASENIORITY_LEVEL%2Cvalues%3AList((id%3A320%2Ctext%3AOwner%2520%252F%2520Partner%2CselectionType%3AINCLUDED)%2C(id%3A310%2Ctext%3ACXO%2CselectionType%3AINCLUDED)))))&sessionId=cp82cQ%2FQSbODhNGmHy58XQ%3D%3D&viewAllFilters=true",
"limit": 10,
"secondary_webhook": "yourwebhook.com"
}'
a GET to collect the data whenever you want
curl "<https://vayne.io/api/orders/114>" \\
-H 'accept: application/json' \\
-H 'Authorization: Bearer d67ec95f875c16dcad893d14c2bb5fa62827feb2f8e2d563c34d8dc8cd321ec2'
a PATCH to connect your session cookie directly, without using the web app
curl -X "PATCH" "<https://www.vayne.io/api/linkedin_authentication>" \\
-H 'Content-Type: application/json' \\
-H 'Authorization: Bearer 75c156419874408060bea8d893b849b27f888ce746efeef140d00d25854cca6d' \\
-d $'{
"linkedin_cookie": "yoursessioncookie"
}'