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=1059&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 11494 results for "api"(1363ms)

openaiFineTuneREADME.md1 match

@stevekrouse•Updated 1 year ago
1Migrated from folder: External_APIs/openai/openaiFineTune

openaiUploadFileREADME.md1 match

@stevekrouse•Updated 1 year ago
1Migrated from folder: External_APIs/openai/openaiUploadFile

blogRSSREADME.md1 match

@stevekrouse•Updated 1 year ago
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

SignatureCheckREADME.md1 match

@karfau•Updated 1 year ago
39 - it can throws errors instead of just returning `false`, which can be triggered by sending an invalid signature
40 - it can be lured into checking a SHA1 signature if the signature header starts with `sha1=`
41- you need to pass the secret and payload as argument to the val, which makes them appear in the evaluation logs you produce ([they are only visible for the author of the val if you run them as an API](https://docs.val.town/permissions), but it still feels odd to see the secret in the evaluation logs.)
42- parameters are all of type string and the order can be confused
43- you can not use fallback secrets for rotating

pageApiREADME.md1 match

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

paginateAPIREADME.md1 match

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

getValVersionREADME.md2 matches

@neverstew•Updated 1 year ago
2Returns information about a specific version of a val.
3
4To access private vals this requires a secret called valtownToken, set to your API Token. See more about [authentication](https://docs.val.town/api/authentication) to understand how to generate a token.
5
6Migrated from folder: docs/api/getValVersion

valVersionREADME.md1 match

@neverstew•Updated 1 year ago
1Migrated from folder: docs/api/valVersion

getValVersionsREADME.md2 matches

@neverstew•Updated 1 year ago
2Returns information about each version of a specific val.
3
4To access private vals this requires a secret called valtownToken, set to your API Token. See more about [authentication](https://docs.val.town/api/authentication) to understand how to generate a token.
5
6Migrated from folder: docs/api/getValVersions

valVersionsREADME.md1 match

@neverstew•Updated 1 year ago
1Migrated from folder: docs/api/valVersions

gptApiTemplate2 file matches

@charmaine•Updated 7 hours ago

mod-interview-api1 file match

@twschiller•Updated 23 hours ago
apiv1
papimark21