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=1027&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 12114 results for "api"(1582ms)

myApimain.tsx1 match

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

gqlmain.tsx2 matches

@wilhelm•Updated 1 year ago
1import { fetch } from "https://esm.town/v/std/fetch";
2
3export let gql = (api, query, variables = {}) =>
4 fetch(api, {
5 method: "POST",
6 body: JSON.stringify({ query, variables }),

twitterAuthHandlermain.tsx1 match

@andreterron•Updated 1 year ago
30}> {
31 // Imports
32 const { Client, auth } = await import("npm:twitter-api-sdk");
33 //
34 const authClient = new auth.OAuth2User({

githubStarsmain.tsx1 match

@sourishkrout•Updated 1 year ago
7) {
8 const { stargazers_count } = await fetchJSON(
9 `https://api.github.com/repos/${encodeURIComponent(handle)}/${
10 encodeURIComponent(repo)
11 }`,

myApimain.tsx1 match

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

myApimain.tsx1 match

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

myApimain.tsx1 match

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

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

social_data_api_project3 file matches

@tsuchi_ya•Updated 1 day ago

simple-scrabble-api1 file match

@bry•Updated 4 days ago
snartapi
papimark21