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=fetch&page=767&format=json

For typeahead suggestions, use the /typeahead endpoint:

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

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

Found 7885 results for "fetch"(1498ms)

arenaApiExampleREADME.md1 match

@tmcw•Updated 1 year ago
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.md2 matches

@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.
6
7Migrated from folder: Modules/kyExample

valTownApiExampleValREADME.md1 match

@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

rawREADME.md6 matches

@pomdtr•Updated 1 year ago
1# Fetch the source of a val
2
3> This val was created before the introduction of https://esm.town
13## Examples
14
15### Fetching the val code
16
17```console
21You can also use `js`, `jsx` and `ts` extension (only the content-type change, there is no transpilation).
22
23### Fetching private val
24
25Pass an api token as an username
29```
30
31### Fetching the val README
32
33```console
41```
42
43### Fetching a specific version of a val
44
45```console
49You need to be authenticated to use this method.
50
51### Fetching the val metadata
52
53```console

fetchValTownAPIREADME.md2 matches

@pomdtr•Updated 1 year ago
1# Fetch data from the val town api
2
3## Usage
7```javascript
8const valtownApi = (path: string, options?: RequestInit) =>
9 @pomdtr.fetchValTownAPI(
10 @me.secrets.apiToken,
11 path,

fetchFigmaFileREADME.md1 match

@rodrigotello•Updated 1 year ago
1Migrated from folder: Figma/fetchFigmaFile

fetchFileREADME.md1 match

@Llad•Updated 1 year ago
1Migrated from folder: summarize/fetchFile

getLemmyPostsREADME.md1 match

@pdebie•Updated 1 year ago
1Fetches the 20 active posts in a community from a specific Lemmy instance.
2
3Migrated from folder: Lemmy/getLemmyPosts

youtubeFeedREADME.md1 match

@pdebie•Updated 1 year ago
1Fetches all videos for a Youtube channel, by using its RSS feed.
2
3Migrated from folder: Youtube/youtubeFeed

fetchRssREADME.md2 matches

@pdebie•Updated 1 year ago
1This is an RSS parser val, similar to @stevekrouse.fetchRSS, but uses an NPM parsing library
2so it can support multiple RSS feed types easily.
3
4Migrated from folder: Other/fetchRss

fetchPaginatedData2 file matches

@nbbaier•Updated 1 week ago

FetchBasic1 file match

@fredmoon•Updated 1 week ago