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=1631&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 18170 results for "api"(4990ms)

myApimain.tsx1 match

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

myApimain.tsx1 match

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

fetchReadwiseListmain.tsx2 matches

@ofalvai•Updated 1 year ago
2
3// Fetches a Readwise Reader list
4// Based on https://readwise.io/reader_api#list
5export const fetchReadwiseList = async (
6 token: string,
8) => {
9 return fetchJSON(
10 `https://readwise.io/api/v3/list?location=${location}`,
11 {
12 headers: {

parserSampleJSONZodmain.tsx1 match

@webup•Updated 1 year ago
24 const model = await builder();
25 const input = await prompt.format({
26 question: "What is the capital of France?",
27 });
28 const response = await model.call(input);

myApimain.tsx1 match

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

quotesmain.tsx1 match

@jshawl•Updated 1 year ago
2
3export const quotes = await fetchJSON(
4 "https://zenquotes.io/api/random",
5);

myApimain.tsx1 match

@hibodog667•Updated 1 year ago
1export function myApi(name) {
2 console.email("name sent" + name);
3}

githubUsermain.tsx1 match

@mkm•Updated 1 year ago
3// Github profile
4export let githubUser = fetchJSON(
5 "https://api.github.com/users/mkmik",
6);

slackReplyToMessagemain.tsx1 match

@naquiroz•Updated 1 year ago
19 // like the sender and the message text
20 const result = await fetchJSON(
21 "https://slack.com/api/chat.postMessage",
22 {
23 headers: {

valTownApiExampleValmain.tsx2 matches

@tmcw•Updated 1 year ago
1import { fetch } from "https://esm.town/v/std/fetch";
2
3export let valTownApiExampleVal = (async () => {
4 const response = await fetch(
5 `https://api.val.town/v1/alias/tmcw/valTownApiExampleVal`,
6 );
7 return await response.json();

xxxclearinghouse_validator

@toowired•Updated 6 hours ago
Request validator for clearance API

Apiify11 file matches

@wolf•Updated 1 day ago
snartapi
apiry