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/$%7Bsuccess?q=api&page=43&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"(767ms)

myApi1 file match

@zdf188Updated 1 year ago

myApi1 file match

@johnfarrelldevUpdated 1 year ago

myApi1 file match

@sean0923Updated 1 year ago

myApi2 file matches

@fshi7418Updated 1 year ago

myApi1 file match

@blainandsimpleUpdated 1 year ago

myApi1 file match

@sl8r000Updated 1 year ago

myApi1 file match

@anderjasonUpdated 1 year ago

myApi1 file match

@dotangadUpdated 1 year ago

myApi1 file match

@dgiulianUpdated 1 year ago

myApi1 file match

@thymeUpdated 1 year ago

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

@shouserUpdated 49 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