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=1376&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 14963 results for "api"(1925ms)

valtownApiTypesImportTestmain.tsx4 matches

@stevekrouse•Updated 1 year ago
1export let valtownApiTypesImportTest = (async () => {
2 const openapi = await import("https://esm.sh/valtown-api-types@0.1.1");
3 console.log(Object.keys(openapi));
4})();
5// Forked from @nbbaier.valtownApiTypesImportTest

myApimain.tsx1 match

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

myApimain.tsx1 match

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

myApimain.tsx1 match

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

testApimain.tsx1 match

@clayway•Updated 1 year ago
1export async function testApi(request: Request): Promise<Response> {
2 if (request.method !== "POST") {
3 return Response.json({

myApimain.tsx1 match

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

githubEventsmain.tsx1 match

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

myApimain.tsx1 match

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

myApimain.tsx1 match

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

myApimain.tsx1 match

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

HN-fetch-call2 file matches

@ImGqb•Updated 10 hours ago
fetch HackerNews by API

token-server1 file match

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