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=1062&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 11844 results for "api"(1050ms)

fetchFigmaFilemain.tsx3 matches

@rodrigotelloUpdated 1 year ago
1import { fetch } from "https://esm.town/v/std/fetch";
2
3export async function fetchFigmaFile(apiToken, fileKey) {
4 const url = `https://api.figma.com/v1/files/${fileKey}`;
5 const response = await fetch(url, {
6 headers: {
7 "X-FIGMA-TOKEN": apiToken,
8 },
9 });

myApimain.tsx1 match

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

myApimain.tsx1 match

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

myApimain.tsx1 match

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

myApimain.tsx1 match

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

myApimain.tsx1 match

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

myApimain.tsx1 match

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

myApimain.tsx1 match

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

upscaleThisUrlmain.tsx2 matches

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

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

simple-scrabble-api1 file match

@bryUpdated 10 hours ago

social_data_api_project3 file matches

@tsuchi_yaUpdated 17 hours 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