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=21&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"(1328ms)

myApi1 file match

@siveshsUpdated 1 year ago

myApi1 file match

@garcilaUpdated 1 year ago

api1 file match

@uuzUpdated 1 year ago

myApi1 file match

@codingjluUpdated 1 year ago

myApi1 file match

@stordahlUpdated 1 year ago

myApi2 file matches

@cihadUpdated 1 year ago

myApi1 file match

@carsonwackUpdated 1 year ago

paginateAPI2 file matches

@mgruelUpdated 1 year ago

myApi1 file match

@airon21Updated 1 year ago

myApi1 file match

@smfooteUpdated 1 year ago

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

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