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/image-url.jpg%20%22Image%20title%22?q=api&page=1469&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 17515 results for "api"(9728ms)

pipedreamREADME.md3 matches

@stevekrouse•Updated 1 year ago
1# Pipedream helpers
2
3Pipedream offers an Accounts API to handle OAuth for you, automatically, and for free. [How to do it is covered in this guide](https://docs.val.town/integrations/google-sheets/#use-pipedreams-accounts-api).
4
5The helper functions below can make it easier to work with various Google API. For example, I used them like so to get all my free/busy times for this week from all my google calendars:
6
7```ts
37```
38
39In order for this to work you need to follow the instructions in [this guide](https://docs.val.town/integrations/google-sheets/#use-pipedreams-accounts-api) to save your pipedream API key into your [Val Town Environment Variables](/settings/environment-variables) under `pipedream`, then connect the google account you care about to Pipedream, and copy it's Pipedream "account id" into your val code. Let me know if you need any help by commenting on this val!
40
41Migrated from folder: Archive/pipedream

aqiREADME.md1 match

@yacosta738•Updated 1 year ago
8
91. Click `Fork`
102. Change `location` (Line 4) to describe your location. It accepts fairly flexible English descriptions which it turns into locations via [nominatim's geocoder API](https://www.val.town/v/stevekrouse/nominatimSearch).
113. Click `Run`
12

gptApiSchemaBuildermain.tsx3 matches

@xkonti•Updated 1 year ago
6 return zodToJsonSchema(schema, {
7 name: "schema",
8 target: "openApi3",
9 }).definitions.schema;
10}
61}
62
63export function getOpenApiSpec(
64 url: string,
65 title: string,
69) {
70 return {
71 openapi: "3.1.0",
72 info: {
73 title,

homelessREADME.md2 matches

@cameronpak•Updated 1 year ago
5At [OurTechnology](https://ourtechnology.co), we create technology solutions to empower and equip those who serve the homeless. We have a large data set of available resources in the US to aid in helping those experiencing homelessness find local resources, community, and support.
6
7This private (_but public to read_) API is used in our [ChatGPT Assistant, Homeless Services](https://chatg.pt/homeless-help).
8
9## Why a [ChatGPT Assistant](https://chatg.pt/homeless-help)?
15- The data set has been compiled together over the years and will continue to be updated as new techniques and partnerships make that possible.
16- We use [Typesense](typesense.org), a search as a service tool, to provide lightning fast search results for homeless resources near you.
17- This endpoint is created with [Hono](hono.dev) and is an incredibly easy way to create an API.
18
19## Contact OurTechnology

gameIdeaApiREADME.md1 match

@xkonti•Updated 1 year 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 1 year 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 1 year 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 1 year 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,

RandomQuoteAPI

@Freelzy•Updated 18 hours ago

HAPI7 file matches

@dIgitalfulus•Updated 23 hours ago
Kapil01
apiv1