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?q=api&page=1034&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 12040 results for "api"(1143ms)

postWebhookTest1main.tsx1 match

@valUpdated 1 year ago
2
3export let postWebhookTest1 = fetchJSON(
4 "https://api.val.town/express/@stevekrouse.postWebhook1",
5 {
6 method: "POST",

githubEventsmain.tsx1 match

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

getLocationEntitiesmain.tsx1 match

@ryanbatemanUpdated 1 year ago
3
4export let getLocationEntities = async (text) => {
5 const URL = `https://language.googleapis.com/v1beta2/documents:analyzeEntities?key=${process.env.googleAPIKey}`;
6 const bodyText = {
7 document: {

myApimain.tsx1 match

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

myApimain.tsx1 match

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

myApimain.tsx1 match

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

githubEventsmain.tsx1 match

@jamesduryUpdated 1 year ago
3export const githubEvents = (username) =>
4 fetchJSON(
5 `https://api.github.com/users/${username}/events`
6 );

myApimain.tsx1 match

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

gitHubReleaseTrackermain.tsx4 matches

@ianvphUpdated 1 year ago
1import { fetch } from "https://esm.town/v/std/fetch";
2import { set } from "https://esm.town/v/std/set?v=11";
3import { postHogAPICapture } from "https://esm.town/v/ianvph/postHogAPICapture";
4import { email } from "https://esm.town/v/ianvph/email";
5import { phProjectAPIKey } from "https://esm.town/v/ianvph/phProjectAPIKey";
6import { newestReleaseId } from "https://esm.town/v/ianvph/newestReleaseId";
7import { parseXML } from "https://esm.town/v/stevekrouse/parseXML?v=1";
25 };
26 const captureData = {
27 key: phProjectAPIKey,
28 event: "new release",
29 properties: properties,
30 distinct_id: email,
31 };
32 postHogAPICapture(captureData);
33 await set("newestReleaseId", newestEntry.id);
34 return "new release captured";

dictmain.tsx1 match

@suhasUpdated 1 year ago
3export let dict = async (word: string) => {
4 const req = await fetch(
5 `https://api.dictionaryapi.dev/api/v2/entries/en/${word}`
6 );
7 const res = await req.json();

social_data_api_project3 file matches

@tsuchi_yaUpdated 15 hours ago

simple-scrabble-api1 file match

@bryUpdated 3 days 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