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/?q=api&page=1088&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 11716 results for "api"(1360ms)

qsExampleREADME.md1 match

@tmcwUpdated 1 year ago
3[QS](https://github.com/ljharb/qs/) is a pretty old module that you probably shouldn't use but it's still pretty heavily used.
4
5In the very very early days there wasn't a built-in way in JavaScript to parse querystrings. So QS was born. But then, Node.js added a `querystring` module built-in. Then, JavaScript introduced [URLSearchParams](https://developer.mozilla.org/en-US/docs/Web/API/URLSearchParams), which you should use whenever you want to parse or generate query strings.
6
7Migrated from folder: Modules/qsExample

luxonExampleREADME.md1 match

@tmcwUpdated 1 year ago
1# luxon
2
3[Luxon](https://moment.github.io/luxon/#/?id=luxon) is, like [date-fns](https://www.val.town/v/tmcw.datefnsExample), a good option for formatting, parsing, and manipulating dates. It's more of a direct successor to [moment](https://www.val.town/v/tmcw.momentExample) and has a similar method-chain-oriented API rather than function-call oriented API like date-fns.
4
5Migrated from folder: Modules/luxonExample

musicianApiREADME.md1 match

@maclongUpdated 1 year ago
1Migrated from folder: Musician/musicianApi

TanaAPIHelperREADME.md1 match

@nbbaierUpdated 1 year ago
1Migrated from folder: projects/tana/TanaAPIHelper

dlockREADME.md1 match

@stevekrouseUpdated 1 year ago
5## Usage
6
7## API
8
9### Acquire a lock.

paginateAPIREADME.md1 match

@andreterronUpdated 1 year ago
1Migrated from folder: A_Features/_23_07_20_Notifications/paginateAPI

testApiREADME.md1 match

@andreterronUpdated 1 year ago
1Migrated from folder: A_Features/_23_07_20_Notifications/testApi

notifyInTgREADME.md1 match

@dpetroukUpdated 1 year ago
19 local message="$input"
20
21 curl -G https://api.val.town/v1/run/dpetrouk.notifyInTg --data-urlencode 'args=["'"$chat_id"'", "'"$message"'"]'
22}
23```

getVideoInfoREADME.md1 match

@nbbaierUpdated 1 year ago
1# Get YT Video Information
2
3Given a youtube video url, this val returns a small amount of information about the video: title, channel title, and the description. It uses the Youtube Data API v3, so you need to bring your own API key to get it to work (see [here](https://developers.google.com/youtube/v3/getting-started) about setting up an API key).

rawREADME.md1 match

@pomdtrUpdated 1 year ago
23### Fetching private val
24
25Pass an api token as an username
26
27```console

gpt-image-test

@CaptainJackUpdated 5 hours ago
测试 gpt image 的不同 api 能否满足图片生成要求

new-val-api-21 file match

@shouserUpdated 1 day ago
This is an example of using the API to create a val.
apiv1
papimark21