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/image-url.jpg%20%22Optional%20title%22?q=api&page=1071&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 11798 results for "api"(1575ms)

myApimain.tsx1 match

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

searchClosestWikimain.tsx2 matches

@fab1anUpdated 1 year ago
11 "https://deno.land/x/deno_dom/deno-dom-wasm.ts"
12 );
13 const searchUrl = `https://en.wikipedia.org/w/api.php?action=query&list=search&srsearch=${encodeURIComponent(
14 searchQuery
15 )}&srwhat=text&format=json&utf8=1&origin=*`;
20 }
21 const pageTitle = searchData.query.search[0].title;
22 const contentUrl = `https://en.wikipedia.org/w/api.php?action=query&prop=extracts&exintro&titles=${encodeURIComponent(
23 pageTitle
24 )}&format=json&utf8=1&origin=*`;

myApimain.tsx1 match

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

myApimain.tsx1 match

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

myApimain.tsx1 match

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

countmain.tsx1 match

@bajUpdated 1 year ago
1export const count = (async () => {
2 let count = 0;
3 function myApi() {
4 return count++;
5 }

githubStarsmain.tsx1 match

@joshmockUpdated 1 year ago
2
3export async function githubStars(username) {
4 let res = await fetch(`https://api.github.com/users/${username}/starred`);
5 return await res.json();
6}

myApimain.tsx1 match

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

getGithubUserViaOctokitmain.tsx1 match

@vtdocsUpdated 1 year ago
5 username,
6 headers: {
7 "X-GitHub-Api-Version": "2022-11-28",
8 },
9 });

telegramSendPhotomain.tsx1 match

@vtdocsUpdated 1 year ago
16}) =>
17 fetchJSON(
18 `https://api.telegram.org/bot${botToken}/sendPhoto`,
19 {
20 method: "POST",

social_data_api_project3 file matches

@tsuchi_yaUpdated 5 hours ago

new-val-api-21 file match

@shouserUpdated 16 hours ago
This is an example of using the API to create a val.
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