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%22Optional%20title%22?q=api&page=1032&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 12156 results for "api"(1328ms)

myApimain.tsx1 match

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

fetchReadwiseListmain.tsx2 matches

@ofalvaiUpdated 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

@webupUpdated 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

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

quotesmain.tsx1 match

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

myApimain.tsx1 match

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

githubUsermain.tsx1 match

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

slackReplyToMessagemain.tsx1 match

@naquirozUpdated 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

@tmcwUpdated 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();

evaluationFromValExamplemain.tsx1 match

@tmcwUpdated 1 year ago
2
3export let evaluationFromValExample = (async () => {
4 const response = await fetch(`https://api.val.town/v1/eval`, {
5 method: "post",
6 body: JSON.stringify({ code: "1 + 1" }),

social_data_api_project3 file matches

@tsuchi_yaUpdated 2 days ago

simple-scrabble-api1 file match

@bryUpdated 5 days ago
papimark21
socialdata
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