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=1436&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 15484 results for "api"(3957ms)

myApimain.tsx1 match

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

myApimain.tsx1 match

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

myApimain.tsx1 match

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

githubUsermain.tsx1 match

@axel_sb•Updated 1 year ago
3// Github profile
4export let githubUser = fetchJSON(
5 "https://api.github.com/users/stevekrouse"
6);

githubFollowersmain.tsx1 match

@roald87•Updated 1 year ago
3// GitHub followers
4export let githubFollowers = fetchJSON(
5 "https://api.github.com/users/stevekrouse/followers"
6);

dlockmain.tsx1 match

@karfau•Updated 1 year ago
104 }
105 else {
106 const message = `Unexpected response from API: ${
107 JSON.stringify({ lease, error, deadline })
108 }`;

myApimain.tsx1 match

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

myApimain.tsx1 match

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

big_story_visualizationmain.tsx1 match

@tmcw•Updated 1 year ago
24 import * as Plot from "https://cdn.jsdelivr.net/npm/@observablehq/plot@0.6.9/+esm";
25 import {debounce} from "https://cdn.jsdelivr.net/npm/lodash-es@4.17.21/+esm";
26 const ranks = await (await fetch('https://api.val.town/v1/run/tmcw.big_stories_ranks')).json();
27
28 let allDates = new Set();

privateAPIAuthenticatedmain.tsx2 matches

@stevekrouse•Updated 1 year ago
2import { fetchJSON } from "https://esm.town/v/stevekrouse/fetchJSON";
3
4export const privateAPIAuthenticated = fetchJSON(
5 "https://api.val.town/v1/run/stevekrouse.example3",
6 {
7 method: "GET",

HN-fetch-call2 file matches

@ImGqb•Updated 2 days ago
fetch HackerNews by API

token-server1 file match

@kwhinnery_openai•Updated 4 days ago
Mint tokens to use with the OpenAI Realtime API for WebRTC
Kapil01
apiv1