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/$%7Burl%7D?q=api&page=1376&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 14950 results for "api"(3233ms)

extractRandomCardImagemain.tsx1 match

@fab1an•Updated 1 year ago
4 try {
5 const response = await fetch(
6 "https://deckofcardsapi.com/api/deck/new/draw/?count=1"
7 );
8 const data = await response.json();

myApimain.tsx1 match

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

stableDiffusionCreatemain.tsx1 match

@calvinfo•Updated 1 year ago
2
3export let stableDiffusionCreate = async (key, prompt) => {
4 const url = "https://api.replicate.com/v1/predictions";
5 const headers = {
6 Authorization: `Token ${key}`,

myApimain.tsx1 match

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

myApimain.tsx1 match

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

myApimain.tsx1 match

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

githubFollowersmain.tsx1 match

@yosef_bayoude•Updated 1 year ago
3// GitHub followers
4export let githubFollowers = fetchJSON(
5 "https://api.github.com/users/stevekrouse/followers"
6);

myApimain.tsx1 match

@lazeebee•Updated 1 year ago
1export function myApi(name) {
2 return { "ale": 1 };
3}

myApimain.tsx1 match

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

githubReposmain.tsx1 match

@joodaloop•Updated 1 year ago
3// GitHub repos
4export let githubRepos = fetchJSON(
5 "https://api.github.com/users/stealsocks/repos",
6);

HN-fetch-call2 file matches

@ImGqb•Updated 10 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
rapilot330
Kapil01