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=671&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 12118 results for "api"(1413ms)

cerebras_codermain.tsx5 matches

@anup•Updated 4 months ago
212 } catch (error) {
213 Toastify({
214 text: "We may have hit our Cerebras Usage limits. Try again later or fork this and use your own API key.",
215 position: "center",
216 duration: 3000,
1024 };
1025 } else {
1026 const client = new Cerebras({ apiKey: Deno.env.get("CEREBRAS_API_KEY") });
1027 const completion = await client.chat.completions.create({
1028 messages: [
1149 <meta name="viewport" content="width=device-width, initial-scale=1.0">
1150 <title>CerebrasCoder</title>
1151 <link rel="preconnect" href="https://fonts.googleapis.com" />
1152 <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
1153 <link
1154 href="https://fonts.googleapis.com/css2?family=DM+Mono:ital,wght@0,300;0,400;0,500;1,300;1,400;1,500&family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&display=swap"
1155 rel="stylesheet"
1156 />
1165 <meta property="og:description" content="Turn your ideas into fully functional apps in less than a second – powered by Llama3.3-70b on Cerebras's super-fast wafer chips. Code is 100% open-source, hosted on Val Town."">
1166 <meta property="og:type" content="website">
1167 <meta property="og:image" content="https://stevekrouse-blob_admin.web.val.run/api/public/CerebrasCoderOG.jpg">
1168
1169

weathermain.tsx1 match

@gao•Updated 4 months ago
55 try {
56 const response = await fetch(
57 "https://api.open-meteo.com/v1/forecast?latitude=1.3521&longitude=103.8198&hourly=temperature_2m,weathercode&current_weather=true&temperature_unit=celsius&windspeed_unit=kmh&precipitation_unit=mm&timezone=Asia%2FSingapore&forecast_days=1"
58 );
59 const data = await response.json();

cerebras_coderREADME.md2 matches

@tonyStark•Updated 4 months ago
6
71. Sign up for [Cerebras](https://cloud.cerebras.ai/)
82. Get a Cerebras API Key
93. Save it in a [Val Town environment variable](https://www.val.town/settings/environment-variables) called `CEREBRAS_API_KEY`
10
11# Todos

cerebras_codermain.tsx5 matches

@tonyStark•Updated 4 months ago
212 } catch (error) {
213 Toastify({
214 text: "We may have hit our Cerebras Usage limits. Try again later or fork this and use your own API key.",
215 position: "center",
216 duration: 3000,
1024 };
1025 } else {
1026 const client = new Cerebras({ apiKey: Deno.env.get("CEREBRAS_API_KEY") });
1027 const completion = await client.chat.completions.create({
1028 messages: [
1149 <meta name="viewport" content="width=device-width, initial-scale=1.0">
1150 <title>CerebrasCoder</title>
1151 <link rel="preconnect" href="https://fonts.googleapis.com" />
1152 <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
1153 <link
1154 href="https://fonts.googleapis.com/css2?family=DM+Mono:ital,wght@0,300;0,400;0,500;1,300;1,400;1,500&family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&display=swap"
1155 rel="stylesheet"
1156 />
1165 <meta property="og:description" content="Turn your ideas into fully functional apps in less than a second – powered by Llama3.3-70b on Cerebras's super-fast wafer chips. Code is 100% open-source, hosted on Val Town."">
1166 <meta property="og:type" content="website">
1167 <meta property="og:image" content="https://stevekrouse-blob_admin.web.val.run/api/public/CerebrasCoderOG.jpg">
1168
1169

KPoolCafeGameMenumain.tsx1 match

@Kpool•Updated 4 months ago
445 <title>KPool Gaming Cafe</title>
446 <meta name="viewport" content="width=device-width, initial-scale=1">
447 <link href="https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;700&display=swap" rel="stylesheet">
448 <style>
449 body {

astuteYellowDeermain.tsx3 matches

@vesty91•Updated 4 months ago
148 <ul>
149 <li><i className="fas fa-shield-alt"></i> Protection contre la perte de données</li>
150 <li><i className="fas fa-history"></i> Restauration rapide en cas de problème</li>
151 <li><i className="fas fa-user-lock"></i> Confidentialité assurée</li>
152 </ul>
201 <h2><i className="fas fa-star"></i> Avantages :</h2>
202 <ul>
203 <li><i className="fas fa-bolt"></i> Résolution rapide des problèmes</li>
204 <li><i className="fas fa-clock"></i> Disponibilité étendue</li>
205 <li><i className="fas fa-home"></i> Pas besoin de vous déplacer</li>
232 <li><i className="fas fa-check"></i> Réglages régionaux (langue, fuseau horaire, clavier)</li>
233 <li><i className="fas fa-check"></i> Installation des mises à jour critiques et nécessaires</li>
234 <li><i className="fas fa-check"></i> Diagnostic matériel rapide</li>
235 <li><i className="fas fa-check"></i> Vérification de la compatibilité matérielle</li>
236 <li><i className="fas fa-check"></i> Guide et conseils</li>
10const CONFIG = {
11 TOKEN_ADDRESS: "BXNGghGbqrt2PcM3Y2Une5fD4kbU6VVSPC4uPjf8pump",
12 RPC_ENDPOINT: "https://api.mainnet-beta.solana.com",
13 MAX_TRANSACTION_AMOUNT: 1000000,
14};

gsheet_call_loggedmain.tsx3 matches

@rochambeau314•Updated 4 months ago
6 );
7 const googleAuthOptions = {
8 scope: ["https://www.googleapis.com/auth/spreadsheets"],
9 };
10 const token = await getToken(service_account, googleAuthOptions);
11 console.log(`https://sheets.googleapis.com/v4/spreadsheets/${sheet_id}/${action}`);
12 const result = fetchJSON(
13 `https://sheets.googleapis.com/v4/spreadsheets/${sheet_id}/${action}`,
14 {
15 method,

gsheet_call_loggedREADME.md3 matches

@rochambeau314•Updated 4 months ago
1# gsheet_specific_call
2Wrapper around Google Sheets API v4.
3(forked from mattx/gsheet_call; adds functionality to specify the sheet to make changes to)
4
7- sheet_id: Google Sheet ID
8- method: HTTP method to use
9- action: Full URL with `https://sheets.googleapis.com/v4/spreadsheets/{spreadsheetId}/` removed
10- data: HTTP request body
11
12## Requirements
13- a Google Cloud service account
14- the Google Sheets API v4 enabled in your Google Cloud project
15- the spreadsheet ID (provide it in the sheet_id parameter)
16

cryptoVolumeTraderAdvicemain.tsx2 matches

@Sabji•Updated 4 months ago
19 async function fetchCryptoData() {
20 try {
21 const priceResponse = await fetch('https://api.coingecko.com/api/v3/simple/price?ids=bitcoin,ethereum,dogecoin&vs_currencies=usd&include_24hr_change=true');
22 const priceData = await priceResponse.json();
23
24 const volumeResponse = await fetch('https://api.coingecko.com/api/v3/coins/markets?vs_currency=usd&ids=bitcoin,ethereum,dogecoin&order=market_cap_desc&per_page=3&page=1&sparkline=false&price_change_percentage=24h');
25 const volumeData = await volumeResponse.json();
26

social_data_api_project3 file matches

@tsuchi_ya•Updated 1 day ago

simple-scrabble-api1 file match

@bry•Updated 5 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