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/$%7Burl%7D?q=api&page=1052&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 11746 results for "api"(1991ms)

myApimain.tsx1 match

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

vibe_playgroundmain.tsx1 match

@ryanguillUpdated 1 year ago
58 </div>
59
60 <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
61 <script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js"></script>
62</body>

myApimain.tsx1 match

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

TodayForTylermain.tsx1 match

@mttlwsUpdated 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

@rodrigotelloUpdated 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

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

myApimain.tsx1 match

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

myApimain.tsx1 match

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

myApimain.tsx1 match

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

myApimain.tsx1 match

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

gpt-image-test

@CaptainJackUpdated 13 hours ago
测试 gpt image 的不同 api 能否满足图片生成要求

new-val-api-21 file match

@shouserUpdated 1 day ago
This is an example of using the API to create a val.
snartapi
apiv1