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=1440&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 16337 results for "api"(1283ms)

errorNotifymain.tsx1 match

@stevekrouse•Updated 1 year ago
8 token: process.env.valtown,
9 error: true,
10 source: ["api", "interval", "email"],
11 since: interval.lastRunAt,
12 });
15 const llm = new ChatOpenAI({
16 modelName: "gpt-3.5-turbo",
17 openAIApiKey: process.env.OPENAI_API_KEY,
18 temperature: 0,
19 });

myApimain.tsx1 match

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

myApimain.tsx1 match

@treblegni•Updated 1 year ago
1export function myApi(name) {
2 const random = Math.random(100);
3 return {

getSeattleSubwayInstagramPostsmain.tsx1 match

@steven•Updated 1 year ago
5): Promise<Response> => {
6 let data = await fetch(
7 `https://api.apify.com/v2/acts/apify~instagram-post-scraper/runs/last/dataset/items?token=apify_api_wi6mnWH8aJ5yiwv3ePmYV7BI31yTE13ameye`,
8 );
9 let jsonData = await data.json();

myApimain.tsx1 match

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

myApimain.tsx1 match

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

myApimain.tsx1 match

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

currencymain.tsx2 matches

@ernest•Updated 1 year ago
3export let currency = async (base = "eur", desired, amount = 1) => {
4 let { rates } = await fetchJSON(
5 "https://open.er-api.com/v6/latest/eur"
6 );
7 if (rates && rates[desired.toUpperCase()])
9 else {
10 let { rates } = await fetchJSON(
11 "https://api.coingecko.com/api/v3/exchange_rates"
12 );
13 return (

myApimain.tsx1 match

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

Schedule

@Ozy•Updated 49 mins ago
Schedule_api

googleGeminiAPI2 file matches

@michaelwschultz•Updated 17 hours ago
Kapil01
apiv1