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=1016&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 12063 results for "api"(1434ms)

githubFollowingmain.tsx1 match

@gerardUpdated 1 year ago
3// Github following
4export let githubFollowing = fetchJSON(
5 "https://api.github.com/users/stevekrouse/following"
6);

myApimain.tsx1 match

@pigrangeUpdated 1 year ago
1export function myApi(name) {
2 return JSON.parse(
3 '{"code": 0,"message": "success","data": {"param1": "va success"}}',

biliStreammain.tsx1 match

@nishuiUpdated 1 year ago
25 const id = idArray[i];
26 const request = fetch(
27 `https://api.live.bilibili.com/room/v1/Room/room_init?id=${id}`,
28 ).then((data) => data.json());
29 requests.push(request);

bggTestmain.tsx1 match

@claytonUpdated 1 year ago
3export const bggTest = async function () {
4 const xml = await fetchXML(
5 "https://boardgamegeek.com/xmlapi2/plays?username=acciopatronus",
6 );
7 return xml;

rawmain.tsx1 match

@neverstewUpdated 1 year ago
4 const [owner, name] = val.slice(1).split(".") as string[];
5 return fetchJSON(
6 `https://api.val.town/v1/alias/${owner}/${name}`,
7 )
8 .then(({ code }) => code);

runmain.tsx1 match

@neverstewUpdated 1 year ago
4 { username, valName, data, token }: Params,
5): Promise<Result> {
6 let url = `https://api.val.town/v1/run/${username}.${valName}`;
7 const headers: HeadersInit = {};
8 if (token)

myApimain.tsx1 match

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

githubUsermain.tsx1 match

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

handleSanguineGithubWebhookmain.tsx1 match

@nicoUpdated 1 year ago
43 console.log("access_token: ", data);
44 // // Fetch user information using the access token
45 const userResponse: any = await fetch("https://api.github.com/user", {
46 headers: {
47 "Authorization": `Bearer ${accessToken}`,

myApimain.tsx1 match

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

social_data_api_project3 file matches

@tsuchi_yaUpdated 1 day ago

simple-scrabble-api1 file match

@bryUpdated 4 days ago
papimark21
socialdata
Affordable & reliable alternative to Twitter API: ➡️ Access user profiles, tweets, followers & timeline data in real-time ➡️ Monitor profiles with nearly instant alerts for new tweets, follows & profile updates ➡️ Simple integration