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=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 11482 results for "api"(1564ms)

getRunsREADME.md2 matches

@neverstew•Updated 1 year ago
3Fetches information about runs of any val you author.
4
5Requires 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.
6
7Migrated from folder: docs/api/getRuns

getMeREADME.md2 matches

@neverstew•Updated 1 year ago
2Fetches information about yourself.
3
4Requires 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/getMe

errorNotifyREADME.md1 match

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

receivedNewCommentsREADME.md1 match

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

valtownApiTypesImportTestREADME.md1 match

@stevekrouse•Updated 1 year ago
1Migrated from folder: Archive/valtownApiTypesImportTest

valtownOpenAPIREADME.md5 matches

@pomdtr•Updated 1 year ago
1# [Val Town Typescript Spec](https://pomdtr-valtownOpenAPI.web.val.run)
2
3This val return an up-to-date typescript version of the val.town openapi spec for usage with a [feTS](https://github.com/ardatan/feTS) client.
4
5## Usage
9```typecript
10import { createClient, type NormalizeOAS } from "npm:fets";
11import openapi from "https://pomdtr-valtownOpenAPI.web.val.run/openapi.ts";
12
13export const client = createClient<NormalizeOAS<typeof openapi>>({
14 endpoint: openapi.servers[0].url,
15});
16```

newValTownOpenAPIREADME.md1 match

@stevekrouse•Updated 1 year ago
1Migrated from folder: Archive/newValTownOpenAPI

generateValCodeAPIREADME.md1 match

@andreterron•Updated 1 year ago
1Migrated from folder: A_Make_A_Val_Day/_23_07_27_Generate_Val/generateValCodeAPI

createGeneratedValREADME.md2 matches

@andreterron•Updated 1 year ago
1# Use GPT to generate vals on your account!
2
3Describe the val that you need, call this function, and you'll get a new val on your workspace generated by OpenAI's API!
4
5First, ensure you have a [Val Town API Token](https://www.val.town/settings/api), then call `@andreterron.createGeneratedVal({...})` like this [example](https://www.val.town/v/andreterron.untitled_tomatoKiwi):
6
7```javascript

arenaApiExampleREADME.md4 matches

@tmcw•Updated 1 year ago
1# Are.na API
2
3Example of using the [are.na](https://dev.are.na/documentation/channels#Block43472) API to get the contents of an Are.na board - specifically my fun board that showcases websites with that "glossy black style."
4
5All you need is [fetch](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API) to make this happen!
6
7Migrated from folder: API_Examples/arenaApiExample

gptApiTemplate2 file matches

@charmaine•Updated 2 hours ago

mod-interview-api1 file match

@twschiller•Updated 18 hours ago
apiv1
papimark21