1import { fetch } from "https://esm.town/v/std/fetch";
2
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 );
1import { nowcastPMAqi } from "https://esm.town/v/russbiggs/nowcastPMAqi";
2import { fetchJSON } from "https://esm.town/v/stevekrouse/fetchJSON?v=41";
3
4export let emailNowcastPMAqi = async () => {
6 const dateTo = new Date();
7
8 let res = await fetchJSON(
9 "https://api.openaq.org/v2/measurements?" +
10 new URLSearchParams({
1import { fetchJSON } from "https://esm.town/v/stevekrouse/fetchJSON?v=41";
2
3export let rrp = fetchJSON(
4 "https://markets.newyorkfed.org/api/rp/reverserepo/propositions/search.json?startDate=2022-05-01"
5);
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 = () => {
1import { searchParams } from "https://esm.town/v/stevekrouse/searchParams?v=9";
2import { fetchJSON } from "https://esm.town/v/stevekrouse/fetchJSON?v=41";
3
4export function likes({ token, offset, limit }: {
25 };
26}> {
27 return fetchJSON(
28 "https://api.val.town/v1/me/likes?" + searchParams({
29 offset: offset?.toString(),
1import { fetchJSON } from "https://esm.town/v/stevekrouse/fetchJSON?v=41";
2
3// Reddit recent posts from /r/aww (cute animals)
4export let subredditExample = fetchJSON(
5 "https://www.reddit.com/r/aww/.json"
6);
1import { fetchJSON } from "https://esm.town/v/stevekrouse/fetchJSON?v=41";
2
3export let aqi = async () => {
4 let res = await fetchJSON(
5 "https://api.openaq.org/v2/latest?" +
6 new URLSearchParams({
1import { fetch } from "https://esm.town/v/std/fetch";
2
3export const file = async (req: Request): Promise<Response> =>
4 new Response((await fetch("file:" + new URL(req.url).pathname)).body, {
5 headers: { "Content-Type": "text/plain" },
6 });
1import { fetchJSON } from "https://esm.town/v/stevekrouse/fetchJSON?v=41";
2
3export const mil = async () => {
4 const json = await fetchJSON(
5 "https://www.coingecko.com/nft/milady-maker/chart.json?currency=eth&days=1",
6 );
1import { fetchJSON } from "https://esm.town/v/stevekrouse/fetchJSON?v=41";
2
3export let aqi = async () => {
4 let pm25 = (
5 await fetchJSON(
6 "https://api.openaq.org/v2/latest?" +
7 new URLSearchParams({