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%22Optional%20title%22?q=api&page=1491&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"(7581ms)

pushovermain.tsx2 matches

@pranjaldotdev•Updated 1 year ago
2
3// Send a pushover message.
4// token, user, and other opts are as specified at https://pushover.net/api
5export default async function pushover({
6 token,
16 url: string;
17}) {
18 return await fetch("https://api.pushover.net/1/messages.json", {
19 method: "POST",
20 headers: {

pollerREADME.md1 match

@pranjaldotdev•Updated 1 year ago
18- *scraper* Goes to bytes.dev and scrapes latest published newsletter
19- *inserter* Insert it to SQLite if this newsletter already not exists
20- *notifier* Uses Pushover API to send ios mobile notifications
21
22### Pushover notifications

indigoWombatmain.tsx1 match

@josh_len•Updated 1 year ago
4async function fetchRandomJoke() {
5 const response = await fetch(
6 "https://official-joke-api.appspot.com/random_joke",
7 );
8 return response.json();

whatsappWebhookExamplemain.tsx2 matches

@hugentobler•Updated 1 year ago
2 * Simple, free webhook to start using WhatsApp Platform.
3 * Handles GET request for verification, and POST request for notifications.
4 * Meta example: https://glitch.com/edit/#!/whatsapp-cloud-api-echo-bot
5 *
6 * Setup:
9 * 2. Set your env variable `WHATSAPP_WEBHOOK_VERIFY_TOKEN`
10 * Set env variables in val: https://docs.val.town/reference/environment-variables/
11 * hub.verify_token value: https://developers.facebook.com/docs/graph-api/webhooks/getting-started
12 *
13 * Note:

jsrmain.tsx1 match

@vladimyr•Updated 1 year ago
1// SPDX-License-Identifier: 0BSD
2import { getConfig } from "https://esm.town/v/vladimyr/jsrApi";
3import { newValURL } from "https://esm.town/v/vladimyr/newValURL";
4import { type HtmlProcessor, serveReadme } from "https://esm.town/v/vladimyr/serveReadme";

echomain.tsx1 match

@curtcox•Updated 1 year ago
14 "redirect": req.redirect,
15 "searchParams": Object.fromEntries(searchParams.entries()),
16 "docs": "https://developer.mozilla.org/en-US/docs/Web/API/Request",
17 });
18};

jsrApi_examplemain.tsx5 matches

@vladimyr•Updated 1 year ago
1// SPDX-License-Identifier: 0BSD
2import * as jsrApi from "https://esm.town/v/vladimyr/jsrApi";
3
4const latest = await jsrApi.getLatestVersion("valibot", "valibot");
5console.log(latest);
6// ==> >=0.30.0
7
8const manifest = await jsrApi.getManifest("@valibot", "valibot", "0.30.0");
9console.log(manifest["/jsr.json"].checksum);
10// ==> sha256-d76f30c31d6700f06ff4bc0e1cf508de87e5bad348d75dbadb6376fee4359d90
11
12// @see: https://jsr.io/@valibot/valibot/0.30.0/jsr.json
13const pkgConfig = await jsrApi.getConfig("valibot", "valibot", "0.30.0");
14console.log(pkgConfig);
15// ==> { name: "@valibot/valibot", version: "0.30.0" }
20{
21 // @see: https://jsr.io/@mark/html/1.0.0/deno.json
22 const pkgConfig = await jsrApi.getConfig("mark", "html", "1.0.0");
23 console.log(pkgConfig);
24 // ==> { name: "@mark/html", version: "1.0.0" }

jsrApimain.tsx2 matches

@vladimyr•Updated 1 year ago
13];
14
15// @see: https://jsr.io/docs/api#package-metadata
16const PkgMetaSchema = v.object({
17 scope: v.string(),
20});
21
22// @see: https://jsr.io/docs/api#package-version-metadata
23const PkgVerMetaSchema = v.object({
24 manifest: v.record(

jsrApi_exampleREADME.md1 match

@vladimyr•Updated 1 year ago
1Migrated from folder: jsr/jsrApi_example

jsrApiREADME.md1 match

@vladimyr•Updated 1 year ago
1Migrated from folder: jsr/jsrApi

RandomQuoteAPI

@Freelzy•Updated 18 hours ago

HAPI7 file matches

@dIgitalfulus•Updated 23 hours ago
Kapil01
apiv1