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/$2?q=api&page=1654&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 18281 results for "api"(4313ms)

octokitExamplemain.tsx1 match

@vtdocs•Updated 1 year ago
5 username: "stevekrouse",
6 headers: {
7 "X-GitHub-Api-Version": "2022-11-28",
8 },
9 });

appendToCommentsmain.tsx1 match

@vtdocs•Updated 1 year ago
2
3export const appendToComments = (
4 // the Run API accepts any number of JSON-encoded args
5 // here we accept a single arg
6 data: any,

myApimain.tsx1 match

@wesbos•Updated 1 year ago
1import { guestCount } from "https://esm.town/v/wesbos/guestCount";
2
3export function myApi(name) {
4 return "hi" + guestCount;
5}

usermain.tsx1 match

@neverstew•Updated 1 year ago
10 profileImageUrl: string;
11}> =>
12 fetchJSON(`https://api.val.town/v1/users/${id}`, {
13 headers: token
14 ? {

deleteValVersionmain.tsx1 match

@neverstew•Updated 1 year ago
6 version: number;
7}): Promise<Response> {
8 return fetch(`https://api.val.town/v1/vals/${id}/versions/${version}`, {
9 headers: {
10 Authorization: `Bearer ${token}`,

myApimain.tsx1 match

@zokonil•Updated 1 year ago
1export function myApi(name) {
2 return "hi " + name;
3}

myApimain.tsx1 match

@johannesbraeunig•Updated 1 year ago
1export function myApi(name) {
2 return "hi " + name;
3}

myApimain.tsx1 match

@imandel•Updated 1 year ago
1export function myApi(name) {
2 return "hi " + name;
3}

myApimain.tsx1 match

@blaiselp•Updated 1 year ago
1export function myApi(name) {
2 return "hi " + name;
3}

openaiCompletionmain.tsx1 match

@fgeierst•Updated 1 year ago
3export const openaiCompletion = async (prompt) => {
4 const { OpenAI } = await import("https://deno.land/x/openai/mod.ts");
5 const openAI = new OpenAI(process.env.OPENAI_API_KEY);
6 const completion = openAI.createCompletion({
7 model: "text-davinci-003",

github-api1 file match

@cricks_unmixed4u•Updated 13 hours ago

beeminder-api4 file matches

@cricks_unmixed4u•Updated 14 hours ago
apiry
Kapil01