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=1047&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 11604 results for "api"(989ms)

myApimain.tsx1 match

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

myApimain.tsx1 match

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

checkAndroidBingAppsmain.tsx1 match

@cescyangUpdated 1 year ago
5 const { default: axios } = await import("npm:axios");
6 const url =
7 "https://sapphire.api.microsoftapp.net/config/api/v1/get?setmkt=en-us&setplatform=android&setchannel=production&settenant=sapphire-bing";
8 try {
9 const response = await fetch(url, {

myApimain.tsx1 match

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

webhook2main.tsx1 match

@sunkidUpdated 1 year ago
3export let webhook2 = (params) => {
4 untitled6313446 = fetch(
5 "https://market-backend.api.2gis.ru/5.0/product/items?q=water&point1=37.87550034485333,51.32652258650344&point2=37.94900977933917,51.293266520365684&locale=ru_RU&page=1&page_size=12&feature_config=categories_without_fake_first_level,range_price_type_supported,from_price_type_supported"
6 ).then((x) => console.log(x));
7};

extractOnThisDayStorymain.tsx1 match

@fab1anUpdated 1 year ago
10 const getOnThisDayContent = async (MM, DD) => {
11 const url =
12 `https://api.wikimedia.org/feed/v1/wikipedia/en/onthisday/all/${MM}/${DD}`;
13 try {
14 const response = await fetch(url);

staleGithubPRsmain.tsx2 matches

@ramkarthikUpdated 1 year ago
11 "headers": {
12 "Authorization": "Bearer " + token,
13 "X-GitHub-Api-Version": "2022-11-28",
14 },
15 };
16 let data = await fetchJSON(
17 `https://api.github.com/repos/${owner}/${repo}/pulls`,
18 options,
19 );

raindropBookmarksmain.tsx1 match

@ramkarthikUpdated 1 year ago
9 };
10 let data = await fetchJSON(
11 "https://api.raindrop.io/rest/v1/raindrops/0?perpage=20&page=" + page,
12 options,
13 );

githubUsermain.tsx1 match

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

myApimain.tsx1 match

@jackbridgerUpdated 1 year ago
1export function myApi(name) {
2 return "hi " + name + " want to come on Scaling DevTools?";
3}

new-val-api-21 file match

@shouserUpdated 11 hours ago
This is an example of using the API to create a val.

gptApiTemplate2 file matches

@charmaineUpdated 1 day 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