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=api&page=1063&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 11425 results for "api"(3065ms)

myApiDeleteREADME.md1 match

@acmu•Updated 1 year ago
1Migrated from folder: Gift/myApiDelete

myApiAddREADME.md1 match

@acmu•Updated 1 year ago
1Migrated from folder: Gift/myApiAdd

resyBookSlotREADME.md1 match

@vtdocs•Updated 1 year ago
3Given a valid booking token, this val attempts to make a reservation for the booking token's slot.
4
5There is some retry logic as the API route (rarely) returns an internal server error.

resyPublicAPIKeyREADME.md1 match

@vtdocs•Updated 1 year ago
1(Part of: https://www.val.town/v/vtdocs.resyBot)
2
3Resy's current public API key.

glifsREADME.md1 match

@jamiedubs•Updated 1 year ago
7#glif #glifs
8
9Migrated from folder: Glif_API/glifs

stockPriceREADME.md3 matches

@stevekrouse•Updated 1 year ago
152. Replace "SPOT" with the symbol you want
16
17## API
18
19This val currently uses Alpha Vantage's free plan (5 requests per minute & 500 per day).
20
21You can sign up for your own API Key here: https://www.alphavantage.co/support/#api-key
22
23Migrated from folder: External_APIs/AlphaVantage/stockPrice

minifyHTMLREADME.md1 match

@yieldray•Updated 1 year ago
6```
7
8As an API:
9
10```ts

pugREADME.md1 match

@wilt•Updated 1 year ago
1# Pug HTML Template Renderer
2This function is equivalent to [`pug.render`](https://pugjs.org/api/reference.html#pugrendersource-options-callback) - it takes a Pug template string and renders it to an HTML string. `import(npm:pug)` doesn't work in Val.Town due to Pug's usage of `new Function`, which is forbidden for security reasons, so this function uses Val.Town's `eval` API instead.
3
4## Example

chatGPTPluginREADME.md2 matches

@stevekrouse•Updated 1 year ago
9![](https://i.imgur.com/lLUAcVc.png)
10
11It would be awesome if it knew how to use other APIs and make `fetch` calls to them, but it has been [failing at that](https://chat.openai.com/share/428183eb-8e6d-4008-b295-f3b0ef2bedd2).
12
13## Limitations
19## Future directions
20
21Once we have more robust APIs to search for existing vals, this plugin could be WAY more valuable! In theory GPT4 could first search for vals to do a certain task and then if it finds one it could then write code based on that val. In practice however, that might require too many steps for poor GPT. We might need to use some sort of agent or langchain thing if we wanted that sort of behavior.
22
23Adding authentication could also enable it to make requests using your secrets and private vals and create new vals for you. However I am dubious that this would actually be practically useful.

express_exampleREADME.md1 match

@tmcw•Updated 1 year ago
1This val is simple, and just a way to test the express API.

mod-interview-api1 file match

@twschiller•Updated 15 hours ago

daily-advice-app1 file match

@dcm31•Updated 3 days ago
Random advice app using Advice Slip API
apiv1
papimark21