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/$%7Burl%7D?q=api&page=1421&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 15165 results for "api"(1426ms)

nftMetadataREADME.md2 matches

@jamiedubs•Updated 1 year ago
1use by copying web API endpoint and appending "?contractAddress=...&tokenId..." - here's an example:
2
3https://jamiedubs-nftmetadata.web.val.run/?contractAddress=0x3769c5700Da07Fe5b8eee86be97e061F961Ae340&tokenId=666
5uses [Alchemy](https://docs.alchemy.com/reference/getnftmetadata) for indexed NFT data, via my other [jamiedubs/alchemyClient val](https://www.val.town/v/jamiedubs/alchemyClient)
6
7plus it's using my personal API key. don't abuse this or I'll disable it! yeesh
8
9

snsFromInscriptionREADME.md1 match

@ryanwaits•Updated 1 year ago
1Migrated from folder: sats_api/snsFromInscription

docFeedbackFormREADME.md1 match

@parkerdavis•Updated 1 year ago
30```
31
32Finally, you may be wondering why I queue up feedback in `@stevekrouse.docsFeedback`, a private JSON val, and then process it via [`@stevekrouse.formFeedbackAlert`](https://www.val.town/v/stevekrouse.formFeedbackAlert) instead of sending it along to Discord directly in this val. I [tried that originally](https://www.val.town/v/stevekrouse.docFeedbackForm?v=61) but it felt too slow to wait for the API call to Discord before returning the "Thanks for your feedback" message. This is where the `context.waitUntil` method (that Cloudflare workers and Vercel Edge Functions support) would really come in handy – those allow you to return a Response, and then continue to compute. Currently Val Town requires you to stop all compute with the returning of your Response, so the only way to compute afterwards is to queue it up for another val to take over, and that's what I'm doing here.
33
34

honoExampleREADME.md1 match

@bis•Updated 1 year ago
1# Hono
2
3Here's an example using the [Hono](https://hono.dev/) server library with the [Web API](https://docs.val.town/api/web). It works great!

thisUrlREADME.md1 match

@wilt•Updated 1 year ago
1Programmatically get the API URLs for the val that calls this val. For example:
2
3```typescript

runPostExampleREADME.md1 match

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

runGetExampleREADME.md1 match

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

runREADME.md1 match

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

migrateREADME.md1 match

@neverstew•Updated 1 year ago
6![Capture-2023-09-14-191958.png](https://imagedelivery.net/iHX6Ovru0O7AjmyT5yZRoA/0cfcddd2-59fc-4c8f-9322-4eba878f5400/public)
7
81. Make sure you have your Val Town API Token saved in your secrets. See more about [authentication](https://docs.val.town/api/authentication) to understand how to generate a token.
91. Make sure you've [set up your turso database](https://www.val.town/v/std.turso)
101. **[👆Fork this val](https://www.val.town/v/neverstew.migration)**

aliasValExampleREADME.md1 match

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

HN-fetch-call2 file matches

@ImGqb•Updated 12 hours ago
fetch HackerNews by API

token-server1 file match

@kwhinnery_openai•Updated 2 days ago
Mint tokens to use with the OpenAI Realtime API for WebRTC
Kapil01
apiv1