Val Town Code SearchReturn to Val Town

API Access

You can access search results via JSON API by adding format=json to your query:

https://codesearch.val.run/?q=api&page=1012&format=json

For typeahead suggestions, use the /typeahead endpoint:

https://codesearch.val.run/typeahead?q=api

Returns an array of strings in format "username" or "username/projectName"

Found 11043 results for "api"(1386ms)

siteREADME.md1 match

@stevekrouseUpdated 1 year ago
1Migrated from folder: Archive/what_is_an_api_video/site

tursoREADME.md1 match

@stdUpdated 1 year ago
35## Architecture
36
37This @std.turso function is the client or SDK to @std.tursoAPI, which acts as a "proxy" to Turso. It handles authentication, creates databases, and forwards on your SQL queries. You can get lower latency (~200ms vs ~800ms), more storage, databases, CLI & API access by having your own Turso account.
38
39Migrated from folder: turso/turso

myApiREADME.md1 match

@michaelheckmannUpdated 1 year ago
1Migrated from folder: Archive/myApi

queryParamsREADME.md1 match

@stevekrouseUpdated 1 year ago
1# Handling query params
2
3You can grab query parameters out of any val that is operating using the [Web API](https://docs.val.town/api/web) using [URL#searchParams](https://developer.mozilla.org/en-US/docs/Web/API/URL/searchParams).
4
5This 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.

apiREADME.md1 match

@ayrtonlacerdaUpdated 1 year ago
1Migrated from folder: AsanaTests/api

docFeedbackFormREADME.md1 match

@stevekrouseUpdated 1 year ago
30```
31
32Finally, you may be wondering why I queue up feedback in `@stevekrouse.docsFeedback`, a private JSON val, and then process it via [`@stevekrouse.formFeedbackAlert`](https://www.val.town/v/stevekrouse.formFeedbackAlert) instead of sending it along to Discord directly in this val. I [tried that originally](https://www.val.town/v/stevekrouse.docFeedbackForm?v=61) but it felt too slow to wait for the API call to Discord before returning the "Thanks for your feedback" message. This is where the `context.waitUntil` method (that Cloudflare workers and Vercel Edge Functions support) would really come in handy – those allow you to return a Response, and then continue to compute. Currently Val Town requires you to stop all compute with the returning of your Response, so the only way to compute afterwards is to queue it up for another val to take over, and that's what I'm doing here.
33
34

californiaBusinessNotificationsREADME.md3 matches

@tmcwUpdated 1 year ago
3![California business records search that this val will use for automated notifications](https://imagedelivery.net/iHX6Ovru0O7AjmyT5yZRoA/2a60f563-6ffd-42f2-d321-89c3243f5c00/public)
4
5There's nothing I like more than a little open data and transparency! This Val shows you how to use the [California Secretary of State Business Search](https://bizfileonline.sos.ca.gov/search/business) as a faux-API and get notifications when records change. This lets you know when a business updates their records, changes their good-standing status, and so on.
6
7Here's how to use it:
135. Now, in the network tab of your developer tools, you should see a request that ends with `false`. You'll find a number in that URL. Plug that number into the val at the spot at the top.
14
15![Browser inspector tools showing the number you need to copy for this API request](https://imagedelivery.net/iHX6Ovru0O7AjmyT5yZRoA/e44b01b2-69a2-4288-1f48-977441ad6000/public)
16
17(We're almost there!)
27### Notes
28
29- [opencorporates](https://opencorporates.com/) has a _way_ better system for open data around businesses, but to get a free API key you need to be a nonprofit or a registered journalist, and I am neither. But if you are, use that!
30- Thanks to America's laws around business registration, it's commonplace for businesses to mask their control and ownership by using registration agents and a few layers of corporate structure.

beckerBarleyREADME.md1 match

@filUpdated 1 year ago
2## SSR chart with Observable Plot
3
4This chart is rendered server-side by val.town, using Observable Plot, from data loaded from the GitHub API. For a more complete example, see https://www.val.town/v/fil.earthquakes. For information on this chart, see https://observablehq.com/@observablehq/plot-barley-trellis.
5
6![chart](https://fil-beckerBarley.web.val.run/)

userValsExampleREADME.md1 match

@neverstewUpdated 1 year ago
1Migrated from folder: docs/api/userValsExample

userValsREADME.md1 match

@neverstewUpdated 1 year ago
1Migrated from folder: docs/api/userVals

daily-advice-app1 file match

@dcm31Updated 2 days ago
Random advice app using Advice Slip API

gptApiTemplate1 file match

@charmaineUpdated 4 days ago
socialdata
Affordable & reliable alternative to Twitter API: ➡️ Access user profiles, tweets, followers & timeline data in real-time ➡️ Monitor profiles with nearly instant alerts for new tweets, follows & profile updates ➡️ Simple integration
artivilla
founder @outapint.io vibe coding on val.town. dm me to build custom vals: https://artivilla.com