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/$%7Bsuccess?q=api&page=1426&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 15549 results for "api"(1183ms)

myApimain.tsx1 match

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

myApimain.tsx1 match

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

starWarsmain.tsx1 match

@dosirak•Updated 1 year ago
2
3export let starWars = fetchJSON(
4 "https://swapi.dev/api/people/1/"
5);

myApimain.tsx1 match

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

myApimain.tsx1 match

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

myApimain.tsx1 match

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

ipmain.tsx1 match

@ian•Updated 1 year ago
1import { fetchJSON } from "https://esm.town/v/ian/fetchJSON";
2
3export let ip = await fetchJSON("https://api.ipify.org?format=json ");

myApimain.tsx1 match

@vandyand•Updated 1 year ago
1export function myApi(name) {
2 if (!name) {
3 return "hi you!";

myApimain.tsx1 match

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

gitlabUserContributionEventsmain.tsx3 matches

@rwev•Updated 1 year ago
5 const after = new Date(afterDateMs).toISOString().split("T")[0];
6 console.log(after);
7 // https://docs.gitlab.com/ee/api/events.html#get-user-contribution-events
8 let userEvents = await fetchJSON(
9 `gitlab.com/api/v4/users/rwev/events?after=${after}`,
10 {
11 headers: {
12 Authorization: `Bearer ${process.env.GITLAB_API_READ_USER}`,
13 },
14 }

HN-fetch-call2 file matches

@ImGqb•Updated 3 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