Poemist API returns a 404

Hi there!

I just wanted to do the second course. Sadly the Poemist API mentioned in exercise 2 (Understanding the data structure - n8n Documentation) seems to be not available anymore. It results in http status code 404.

I didn’t find any public API on the Poemist website, so I guess you need to find a replacement and update the docs accordingly.

Best,
Sven

1 Like

Hey @svzi,

Welcome to the community :cake:

Thanks for reporting this one, I will find a different API we can use and get the pages updated this week.

2 Likes

Thanks for the very fast response @Jon , I appreciate that and the effort to build such an awesome product like n8n! :trophy:

I also want to mention that a lot of the screenshots from the tutorials are some kind of outdated. They show nodes that look different today. As I’m a pro developer on my own, I surely know that keeping the docs update to date doesn’t make the most fun, but I guess for beginners it’s essential to get it going.

Best,
Sven

1 Like

Hey @svzi,

You are not wrong there, We know the images are out of date now in multiple places it just takes a bit of time to get around to changing them.

I do want to spend a bit of time this week updating some of the course content so that should be all good soon.

2 Likes

bump - course 2 is still using the poems api : Understanding the data structure - n8n Documentation

and the previous transforming data code is also incorrect as well for current code nodes. Reference: Understanding the data structure - n8n Documentation

Oh and while I’m here … :slight_smile:
The wording in section : Understanding the data structure - n8n Documentation
I’d have gotten the question wrong if it was in a test… as I wrote my code node (in a pedantic fashion) to change each item (e.g worker 2 , worker 3 ) to reference worker 1s work email :slight_smile: at the time I was writing the code I was thinking why would every item want worker1s work email but hey it’s a plausible thing that someone might want to do.

my attempt was this at first - before looking at the answer :slight_smile:

for (const item of $input.all()) {
  item.json.workEmail = items["0"].json.email.work
}

return $input.all();

BTW I’m enjoying the courses so please dont think as a knock back - It’s really good docs - it’s just the way I’m taking in the material and understanding it

1 Like

Hey @0101binary0101,

No need for the bump, I get a reminder everyday :slight_smile:

That last part… It would only assign the email to the first item as you are setting workEmail for index 0, I guess if you were to do your own thing instead you would get different results. I am not actually sure why we use the one item though. Maybe that is something we can improve on in a future update.

1 Like

Just popped in a PR to remove the Poemist API and to update a couple of other bits.

1 Like