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=955&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 11919 results for "api"(1886ms)

updateValByIDmain.tsx1 match

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

updateValByNamemain.tsx1 match

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

spotify_helpersmain.tsx1 match

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

@stevekrouseUpdated 1 year ago
1Migrated from folder: External_APIs/spotify/spotify_helpers

spotifyRefreshTokenmain.tsx1 match

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

@stevekrouseUpdated 1 year ago
1Migrated from folder: External_APIs/spotify/spotify
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") {

getThreadsActivitymain.tsx1 match

@stevekrouseUpdated 1 year ago
20
21async function getNewThreads() {
22 const resp = await fetch(`https://discord.com/api/guilds/${guild}/threads/active`, {
23 headers: {
24 "Authorization": `Bot ${token}`,

auth_middlewaremain.tsx2 matches

@stevekrouseUpdated 1 year ago
19 <article>
20 <form method="post">
21 <label for="token">API Token</label>
22 <input id="token" name="token" type="password" />
23 <button type="submit">Submit</button>
47
48async function fetchUser(token: string): Promise<User> {
49 const resp = await fetch("https://api.val.town/v1/me", {
50 headers: {
51 Authorization: `Bearer ${token}`,

auth_middlewareREADME.md2 matches

@stevekrouseUpdated 1 year ago
9## Usage
10
11Set an `AUTH_SECRET_KEY` env variable (used to sign/verify jwt tokens). Use an API token to authenticate.
12
13```typescript
23See @pomdtr/test_auth for an example
24
25⚠️ Make sure to only provides your api token to vals you trust (i.e. your own), as it gives access to your whole account.
26
27Migrated from folder: Archive/auth_middleware

social_data_api_project3 file matches

@tsuchi_yaUpdated 2 hours ago

simple-scrabble-api1 file match

@bryUpdated 2 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