Send correct JSON object to Apify

Hi,

I am using Apify to scrape the web. One Endpoint awaits a json object like this:

{
  "startUrls": [
    {
      "url": "https://www.facebook.com/example1/"
    },
    {
      "url": "https://www.facebook.com/example2/"
    }
  ]
}

But whatever I try I only get this with the surrounding brackets .

[

{

"startUrls": [

{
"url": "https://www.facebook.com/example1/",
"method": "GET"
},

{

"url": "https://www.facebook.com/example2/",

"method": "GET"
},
{
"url": "https://www.facebook.com/example3/",

"method": "GET"
}
]}
]

How can I modify this to only put the correct json object to the endpoint?

It looks like your topic is missing some important information. Could you provide the following if applicable.

  • n8n version:
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app):
  • Operating system:

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.