1export function myApi(name) {
2 const random = Math.random(100);
3 return {
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();
1export function myApi(name) {
2 return "hi " + name;
3}
1export function myApi(name) {
2 return "hi " + name;
3}
1export function myApi(name) {
2 return "hi " + name;
3}
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 (
1export function myApi(name) {
2 return "hi " + name;
3}
2let { nameList } = await import("https://esm.town/v/acmu/nameList");
3
4export async function myApiDeleteAll() {
5 nameList = [];
6 await set("nameList", nameList);
4 let pm25 = (
5 await fetchJSON(
6 "https://api.openaq.org/v2/latest?" +
7 new URLSearchParams({
8 limit: "10",
3export const getFatCatListings = async () => {
4 const meResult = await fetch(
5 "https://api-mainnet.magiceden.dev/v2/collections/degenfatcats/listings?offset=0&limit=20",
6 {
7 headers: { Accept: "application/json" },
Random advice app using Advice Slip API
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
founder @outapint.io
vibe coding on val.town.
dm me to build custom vals: https://artivilla.com