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/$%7Bart_info.art.src%7D?q=api&page=957&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 12372 results for "api"(3401ms)

gameIdeaApiREADME.md1 match

@xkonti•Updated 12 months ago
4- The GPT using it: [Game Idea Exchange GPT](https://chatgpt.com/g/g-8fryVV9cU-game-idea-exchange)
5
6Migrated from folder: Tuts/XkontiTech/gameIdeaApi

testPostToMastodonmain.tsx1 match

@geraldo•Updated 12 months ago
3export function testPostToMastodon() {
4 let response = postToMastodon(
5 "https://floss.social/api/v1",
6 Deno.env.get("mastodonAccessToken"),
7 "🔴 Nueva página web del proyecto de investigación periodística #CrimenesdeOdio. Recogemos 101 casos actualizados con 103 víctimas mortales en el Estado español entre 1990 y 2020. 👉 http://crimenesdeodio.info",

chatmain.tsx1 match

@onixoni•Updated 12 months ago
3async function getOpenAI() {
4 // if you don't have a key, use our std library version
5 if (Deno.env.get("OPENAI_API_KEY") === undefined) {
6 const { OpenAI } = await import("https://esm.town/v/std/openai");
7 return new OpenAI();

whiteMongoosemain.tsx3 matches

@tfayyaz•Updated 12 months ago
40 <a href="https://courses.nan.fyi/login" style={itemStyle}>Interactive SVG Animations Course</a>
41 <a href="https://htmx.org/examples/active-search/" style={itemStyle}>HTMX Active Search</a>
42 <a href="https://www.bram.us/2024/02/18/custom-highlight-api-for-syntax-highlighting/" style={itemStyle}>
43 Search and highlight text
44 </a>
45 <a href="https://www.bram.us/2024/02/18/custom-highlight-api-for-syntax-highlighting/" style={itemStyle}>
46 Custom highlight API - Display style and script blocks
47 </a>
48 <a href="https://docs.val.town/quickstarts/first-website/" style={itemStyle}>

valTownSearchmain.tsx2 matches

@pomdtr•Updated 1 year ago
13<OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/">
14 <ShortName>Val Town Search</ShortName>
15 <Description>Search for vals using the Github API</Description>
16 <Url type="text/html" method="get" template="https://val-town-search.pomdtr.me/search?q={searchTerms}"/>
17 <Url type="application/opensearchdescription+xml" template="https://val-town-search.pomdtr.me/opensearch.xml"/>
29 if (url.pathname == "/search") {
30 const query = url.searchParams.get("q");
31 const resp = await fetch(`https://api.github.com/search/code?q=${githubQuery(query)}`, {
32 headers: {
33 "Accept": "application/vnd.github.text-match+json",

launch_thrifty_idea_generatormain.tsx3 matches

@cotr•Updated 1 year ago
13
14 try {
15 const apiKey = Deno.env.get("GEMINI_API_KEY");
16
17 const url = "https://generativelanguage.googleapis.com/v1beta/models/gemini-1.5-pro-latest:generateContent";
18 const headers = {
19 "Content-Type": "application/json",
34 };
35
36 const response = await fetch(`${url}?key=${apiKey}`, {
37 method: "POST",
38 headers,

dubLinksUpsertREADME.md2 matches

@evilsteventey•Updated 1 year ago
1This val shows how you can use the new `dub.links.upsert` method to shorten a URL using the [Dub API](https://dub.co/docs/api-reference/introduction) without creating duplicate links in your workspace for the given URL.
2
3- SDK Docs: [dub.links.upsert](https://dub.co/docs/sdks/typescript/links/upsert)
4- API Docs: [api.dub.co/links/upsert](https://dub.co/docs/api-reference/endpoint/upsert-a-link)

dubLinksUpsertmain.tsx1 match

@evilsteventey•Updated 1 year ago
3
4const dub = new Dub({
5 token: Deno.env.get("DUB_API_KEY"), // optional – defaults to process.env.DUB_API_KEY
6 workspaceId: "ws_clw65kb1i000014o06p0qaczn", // Dub workspace ID – https://d.to/id
7});

dubLinksUpsertREADME.md2 matches

@steventey•Updated 1 year ago
1This val shows how you can use the new `dub.links.upsert` method to shorten a URL using the [Dub API](https://dub.co/docs/api-reference/introduction) without creating duplicate links in your workspace for the given URL.
2
3- SDK Docs: [dub.links.upsert](https://dub.co/docs/sdks/typescript/links/upsert)
4- API Docs: [api.dub.co/links/upsert](https://dub.co/docs/api-reference/endpoint/upsert-a-link)
5
6Migrated from folder: dub/dubLinksUpsert

tootLatestPostsmain.tsx1 match

@geraldo•Updated 1 year ago
11 .map((item) =>
12 postToMastodon(
13 "https://floss.social/api/v1",
14 Deno.env.get("mastodonAccessToken"),
15 `${item.title.charAt(0) === "↗" ? "🔗" : "✍️"} ${item.title.replace("↗ ", "")} ${item.link}`,

social_data_api_project3 file matches

@tsuchi_ya•Updated 2 days ago

simple-scrabble-api1 file match

@bry•Updated 6 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