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/?q=api&page=1054&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 11714 results for "api"(1002ms)

myApimain.tsx1 match

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

extractRandomCardImagemain.tsx1 match

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

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

stableDiffusionCreatemain.tsx1 match

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

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

myApimain.tsx1 match

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

myApimain.tsx1 match

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

githubFollowersmain.tsx1 match

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

myApimain.tsx1 match

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

myApimain.tsx1 match

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

gpt-image-test

@CaptainJackUpdated 11 mins ago
测试 gpt image 的不同 api 能否满足图片生成要求

new-val-api-21 file match

@shouserUpdated 1 day ago
This is an example of using the API to create a val.
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