Hello makers!
I'm attempting to retrieve images from Pexels and store them in my Airtable. Subsequently, I aim to utilize these images in creating posts for WordPress. My process involves searching for a keyword, such as "chocolate", and using the first image from the result list. For a subsequent search with the same keyword, I'll use the second image in the list.
As I have no coding background, I haven't been able to make the API function yet. The API enables me to "search", and the results provide the image URL. There appear to be some Python solutions available, but I'm unsure how to implement them.
Alternatively, perhaps the direct link will suffice. I'm uncertain about the WordPress create post action; it's possible I won't need to download the file itself, and simply providing its link to WordPress might be adequate. I'm not sure which approach is necessary, but any solution would be greatly appreciated.
Does anyone have suggestions on how I can accomplish this?
Hello!
I don't see 'Pexels' as a built-in app on callin.io, so you might need to use HTTP modules for custom API calls: HTTP (callin.io)
For WordPress image posts, you'll need to use the ‘Create Media Item’ module and then map the media ID into the ‘Create a Post’ module:
The ‘Create Media Item’ module requires the actual file data, not just the URL. You'll need a ‘Download’ module (like from Google Drive, as shown in the image above).
Then, configure the ‘Create a Post’ module:
Hope this helps!
Hi there,
I'm encountering a similar problem. When downloading a file from Google Drive, it requires a specific file ID. I don't particularly care which ID it is, as long as it's consistently different from the same folder. Where else would one obtain the file ID?
Thanks for any suggestions!
Hello there!
I just wanted to offer a helpful suggestion. It's usually more effective to start a new topic for your questions rather than commenting on an older, already resolved post. I understand you might be facing similar challenges, but you can always include a link to this thread in your new question.
Thanks for your cooperation in helping to keep our community organized and tidy for everyone.