1# peko
2
3This is an example of using the tiny [peko](https://peko.deno.dev/) example with Val Town - it's a small router that lets you build web apps using the standard [Request](https://developer.mozilla.org/en-US/docs/Web/API/Request) & [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) objects.
4
5Peko just provides routing - matching URLs with functions - and lets you create your own Response object.
12- [Nhttp](https://www.val.town/v/tmcw.nhttpExample)
13
14Migrated from folder: Web_API/pekoExample
1# Hono
2
3Here's an example using the [Hono](https://hono.dev/) server library with the [Web API](https://docs.val.town/api/web). It works great!
4
5
11- [Nhttp](https://www.val.town/v/tmcw.nhttpExample)
12
13Migrated from folder: Web_API/honoExample
1null
2
3Migrated from folder: Web_API/headersExample
1Migrated from folder: Web_API/headersExample
1# Returning HTML from the Val Town Web API
2
3This just lets you use the standard [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) object with our [Web API](https://docs.val.town/api/web) to return an HTML response from this Val.
4
5Migrated from folder: Web_API/htmlExample
3This val produces the JSON `{ ok: true }` at the URL: https://tmcw-jsonokexample.web.val.run/
4
5Migrated from folder: Web_API/jsonOkExample
1## what is this?
2
3~这是一个用来检测主播是否直播,访问方法为:https://api.val.town/v1/run/nishui.biliStream?args=[xxx]~
4~其中 args=[id] 中的 `id` 是直播房间号码~
5
3Fetches information about runs of any val you author.
4
5Requires a secret called valtownToken, set to your API Token. See more about [authentication](https://docs.val.town/api/authentication) to understand how to generate a token.
6
7Migrated from folder: docs/api/getRuns
2Fetches information about yourself.
3
4Requires a secret called `valtownToken`, set to your API Token. See more about [authentication](https://docs.val.town/api/authentication) to understand how to generate a token.
5
6Migrated from folder: docs/api/getMe
5## Setup
6
71. Create a [Val Town API Token](https://www.val.town/settings/api)
82. Add it to [your secrets](https://www.val.town/settings/secrets) as `valtown`
93. Fork & Run this val
This is an example of using the API to create a val.
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
founder @outapint.io
vibe coding on val.town.
dm me to build custom vals: https://artivilla.com