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=991&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 11746 results for "api"(3098ms)

myApimain.tsx1 match

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

myApimain.tsx1 match

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

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: {

gpt-image-test

@CaptainJackUpdated 12 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