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=863&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 10997 results for "api"(1599ms)

greenhouseToRSSmain.tsx2 matches

@donmccurdy•Updated 1 year ago
6 const account = searchParams.get("account");
7 const mode = searchParams.get("mode");
8 const SOURCE_URL = `https://boards-api.greenhouse.io/v1/boards/${account}/jobs`;
9 const { jobs: sourceJobs } = await fetch(SOURCE_URL).then((res) => res.json());
10
12 const feed = new Feed({
13 title: `Jobs: ${account} (via Greenhouse)`,
14 description: "Job postings automatically forwarded from Greenhouse API to RSS.",
15 id: getFeedLink(mode),
16 link: "https://www.val.town/v/donmccurdy.greenhouseToRSS",

leverToRSSmain.tsx1 match

@donmccurdy•Updated 1 year ago
7 const account = searchParams.get("account");
8 const mode = searchParams.get("mode");
9 const SOURCE_URL = `https://api.lever.co/v0/postings/${account}?mode=xml`;
10 const parser = new XMLParser();
11 const sourceXML = await fetch(SOURCE_URL).then((res) => res.text());

createValmain.tsx1 match

@neverstew•Updated 1 year ago
39 };
40
41 return fetchJSON("https://api.val.town/v1/vals", {
42 headers: {
43 Authorization: `Bearer ${token}`,

updateValByIDmain.tsx1 match

@nbbaier•Updated 1 year ago
20 };
21
22 return fetchJSON(`https://api.val.town/v1/vals/${valId}`, {
23 headers: {
24 Authorization: `Bearer ${token}`,

updateValByNamemain.tsx1 match

@nbbaier•Updated 1 year ago
14 };
15
16 return fetchJSON("https://api.val.town/v1/vals", {
17 headers: {
18 Authorization: `Bearer ${token}`,

spotify_helpersmain.tsx1 match

@stevekrouse•Updated 1 year ago
35 </li>
36 <li>If your access token expires, we use the refresh token to get a new one.</li>
37 <li>Use your access token to make requests to the Spotify API.</li>
38 </ol>
39

spotify_helpersREADME.md1 match

@stevekrouse•Updated 1 year ago
1Migrated from folder: External_APIs/spotify/spotify_helpers

spotifyRefreshTokenmain.tsx1 match

@stevekrouse•Updated 1 year ago
3
4export let spotifyRefreshToken = async ({ refresh_token, client_id, client_secret }) =>
5 fetchJSON("https://accounts.spotify.com/api/token", {
6 method: "POST",
7 body: await querystring({

spotifyREADME.md1 match

@stevekrouse•Updated 1 year ago
1Migrated from folder: External_APIs/spotify/spotify

constructReadTangleUrlmain.tsx1 match

@willthereader•Updated 1 year ago
6 return (post_id) => {
7 // logMessage( "debug", `constructReadTangleUrl called with post_id: ${post_id}`, );
8 const baseUrl = new URL("https://www.readtangle.com/members/api/comments/?filter=post_id%3A");
9 let commentUrl = "";
10 if (typeof post_id === "string") {

daily-advice-app1 file match

@dcm31•Updated 2 days ago
Random advice app using Advice Slip API

gptApiTemplate1 file match

@charmaine•Updated 3 days ago
apiv1
papimark21