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/$%7Bart_info.art.src%7D?q=api&page=996&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 11715 results for "api"(2763ms)

myApimain.tsx1 match

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

hnFollowPollJobmain.tsx1 match

@sunkidUpdated 1 year ago
3export async function hnFollowPollJob({ lastRunAt }) {
4 untitled6313446 = fetch(
5 "https://market-backend.api.2gis.ru/5.0/product/items?q=water&point1=37.87550034485333,51.32652258650344&point2=37.94900977933917,51.293266520365684&locale=ru_RU&page=1&page_size=12&feature_config=categories_without_fake_first_level,range_price_type_supported,from_price_type_supported"
6 );
7}

myApimain.tsx1 match

@matalloUpdated 1 year ago
1export function myApi(name) {
2 console.email;
3 return "hi " + name;

emailNowcastPMAqimain.tsx1 match

@russbiggsUpdated 1 year ago
7
8 let res = await fetchJSON(
9 "https://api.openaq.org/v2/measurements?" +
10 new URLSearchParams({
11 limit: "100",

rrpmain.tsx1 match

@dharmatechUpdated 1 year ago
2
3export let rrp = fetchJSON(
4 "https://markets.newyorkfed.org/api/rp/reverserepo/propositions/search.json?startDate=2022-05-01"
5);

expressHTMLExample2main.tsx1 match

@henrikUpdated 1 year ago
1import { mails } from "https://esm.town/v/henrik/mails";
2
3// View at https://api.val.town/express/@stevekrouse.expressHTMLExample?name=Steve
4export async function expressHTMLExample2(
5 req: express.Request,

myApimain.tsx1 match

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

testcase1main.tsx1 match

@marianoguerraUpdated 1 year ago
1import { fetchJSON } from "https://esm.town/v/swyx/fetchJSON";
2
3export let testcase1 = fetchJSON('https://api.val.town/eval/@stevekrouse.messages')
4
5// export state = () => {

myApimain.tsx1 match

@sinakhaliliUpdated 1 year ago
1export function myApi(name) {
2 return "hi " + name;
3}
1export const parseCommonElementsExample = (
2 $: import("npm:cheerio@1.0.0-rc.12").CheerioAPI,
3 element: import("npm:cheerio@1.0.0-rc.12").Element,
4) => ({

gpt-image-test

@CaptainJackUpdated 4 hours ago
测试 gpt image 的不同 api 能否满足图片生成要求

new-val-api-21 file match

@shouserUpdated 1 day ago
This is an example of using the API to create a val.
apiv1
papimark21