Hi everyone,
I’m currently working on an n8n workflow that integrates with PhantomBuster to automate data scraping. However, I’m running into an issue with the sessionCookie
parameter in my API requests.
Here’s what I’m trying to achieve:
- Launch a PhantomBuster agent using a POST request.
- Fetch the output of the agent using a GET request.
Here’s the relevant JSON for launching the agent:
json
Copy code
{
"search": "{{ $json.Link }}",
"sessionCookie": "AQEDAT1-SEQDuTd-AAABkXOXS4wAAAGRl6PPjE4AtiNOlVuSTGrILlu_LUe3M3ii3AcDYAxBT6HlJdf7DlQ2G44CSdzwvSNjnbANIbmvaiY7Iq8-ndFmJ9mP8jjhhTXwjyhvSbXpAaaMXDS7xq8XVUlZ"
}
And here’s the request for fetching the output:
json
Copy code
{
"url": "https://api.phantombuster.com/api/v2/agents/fetch-output",
"queryParameters": {
"id": "7455715727685578"
}
}
Issue:
I’m receiving an error indicating that the sessionCookie
might be incorrect, even though I’ve manually verified it.
The output of the agent is not being fetched as expected.
Steps I’ve Taken:
- Verified the
sessionCookie
and ensured it is correct and not expired. - Checked the API documentation to confirm that all required parameters are included.
- Tried manually testing the API calls outside of n8n.
Request for Help:
Can someone help me identify if there’s an issue with how I’m sending the sessionCookie
in the request?
Are there any additional steps I should take to troubleshoot this issue?
Thanks in advance for your assistance!
here is the workflow :