• Blog
  • Docs
  • Pricing
  • We’re hiring!
Log inSign up
charmaine

charmaine

IPInfoExample

Public
Like
IPInfoExample
Home
Code
2
README.md
H
main.tsx
Branches
2
Pull requests
Remixes
History
Environment variables
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data – all from the browser, and deployed in milliseconds.
Sign up now
Code
/
README.md
Code
/
README.md
Search
2/10/2025
Viewing readonly version of main branch: v2
View latest version
README.md

IPInfo Example

This val gets a visitor's IP address and returns their geolocation data from ipinfo.io

Quick start

  • Fork this val
  • Add IPINFO_TOKEN to your environment variables

This will return the most recent track you have been listening to, along with the artist and artwork.

Example Output

{
  "ip": "200.53.225.125",
  "hostname": "pool-200-53-225-125.nycmny.fios.verizon.net",
  "city": "New York City",
  "region": "New York",
  "country": "US",
  "loc": "39.7143,-72.0060",
  "org": "AS01 Verizon",
  "postal": "10280",
  "timezone": "America/New_York"
}
FeaturesVersion controlCode intelligenceCLIMCP
Use cases
TeamsAI agentsSlackGTM
DocsShowcaseTemplatesNewestTrendingAPI examplesNPM packages
PricingNewsletterBlogAboutCareers
We’re hiring!
Brandhi@val.townStatus
X (Twitter)
Discord community
GitHub discussions
YouTube channel
Bluesky
Open Source Pledge
Terms of usePrivacy policyAbuse contact
© 2025 Val Town, Inc.