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/image-url.jpg%20%22Image%20title%22?q=api&page=1076&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 11661 results for "api"(2222ms)

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

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\

new-val-api-21 file match

@shouser•Updated 20 hours ago
This is an example of using the API to create a val.

gptApiTemplate2 file matches

@charmaine•Updated 2 days ago
mux
Your friendly, neighborhood video API.
api