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=1676&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 18008 results for "api"(6109ms)

myApimain.tsx1 match

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

TodayForTylermain.tsx1 match

@mttlws•Updated 1 year ago
3export async function TodayForTyler(req: express.Request, res: express.Response) {
4 const { activity } = await fetchJSON(
5 "https://www.boredapi.com/api/activity",
6 );
7 return res.send(`

fetchFigmaFilemain.tsx3 matches

@rodrigotello•Updated 1 year ago
1import { fetch } from "https://esm.town/v/std/fetch";
2
3export async function fetchFigmaFile(apiToken, fileKey) {
4 const url = `https://api.figma.com/v1/files/${fileKey}`;
5 const response = await fetch(url, {
6 headers: {
7 "X-FIGMA-TOKEN": apiToken,
8 },
9 });

myApimain.tsx1 match

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

myApimain.tsx1 match

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

myApimain.tsx1 match

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

myApimain.tsx1 match

@thedro•Updated 1 year ago
1export const myApi = ((input) => {
2 var inner = (name) => {
3 return "hello " + name;

myApimain.tsx1 match

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

myApimain.tsx1 match

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

myApimain.tsx1 match

@caseywoolley•Updated 1 year ago
1export function myApi(name, welcome) {
2 return "hi " + name + `, ${welcome}`;
3}

Apiify7 file matches

@wolf•Updated 41 mins ago

dailyQuoteAPI

@Souky•Updated 2 days ago
Kapil01
apiv1