Skip to main contentOverview
The Pexels API prefab loads a number of videos from the Pexel API based on a keyword.
Important Note About Using API Keys in Play
If you are using any sensitive API keys in your Fetch nodes, these keys are exposed and can be seen by users of your prototypes and apps.
- For prototypes, make sure you have your App Clip’s password protected and that you are sending to trusted sources.
- For Export to Xcode, we recommend you store your keys server side using services like Firebase Cloud Functions, Supabase Edge Functions, or AWS Lambda for secure request handling.
Controls
Fetch Onload
Choose if the Fetch API should occur immediately when the page loads.
Search Keyword
Enter a keyword for the videos.
Image Pool
Select the number of images to load.
API Key
Enter your API key for the Pexels API. You can create an API key here.
API Loading
Add actions to fire while the API loads.
API Response
Add actions to fire when the API responds (loads successfully).
API Error
Add actions to fire if the API fails to load.
Spinner
Target an activity indicator element to communicate the API’s loading status.
Populate Data
To display the API’s data, you can output the video or saved string variable to a video element.