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%22Image%20title%22?q=api&page=1025&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 12148 results for "api"(1834ms)

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}

myApimain.tsx1 match

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

myApimain.tsx1 match

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

shittyValTownUImain.tsx2 matches

@vezUpdated 1 year ago
8 isInterval?: boolean;
9 }) =>
10 `fetch('https://api.val.town/eval/@vez.editVal(${JSON.stringify(body)})')`;
11 return res.send(`<h1>Shitty Val Town 2</h1>
12${(await getAllVals("@vez")).map(({ code, name }) => {
13 const editorId = `${name}-editor`;
14 const onClick = `(document.getElementById('${name}-button').textContent = 'save 🔄'), fetch('https://api.val.town/eval/@vez.editVal', { method: 'POST', body: JSON.stringify({ name: '${name}', code: document.getElementById('${editorId}').value })}).then(()=>(document.getElementById('${name}-button').textContent = 'save ✅'))`;
15 return `<h2>${name}</h2>
16<textarea id="${editorId}" rows="20" cols="120">${escapeHtml(

myApimain.tsx1 match

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

myApimain.tsx1 match

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

postTweetmain.tsx1 match

@andreterronUpdated 1 year ago
8 };
9}) {
10 return fetchJSON(`https://api.twitter.com/2/tweets`, {
11 method: "POST",
12 headers: {

groq-vapi-demo1 file match

@yawnxyzUpdated 4 hours ago

social_data_api_project3 file matches

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