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/$2?q=api&page=57&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 17496 results for "api"(2504ms)

myApi1 file match

@qeelei•Updated 1 year ago

callPrivateAPI2 file matches

@galligan•Updated 1 year ago

myApi1 file match

@li_shuai•Updated 1 year ago

myApi1 file match

@herveDarritchon•Updated 1 year ago

myApi1 file match

@nyjustice•Updated 1 year ago

myApi1 file match

@hernquist•Updated 1 year ago

myApi1 file match

@Anapp•Updated 1 year ago

myApi1 file match

@scothis•Updated 1 year ago

valtownApiTypesImportTest2 file matches

@stevekrouse•Updated 1 year ago

myApi1 file match

@hankenstein•Updated 1 year ago

ChatSettings.tsx8 matches

@c15r•Updated 16 mins ago
17
18export default function Settings({ config, onUpdateConfig, onClose }: SettingsProps) {
19 const [apiKey, setApiKey] = useState(config.anthropicApiKey);
20 const [mcpServers, setMcpServers] = useState<MCPServer[]>(config.mcpServers);
21 const [selectedModel, setSelectedModel] = useState(config.selectedModel);
36 const handleSave = () => {
37 onUpdateConfig({
38 anthropicApiKey: apiKey,
39 mcpServers: mcpServers,
40 selectedModel: selectedModel,
81
82 try {
83 const response = await fetch('/api/test-mcp', {
84 method: 'POST',
85 headers: {
154 </div>
155
156 {/* API Key Section */}
157 <div className="form-group">
158 <label className="form-label">Anthropic API Key</label>
159 <input
160 type="password"
161 value={apiKey}
162 onChange={(e) => setApiKey(e.target.value)}
163 placeholder="sk-ant-..."
164 className="form-input"
165 />
166 <div className="text-sm text-gray-600 mt-1">
167 Get your API key from{" "}
168 <a
169 href="https://console.anthropic.com/"

Chatindex.ts1 match

@c15r•Updated 16 mins ago
10
11// Test MCP server endpoint
12app.post("/api/test-mcp", async c => {
13 try {
14 const { url, authorization_token } = await c.req.json();
Kapil01
apiv1