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=1017&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 11023 results for "api"(984ms)

jsonOkExampleREADME.md1 match

@tmcwUpdated 1 year ago
3This val produces the JSON `{ ok: true }` at the URL: https://tmcw-jsonokexample.web.val.run/
4
5Migrated from folder: Web_API/jsonOkExample

biliStreamREADME.md1 match

@nishuiUpdated 1 year ago
1## what is this?
2
3~这是一个用来检测主播是否直播,访问方法为:https://api.val.town/v1/run/nishui.biliStream?args=[xxx]~
4~其中 args=[id] 中的 `id` 是直播房间号码~
5

getRunsREADME.md2 matches

@neverstewUpdated 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

@neverstewUpdated 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

@stevekrouseUpdated 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

@andreterronUpdated 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
1Migrated from folder: Archive/valtownApiTypesImportTest

valtownOpenAPIREADME.md5 matches

@pomdtrUpdated 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

@stevekrouseUpdated 1 year ago
1Migrated from folder: Archive/newValTownOpenAPI

generateValCodeAPIREADME.md1 match

@andreterronUpdated 1 year ago
1Migrated from folder: A_Make_A_Val_Day/_23_07_27_Generate_Val/generateValCodeAPI

daily-advice-app1 file match

@dcm31Updated 2 days ago
Random advice app using Advice Slip API

gptApiTemplate1 file match

@charmaineUpdated 3 days ago
apiv1
papimark21