SOP: How to Use Pixabay API in n8n: Step-by-Step Guide

:one: :memo: Sign up for a free Pixabay account to get an API key at https://pixabay.com/accounts/register/.

:two: :heavy_plus_sign: Add an HTTP Request node to your n8n workflow.

:three: :wrench: Configure the HTTP Request node by entering the Pixabay API endpoint URL in the “URL” field: Pixabay API Documentation

Note: If you don’t see a API key you might have to scroll down on the page.

:four: :mag: In the “Query Parameters” section, add the following parameters:

  • :old_key: key: Your Pixabay API key
  • :mag_right: q: The search term for the images you want to find
  • :framed_picture: image_type: The type of image you want to find (e.g., “photo”, “illustration”, “vector”)
  • :scroll: per_page: The number of results you want to return per page
  • :page_facing_up: page: The page number of the results you want to retrieve

For example, you might set the following parameters:

  • :old_key: key: your_api_key
  • :mag_right: q: dog
  • :framed_picture: image_type: photo
  • :scroll: per_page: 10
  • :page_facing_up: page: 1

:five: :outbox_tray: In the “Response Format” section, choose “JSON” as the response type.

:six: :rocket: Click “Execute Node” to run the node and retrieve the images from the Pixabay API.

That’s it! :tada: You can use the data returned by the Pixabay API to display the images in your application or perform other actions with them. Good luck! :crossed_fingers: