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/$%7Burl%7D?q=api&page=22&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 11619 results for "api"(1448ms)

myApi1 file match

@bmschmidtUpdated 1 year ago

myApi1 file match

@ubuwaitsUpdated 1 year ago

myApi1 file match

@justyUpdated 1 year ago

myApi1 file match

@joewalkerUpdated 1 year ago

myApi1 file match

@rmkubikUpdated 1 year ago

myApi1 file match

@chuyeowUpdated 1 year ago

myApi1 file match

@deadlystudioUpdated 1 year ago

getYoutubeLinkFromPageAPI1 file match

@wiltUpdated 1 year ago

myApi1 file match

@benmannsUpdated 1 year ago

myApi1 file match

@ibrahimUpdated 1 year ago

v2-vals-create-a-val-exampleREADME.md4 matches

@shouserUpdated 24 mins ago
1# v2/vals Example: Creating a val with a script file
2
3This val shows how to create a val and add a script file to it both with the SDK and with the API. You can find both examples in `main.tsx`.
4
5### Getting Started
61. Remix this project
72. Create your own API token [here](https://www.val.town/settings/api/new) with **Val: Read and write** permissions
83. Create an environment variable in your remixed project called `VAL_RW_TOKEN` and paste your new API token into it
94. Run `main.tsx` and you'll create 2 new vals in your account: `new-val-sdk` and `new-val-api`
21 const webhookSecret = process.env.githubWebhookApproveSmallPRs;
22 // the token to make github requests (needs `repo` permissions)
23 const githubApiToken = process.env.githubApproveSmallPRsToken;
24 let valHttpUrl = "https://val.town";
25 const ref = parentReference();
65 const { Octokit } = await import("npm:@octokit/core");
66 const octokit = new Octokit({
67 auth: githubApiToken,
68 });
69 const { repository, organization } = payload;
104 event: "APPROVE",
105 headers: {
106 "X-GitHub-Api-Version": "2022-11-28",
107 },
108 },
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