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=801&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 8244 results for "fetch"(1287ms)

whatIsMyIpREADME.md1 match

@nico•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.

fetchAndParseFeedsREADME.md1 match

@iakovos•Updated 1 year ago
1Migrated from folder: RSS/fetchAndParseFeeds

fetchAndStoreREADME.md1 match

@tal•Updated 1 year ago
1Migrated from folder: lunchMenu/fetchAndStore

fetchTextREADME.md1 match

@iakovos•Updated 1 year ago
1Migrated from folder: RSS/utils/fetchText

blogRSSREADME.md3 matches

@stevekrouse•Updated 1 year ago
7## Architecture
8
91. Fetch and parse the HTML of https://blog.val.town – @stevekrouse.valTownBlogJSON.
102. Create an RSS string out of that array of blog objects – @stevekrouse.valTownBlogRSS.
113. Expose [an endpoint that returns that RSS](https://stevekrouse-blogRSS.web.val.run), with appropriate content-type and cache headers – this val, @stevekrouse.blogRSS
13## Notes
14
15* This is very inefficient. It refetches and re-parses blog.val.town on every single request, modulo some caching via the headers. It would be much more efficient to cache the results of fetching and parsing the Val Town blog, and then only re-fetch it every 10 minutes or so.
16* Instead of fetching and parsing HTML from super.so, we could get this same data from Notion's API, with a val like @stevekrouse.notionGetDatabase.
17
18Migrated from folder: Archive/blogRSS

fetchAndParseXMLREADME.md1 match

@mgruel•Updated 1 year ago
1Migrated from folder: common/fetchAndParseXML

fetchTextREADME.md1 match

@mgruel•Updated 1 year ago
1Migrated from folder: common/fetchText

twitterREADME.md1 match

@andreterron•Updated 1 year ago
15
16- Refresh your tokens: https://www.val.town/v/andreterron/refreshTwitterToken
17- Fetch user by id: https://www.val.town/v/andreterron/fetchTwitterUser
18- Search posts: https://www.val.town/v/andreterron/searchTweets
19- Write an X post: https://www.val.town/v/andreterron/postTweet

fetchTwitterUserREADME.md1 match

@andreterron•Updated 1 year ago
1Migrated from folder: A_Make_A_Val_Day/_23_08_17_Actually_Its_X/Twitter_Helpers/fetchTwitterUser

fetchJSONREADME.md1 match

@mgruel•Updated 1 year ago
1Migrated from folder: common/fetchJSON

fetchPaginatedData2 file matches

@nbbaier•Updated 1 week ago

FetchBasic1 file match

@fredmoon•Updated 1 week ago