Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

API pull UI

Public visualization

Viewing a saved revision (read-only)

a724a980d3d24c5891f48375e706eb48

API pull UI

0 stars1🌍 Public
Rrsulli4
Last edited May 2, 2023
Created on Apr 25, 2023
Forked from React Starter

This example presents a React-based user interface for querying the YouTube Data API. It shows a form where users enter a channel ID and an API key; upon submission, the app constructs a search URL to fetch up to ten recent videos. The interface displays the raw JSON response in the console and derives a comma-separated list of video IDs from the retrieved items using custom helper functions. The code leverages React's state management and `useEffect` hook to trigger the fetch, alongside `fetchVideoData.js` which wraps the standard `fetch` API.

AI-generated description

basic code for pulling from an api