• Townie
    AI
  • Blog
  • Docs
  • Pricing
  • We’re hiring!
Log inSign up
stevekrouse

stevekrouse

queryParams

Remix of neverstew/queryParams
Public
Like
1
queryParams
Home
Code
2
README.md
H
main.tsx
Branches
1
Pull requests
Remixes
1
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
9/6/2023
Viewing readonly version of main branch: v2
View latest version
README.md

Handling query params

You can grab query parameters out of any val that is operating using the Web API using URL#searchParams.

This val demonstrates how to grab a single name parameter, as well as convert the entire query string into an object. It returns the all the query parameters found as a json response.

Example

https://stevekrouse-queryparams.web.val.run/?name=Steve&foo=bar

{ "name": "Steve", "all": { "name": "Steve", "foo": "bar" } }

Migrated from folder: Archive/queryParams

FeaturesVersion controlCode intelligenceCLI
Use cases
TeamsAI agentsSlackGTM
ExploreDocsShowcaseTemplatesNewestTrendingAPI examplesNPM packages
PricingNewsletterBlogAboutCareers
We’re hiring!
Brandhi@val.townStatus
X (Twitter)
Discord community
GitHub discussions
YouTube channel
Bluesky
Terms of usePrivacy policyAbuse contact
© 2025 Val Town, Inc.