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=1031&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"(1852ms)

airtable_get_samplemain.tsx1 match

@mattxUpdated 1 year ago
4export const airtable_get_sample = (async () => {
5 const data = await fetchJSON(
6 "https://api.airtable.com/v0/appXSrKDlwbAijRmD/All%20content/recxS2AKaE1klriwW",
7 {
8 headers: {

myApimain.tsx1 match

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

myApimain.tsx1 match

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

gqlmain.tsx2 matches

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

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

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

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

myApimain.tsx1 match

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

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}

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