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=448&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 4574 results for "api"(353ms)

headersExampleREADME.md1 match

@tmcw•Updated 1 year ago
1null
2
3Migrated from folder: Web_API/headersExample

htmlExampleREADME.md3 matches

@tmcw•Updated 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

@tmcw•Updated 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

arenaApiExampleREADME.md4 matches

@tmcw•Updated 1 year ago
1# Are.na API
2
3Example of using the [are.na](https://dev.are.na/documentation/channels#Block43472) API to get the contents of an Are.na board - specifically my fun board that showcases websites with that "glossy black style."
4
5All you need is [fetch](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API) to make this happen!
6
7Migrated from folder: API_Examples/arenaApiExample

kyExampleREADME.md1 match

@tmcw•Updated 1 year ago
1# ky
2
3The [ky module](https://www.npmjs.com/package/ky) is a nice abstraction around the [fetch API](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API), which is easily compatible with Deno. It's by the same creator as [got](https://npmjs.com/got), which more explicitly targets Node.js.
4
5Most of the time, the `fetch` method is all you need! But in a pinch, you can use `ky` to make things a little fancier.

evaluationFromValExampleREADME.md3 matches

@tmcw•Updated 1 year ago
1# Val Town API: unauthenticated eval
2
3This val runs a val by using the [Val Town API](https://docs.val.town/api/reference) and returns the result of its evaluation.
4
5Migrated from folder: Val_Town_API/evaluationFromValExample

valTownApiExampleValREADME.md3 matches

@tmcw•Updated 1 year ago
1# Val Town API: Find a val by handle and name
2
3This val fetches itself via the [Val Town API](https://docs.val.town/api/reference)! Weird, right?
4
5Migrated from folder: Val_Town_API/valTownApiExampleVal

valTownApiExampleUserREADME.md3 matches

@tmcw•Updated 1 year ago
1# Val Town API: Find a user by their handle
2
3This demonstrates how to use the [Val Town API](https://docs.val.town/api/reference) to find a user.
4
5Migrated from folder: Val_Town_API/valTownApiExampleUser

valTownApiExampleSearchREADME.md3 matches

@tmcw•Updated 1 year ago
1# Val Town API Search
2
3This demonstrates how to use the [Val Town API](https://docs.val.town/api/reference) to search for vals that mention "lodash".
4
5Migrated from folder: Val_Town_API/valTownApiExampleSearch

sha256ExampleREADME.md1 match

@tmcw•Updated 1 year ago
1# Creating a SHA-256 hash of a string
2
3This example shows how you can hash a string using SHA-256 without using any NPM modules – just web standards! Adapted from an [example on MDN](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/digest).
4
5Migrated from folder: Web_standards/sha256Example

PassphraseAPI2 file matches

@wolf•Updated 2 days ago

openapi2 file matches

@stevekrouse•Updated 4 days ago
artivilla
founder @outapint.io vibe coding on val.town. dm me to build custom vals: https://artivilla.com
fiberplane
Purveyors of Hono tooling, API Playground enthusiasts, and creators of 🪿 HONC 🪿 (https://honc.dev)