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/$%7Bsuccess?q=api&page=1404&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 15186 results for "api"(2752ms)

extractOnThisDayStorymain.tsx1 match

@fab1an•Updated 1 year ago
10 const getOnThisDayContent = async (MM, DD) => {
11 const url =
12 `https://api.wikimedia.org/feed/v1/wikipedia/en/onthisday/all/${MM}/${DD}`;
13 try {
14 const response = await fetch(url);

staleGithubPRsmain.tsx2 matches

@ramkarthik•Updated 1 year ago
11 "headers": {
12 "Authorization": "Bearer " + token,
13 "X-GitHub-Api-Version": "2022-11-28",
14 },
15 };
16 let data = await fetchJSON(
17 `https://api.github.com/repos/${owner}/${repo}/pulls`,
18 options,
19 );

raindropBookmarksmain.tsx1 match

@ramkarthik•Updated 1 year ago
9 };
10 let data = await fetchJSON(
11 "https://api.raindrop.io/rest/v1/raindrops/0?perpage=20&page=" + page,
12 options,
13 );

githubUsermain.tsx1 match

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

myApimain.tsx1 match

@jackbridger•Updated 1 year ago
1export function myApi(name) {
2 return "hi " + name + " want to come on Scaling DevTools?";
3}

polygonDailyAPImain.tsx2 matches

@rwev•Updated 1 year ago
2import { fetchJSON } from "https://esm.town/v/stevekrouse/fetchJSON?v=41";
3
4export async function polygonDailyAPI(ticker, date) {
5 return fetchJSON(
6 `https://api.polygon.io/v1/open-close/${ticker}/${date}?adjusted=true&apiKey=${process.env.POLYGON_API_KEY}`
7 );
8}

githubUsermain.tsx1 match

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

myApimain.tsx1 match

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

tldrawStarsmain.tsx1 match

@jamie_tldraw•Updated 1 year ago
1import { fetchJSON } from "https://esm.town/v/stevekrouse/fetchJSON?v=41";
2
3export let tldrawStars = fetchJSON("https://api.github.com/repos/tldraw/tldraw")
4 .then(
5 (resp) =>

slackReplyToMessagemain.tsx1 match

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

HN-fetch-call2 file matches

@ImGqb•Updated 17 hours ago
fetch HackerNews by API

token-server1 file match

@kwhinnery_openai•Updated 2 days ago
Mint tokens to use with the OpenAI Realtime API for WebRTC
Kapil01
apiv1