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/$%7Bart_info.art.src%7D?q=fetch&page=792&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 8136 results for "fetch"(3710ms)

whatIsMyIpREADME.md1 match

@devdoshi•Updated 1 year ago
1I wanted to see if val.town forwards my client IP Address using the x-forwarded-for header, which it does, but cloudflare provides the True-Client-IP header as well. When you run a val on the website, it is actually running from val's servers so it won't come from your client IP. You'll need to copy the express fetch and run that from your client.
2
3Migrated from folder: helpers/whatIsMyIp

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

fetchPaginatedData2 file matches

@nbbaier•Updated 1 week ago

FetchBasic1 file match

@fredmoon•Updated 1 week ago