Products
Features
YouTube Video Summarizer
Summarize YouTube videos
Web & PDF Highlighter
Highlight web pages & PDFs
Chat with PDF
Ask any PDF questions with AI
Ask AI Clone
Chat with your highlights & memories
Audio Transcriber
Transcribe audio files to text
Glasp Reader
Read and highlight articles
Kindle Highlight Export
Export your Kindle highlights
Idea Hatch
Hatch ideas from your highlights
Integrations
Obsidian Plugin
Notion Integration
Pocket Integration
Instapaper Integration
Medium Integration
Readwise Integration
Snipd Integration
Hypothesis Integration
Apps & Extensions
Chrome Extension
Safari Extension
Edge Add-ons
Firefox Add-ons
iOS App
Android App
Discover
Discover
Ideas
Discover new ideas and insights
Articles
Curated articles and insights
Books
Book recommendations by great minds
Posts
Essays and notes from readers
Quotes
Inspiring quotes collection
Videos
Curated videos and summaries
Explore Glasp
Glasp Newsletter
Weekly insights and updates
Glasp Talk
Interview series with great minds
Glasp Blog
Latest news and articles
Glasp Use Cases
Learn how others use Glasp
Build & Support
Glasp API
Access Glasp's API for developers
MCP Connector
Connect Glasp to Claude & ChatGPT
Community
Glasp Reddit Community
Students
Student discount and benefits
FAQs
Frequently Asked Questions
AboutPricing
DashboardLog inSign up

10.6: API Query with User Input - p5.js Tutorial

147.3K views
•
November 4, 2015
by
The Coding Train
YouTube video player
10.6: API Query with User Input - p5.js Tutorial

TL;DR

Learn how to take user input, pass it to an API query, retrieve data, and visualize it on the screen.

Transcript

In this video, what I want to look at is how you can take user input from a user and pass that user input to an API query, get some data, have the data come back into your program, and visualize something on the screen. So, this is an example that I built in the previous video, which I'll link to below, and what this example is doing is it's queryi... Read More

Key Insights

  • 🔠 By breaking down the API query into components, it becomes easier to dynamically update specific parts based on user input.
  • 🤔 The tutorial emphasizes the importance of thinking creatively and finding unique visual representations for the data.
  • 😫 Regularly querying the API at set intervals can ensure that the displayed data is always up to date.

Install to Summarize YouTube Videos and Get Transcripts

Explore YouTube Video Summarizer or Get YouTube Transcript Extractor

Questions & Answers

Q: How does the tutorial demonstrate passing user input to an API query?

The tutorial shows how to add a text input field and a submit button to the webpage. When the user types in a city name and clicks the submit button, the program dynamically updates the API query with the user input and retrieves the corresponding weather data.

Q: Can the user query the API for temperatures in both Celsius and Fahrenheit?

The tutorial suggests an exercise where the user can add a checkbox to toggle between Celsius and Fahrenheit units. Depending on the checkbox state, the program would modify the API query to retrieve temperature data in the selected unit.

Q: Is it possible to visualize the weather data in a more creative way?

Yes, the tutorial encourages users to think beyond literal visual representations. For example, if it's raining, one can make it rain on the canvas. The tutorial encourages users to explore different creative ways to display the weather data.

Q: How does the tutorial address the need for regularly updating the API data?

Although not covered in this video, the tutorial mentions that querying the API at regular intervals is useful for data that changes frequently. Future videos may address this topic and how to implement it in code.

Summary & Key Takeaways

  • This video tutorial demonstrates how to query an API called Open Weather Map, retrieve weather data for a specific city, and display it on the screen.

  • The tutorial teaches how to use user input to dynamically change the API query and retrieve data for different cities.

  • The video also explores the concept of querying the API at regular intervals to update the displayed data.


Read in Other Languages (beta)

English

Share This Summary 📚

Summarize YouTube Videos and Get Video Transcripts with 1-Click

Download browser extensions on:

Try YouTube Summary with ChatGPT & Claude or YouTube Transcript Generator

Explore More Summaries from The Coding Train 📚

Classifying Poses with ml5.js Part 2 thumbnail
Classifying Poses with ml5.js Part 2
The Coding Train
Text Generation using Spell with Nabil Hassein thumbnail
Text Generation using Spell with Nabil Hassein
The Coding Train
9.4: Genetic Algorithm: Looking at Code - The Nature of Code thumbnail
9.4: Genetic Algorithm: Looking at Code - The Nature of Code
The Coding Train
Coding Challenge #126: Toothpicks thumbnail
Coding Challenge #126: Toothpicks
The Coding Train
8.1: Fractals - The Nature of Code thumbnail
8.1: Fractals - The Nature of Code
The Coding Train
ITP/IMA Winter Show 2019 thumbnail
ITP/IMA Winter Show 2019
The Coding Train

Summarize YouTube Videos and Get Video Transcripts with 1-Click

Download browser extensions on:

Try YouTube Summary with ChatGPT & Claude or YouTube Transcript Generator

Apps & Extensions

  • Chrome Extension
  • Safari Extension
  • Edge Add-ons
  • Firefox Add-ons
  • iOS App
  • Android App

Key Features

  • YouTube Video Summarizer
  • Web & PDF Summarizer
  • Web & PDF Highlighter
  • Chat with PDF
  • Ask AI Clone
  • Audio Transcriber
  • Glasp Reader
  • Kindle Highlight Export
  • Idea Hatch

Integrations

  • Obsidian Plugin
  • Notion Integration
  • Pocket Integration
  • Instapaper Integration
  • Medium Integration
  • Readwise Integration
  • Snipd Integration
  • Hypothesis Integration

More Features

  • APIs
  • MCP Connector
  • Blog & Post
  • Embed Links
  • Image Highlight
  • Personality Test
  • Quote Shots

Company

  • About us
  • Blog
  • Community
  • FAQs
  • Job Board
  • Newsletter
  • Pricing
Terms

•

Privacy

•

Guidelines

© 2026 Glasp Inc. All rights reserved.