Back to APIs list

Vercel API examples & templates

Use these vals as a playground to view and fork Vercel API examples and templates on Val Town. Run any example below or find templates that can be used as a pre-built solution.
VALLErun
janpaul123
VALLErun
Remix of: janpaul123/VALLE
HTTP
VALLErun
tmcw
VALLErun
Remix of: janpaul123/VALLErun
HTTP
Send_Errors_to_Email
bmitchinson
Send_Errors_to_Email
Send errors to email Get a POST request, send an email with the given subject. Used to suplement console.error , since vercel charges 20 dollars a month to send my logs elsewhere. Wish there was a cheaper option for error specific alerting native to vercel. Further described on the val itself! https://bmitchinson-tangiblelimecockroach.web.val.run
HTTP
api_v1
maxharper26
api_v1
Remix of: stevekrouse/sqlite
HTTP
fetchTweet
vladimyr
fetchTweet
Remix of: dpetrouk/fetchTweet
Script
VALLErun
arash2060
VALLErun
Remix of: janpaul123/VALLErun
HTTP
web
rauchg
web
@jsxImportSource npm:react
HTTP
cheerioScraper
damidina
cheerioScraper
cheerioScraper This val scrapes a website to extract all the URLs from anchor ( <a> ) tags using the cheerio library. Usage import scrapeWebsite from 'val:damidina.cheerioScraper'; const urls = await scrapeWebsite('https://example.com'); console.log(urls);
Script
docFeedbackForm
stevekrouse
docFeedbackForm
Remix of: stevekrouse/form
HTTP
ping2
simonharrisco
ping2
An interactive, runnable TypeScript val by simonharrisco
Cron
docFeedbackForm
parkerdavis
docFeedbackForm
Remix of: stevekrouse/docFeedbackForm
HTTP
tomatoMinnow
nicoalbanese
tomatoMinnow
Vercel AI SDK with Val Town! Use the Vercel AI SDK in your Vals. Note : you must add your OpenAI key to your Val Town Env variables under OPENAI_API_KEY . If you would like to specify a different name for your API Key, you can create a custom OpenAI provider with the createOpenAI function. Prefer another AI provider? Use any supported provider by changing just two lines of code!
HTTP
docFeedbackForm
timlin
docFeedbackForm
Remix of: stevekrouse/docFeedbackForm
HTTP
add_to_notion_w_ai_webpage
nerdymomocat
add_to_notion_w_ai_webpage
Example usage of the add_to_notion_w_ai val Try with the money database . Read and watch the demo run here
HTTP
hackerNewsAuthors
guidoism
hackerNewsAuthors
An interactive, runnable TypeScript val by guidoism
Script
aiBasicExample
kora
aiBasicExample
Remix of: yawnxyz/aiBasicExample
Script