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=1441&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 16467 results for "api"(1767ms)

myApimain.tsx1 match

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

myApimain.tsx1 match

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

myApimain.tsx1 match

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

mapmain.tsx1 match

@panphora•Updated 1 year ago
3export let map = async (zipA, latB, longB) => {
4 let f = await fetch(
5 `https://maps.googleapis.com/maps/api/staticmap?auto=&scale=2&size=600x300&maptype=roadmap&format=png&key=AIzaSyBkrVgpa0Ul-_LN7cVq8ws6oYfQi3zCjuU&markers=size:mid%7Ccolor:0xdc2626%7Clabel:1%7CLos%20Angeles%2CCA%2C${zipA}&markers=size:mid%7Ccolor:0xdc2626%7Clabel:2%7C${latB}%2C${longB}`
6 );
7 let res = await f.blob();

starWarsmain.tsx2 matches

@cbf•Updated 1 year ago
1import { fetchJSON } from "https://esm.town/v/stevekrouse/fetchJSON?v=41";
2
3// Explore the Star Wars universe, from StarWarsAPI
4export let starWars = fetchJSON(
5 "https://swapi.dev/api/people/1/"
6);

myApimain.tsx1 match

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

myApimain.tsx1 match

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

queryTwittermain.tsx1 match

@ted•Updated 1 year ago
3export let queryTwitter = (query: string) => {
4 return twitterRequest(
5 `https://api.twitter.com/2/tweets/search/recent?query=${query}&tweet.fields=created_at`
6 );
7};

nameNationalitymain.tsx1 match

@madmod•Updated 1 year ago
3// Predict the nationality of a name
4export let nameNationality = fetchJSON(
5 "https://api.nationalize.io/?name=michael"
6);

createIssuemain.tsx1 match

@andy_blum•Updated 1 year ago
31 ],
32 headers: {
33 "X-GitHub-Api-Version": "2022-11-28",
34 },
35 });

Schedule

@Ozy•Updated 2 hours ago
Schedule_api

googleGeminiAPI2 file matches

@michaelwschultz•Updated 19 hours ago
Kapil01
apiv1