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=1060&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"(1381ms)

deleteValExampleREADME.md2 matches

@neverstew•Updated 1 year ago
2Deletes a specific val.
3
4Pass your API token as a secret to the function. Read more about [authentication](https://docs.val.town/api/authentication) to understand how to generate a token and save it as a secret.
5
6Migrated from folder: docs/api/deleteValExample

deleteValREADME.md1 match

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

isRequestREADME.md1 match

@karfau•Updated 1 year ago
1A type guard for vals that expect a WebApi `Request` as the first parameter.
2
3Since a val can be invoked by run, web, express or even email, the correct type for a web endpoint should be `req?: Request | unknown`.
14- the PR is authored authored by one of the users listed in `allowedAuthors` (line 5)\
15 (else response is `202: Ignored (pr author)`)
16- the `githubApiToken` configured in line 9 needs to have `repo` access to the related repository\
17 (else response is `50x: some error message`)
18- a branch protection has to be configured that requires at least one review approval and at least one status check\

translateREADME.md1 match

@yieldray•Updated 1 year ago
1# [Translator](https://yieldray-translate.web.val.run)
2using a [public deepl api](https://deepl.deno.dev)
3
4Migrated from folder: http/translate

referencesNotifyREADME.md1 match

@andreterron•Updated 1 year ago
4
5### Setup
61. Create a [Val Town API Token](https://www.val.town/settings/api)
72. Add it to [your secrets](https://www.val.town/settings/secrets) as `valtown`
83. Fork & Run this val

emailREADME.md2 matches

@std•Updated 1 year ago
57You can attach files to your emails by using the `attachments` field.
58Attachments need to be [Base64](https://en.wikipedia.org/wiki/Base64) encoded,
59which is what the [btoa](https://developer.mozilla.org/en-US/docs/Web/API/btoa)
60method is doing in this example:
61
94```
95
96This is also [documented in our REST API](https://docs.val.town/openapi#/tag/emails/POST/v1/email), and supported in the [SDK](https://docs.val.town/api/sdk/).
97
98

aliveREADME.md1 match

@stevekrouse•Updated 1 year ago
1# Human Alive-ness API
2
3It works by querying Wikidata via SPARQL to search for birth and death dates of a person.

wikidataREADME.md1 match

@stevekrouse•Updated 1 year ago
17## Learn more
18
19* https://agg-shashank.medium.com/an-introduction-to-using-wikidata-apis-a678ee6d2968
20
21Migrated from folder: Archive/wikidata

getValREADME.md2 matches

@neverstew•Updated 1 year ago
2Gets information about a specific val.
3
4To access private vals, pass your API token as a secret to the function. Read more about [authentication](https://docs.val.town/api/authentication) to understand how to generate a token and save it as a secret.
5
6Migrated from folder: docs/api/getVal

gptApiTemplate2 file matches

@charmaine•Updated 7 hours ago

mod-interview-api1 file match

@twschiller•Updated 23 hours ago
apiv1
papimark21