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=1062&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 11482 results for "api"(1477ms)

urlQueryStringExampleREADME.md2 matches

@tmcwUpdated 1 year ago
1This example shows how to get the query parameters out of a request with the Web API. Check out the [searchParams](https://developer.mozilla.org/en-US/docs/Web/API/URL/searchParams) object for more ways to handle query parameters.
2
3Migrated from folder: Web_API/urlQueryStringExample

ittyRouterExampleREADME.md2 matches

@tmcwUpdated 1 year ago
1# itty-router
2
3This is an example of using the Val Town [Web API](https://docs.val.town/api/web) to integrate with [itty-router](https://github.com/kwhitley/itty-router).
4
5### Server examples
10- [Nhttp](https://www.val.town/v/tmcw.nhttpExample)
11
12Migrated from folder: Web_API/ittyRouterExample

nhttpExampleREADME.md2 matches

@tmcwUpdated 1 year ago
1# nhttp example
2
3This uses the tiny [nhttp framework](https://github.com/nhttp/nhttp) with the Val Town [Web API](https://docs.val.town/api/web). New frameworks like `nhttp` works really well with our system because they rely on the standard Request & Response objects!
4
5### Server examples
10- [Nhttp](https://www.val.town/v/tmcw.nhttpExample)
11
12Migrated from folder: Web_API/nhttpExample

pekoExampleREADME.md2 matches

@tmcwUpdated 1 year ago
1# peko
2
3This is an example of using the tiny [peko](https://peko.deno.dev/) example with Val Town - it's a small router that lets you build web apps using the standard [Request](https://developer.mozilla.org/en-US/docs/Web/API/Request) & [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) objects.
4
5Peko just provides routing - matching URLs with functions - and lets you create your own Response object.
12- [Nhttp](https://www.val.town/v/tmcw.nhttpExample)
13
14Migrated from folder: Web_API/pekoExample

honoExampleREADME.md2 matches

@tmcwUpdated 1 year ago
1# Hono
2
3Here's an example using the [Hono](https://hono.dev/) server library with the [Web API](https://docs.val.town/api/web). It works great!
4
5
11- [Nhttp](https://www.val.town/v/tmcw.nhttpExample)
12
13Migrated from folder: Web_API/honoExample

headersExampleREADME.md1 match

@tmcwUpdated 1 year ago
1null
2
3Migrated from folder: Web_API/headersExample

headersExampleREADME.md1 match

@tmcwUpdated 1 year ago
1Migrated from folder: Web_API/headersExample

htmlExampleREADME.md3 matches

@tmcwUpdated 1 year ago
1# Returning HTML from the Val Town Web API
2
3This just lets you use the standard [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) object with our [Web API](https://docs.val.town/api/web) to return an HTML response from this Val.
4
5Migrated from folder: Web_API/htmlExample

jsonOkExampleREADME.md1 match

@tmcwUpdated 1 year ago
3This val produces the JSON `{ ok: true }` at the URL: https://tmcw-jsonokexample.web.val.run/
4
5Migrated from folder: Web_API/jsonOkExample

biliStreamREADME.md1 match

@nishuiUpdated 1 year ago
1## what is this?
2
3~这是一个用来检测主播是否直播,访问方法为:https://api.val.town/v1/run/nishui.biliStream?args=[xxx]~
4~其中 args=[id] 中的 `id` 是直播房间号码~
5

gptApiTemplate2 file matches

@charmaineUpdated 2 hours ago

mod-interview-api1 file match

@twschillerUpdated 18 hours ago
apiv1
papimark21