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=48&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 19255 results for "api"(1258ms)

fetchValTownAPI2 file matches

@pomdtr•Updated 1 year ago

myApi1 file match

@patrickwire•Updated 1 year ago

myApi1 file match

@domru•Updated 1 year ago

myApi1 file match

@marydotdev•Updated 1 year ago

testApi2 file matches

@andreterron•Updated 1 year ago

myApi1 file match

@timur•Updated 1 year ago

myApi1 file match

@alby•Updated 1 year ago

myApi1 file match

@tannerwj•Updated 1 year ago

myApi1 file match

@evilpaper•Updated 1 year ago

myApi1 file match

@dereko•Updated 1 year ago

invest-trackerprice_alert_cron.tsx2 matches

@samxii777•Updated 48 mins ago
51async function sendWhatsApp(text: string) {
52 const enc = encodeURIComponent(text.substring(0, 900)); // 900 char max
53 const url = `https://api.callmebot.com/whatsapp.php?phone=${PHONE}`
54 + `&text=${enc}&apikey=${KEY}`;
55 await fetch(url).then(r => r.text());
56}

html-snippets-V2snippets.js6 matches

@arfan•Updated 49 mins ago
3 constructor() {
4 this.snippets = [];
5 this.API_BASE = '/backend/api';
6 }
7
8 // Load all snippets from API
9 async loadSnippets() {
10 try {
11 const response = await fetch(`${this.API_BASE}/snippets`);
12 const result = await response.json();
13
97 try {
98 const url = isUpdate && snippetId
99 ? `${this.API_BASE}/snippets/${snippetId}`
100 : `${this.API_BASE}/snippets`;
101
102 const method = isUpdate ? 'PUT' : 'POST';
127 async deleteSnippet(id) {
128 try {
129 const response = await fetch(`${this.API_BASE}/snippets/${id}`, {
130 method: 'DELETE',
131 });
apiry
snartapi