DEV Community

Greg Perry
Greg Perry

Posted on

Prexels Preview

*API Questions for Developers *

I’ve made a Flutter app showcasing the capabilities of your pexels API. It allowed me to test Flutter’s multi-platform capabilities. There is an iOS and Android version, but Flutter can also supply a Linux and Windows version. Regardless, I do have some questions regarding the API. They are listed below.

iOS
https://testflight.apple.com/join/Ki2oZSjx

Android
https://play.google.com/apps/internaltest/4701345239806421858

Screenshot of Pexels website & a video clip of the app, Pexels Preview

Like Field

There is the field, liked, associated with the API’s Picture and Video records. How would my app allow a user to ‘like’ a particular image? Of course, they’re able to do so on the website with their Pexels web account, but not with an API key? As you can see below, I’ve provided a way for a user to ‘like’ a photo on the app, but do I have the means to reflect this in their web account?

The API ‘likeed’ field & the app’s like feature.

Feature Request: Like A Category

There is a ‘liked’ field for an image or a video, but how about for a whole category? There must be particular users looking at a particular category all the time. It would be nice to save that category for review the next time the user logs on.

Requesting a ‘liked’ field for the Category record.

Location

The Json responses from the API are in English. Of course, I am situated in central Canada, and so the API provids English headings and names. However, would there be a way to return headings and names in another language? There is the option, locale, in the search for Photos API, but how can I change the Locale of the API response as a whole?

Additional API Calls

Finally, would there be some API calls not listed in the documentation that I may 'test' on my app? I see there are many options for the Picture Search I've yet to try, but would there be others not shown that would be interesting?

Pexels.com is a wonderful website. I’m certain you’ll have must success in the future.

Regards,

Greg

Top comments (0)