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=1371&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 14947 results for "api"(1184ms)

myApimain.tsx1 match

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

myApimain.tsx1 match

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

myApimain.tsx1 match

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

myApimain.tsx1 match

@thedro•Updated 1 year ago
1export const myApi = ((input) => {
2 var inner = (name) => {
3 return "hello " + name;

myApimain.tsx1 match

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

myApimain.tsx1 match

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

myApimain.tsx1 match

@caseywoolley•Updated 1 year ago
1export function myApi(name, welcome) {
2 return "hi " + name + `, ${welcome}`;
3}

upscaleThisUrlmain.tsx2 matches

@liamdanielduffy•Updated 1 year ago
3
4export const upscaleThisUrl = async (req, res) => {
5 const authToken = process.env.REPLICATE_API_TOKEN;
6 const url = "https://api.replicate.com/v1/predictions";
7 const jobId = req.body.jobId;
8 const imageUrl = req.body.imageUrl;

emailGithubReactionsmain.tsx1 match

@vtdocs•Updated 1 year ago
8 const username = "stevekrouse";
9 const events = await fetchJSON(
10 `https://api.github.com/users/${username}/events?per_page=100`,
11 {
12 headers: {

discordFetchmain.tsx1 match

@vtdocs•Updated 1 year ago
6 while (true) {
7 res = await fetchJSON(
8 `https://discord.com/api${route}`,
9 {
10 method,

HN-fetch-call2 file matches

@ImGqb•Updated 8 hours ago
fetch HackerNews by API

token-server1 file match

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