Substrate is the modular API for fast multi-step AI programs
Purveyors of Hono tooling, API Playground enthusiasts, and creators of 🪿 HONC 🪿 (https://honc.dev)
Run AI with an API
You can access search results via JSON API by adding format=json
to your query:
https://codesearch.val.run/$2?q=api&page=2&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 15186 results for "api"(1513ms)
13141. Geocodes a free-form description of a location to latitude and longitude using @stevekrouse.nominatimSearch
152. Gets hourly weather forecast from Open-Meteo API (free, no API key required)
163. Filters the forecast for today's remaining hours with ≥30% chance of rain
174. If there are any, it formats them appropriately and sends an email reminder
13// Get weather data from Open-Meteo
14const weatherUrl =
15`https://api.open-meteo.com/v1/forecast?latitude=${lat}&longitude=${lon}&hourly=precipitation_probability&timezone=auto&forecast_days=1`;
16const weatherResponse = await fetch(weatherUrl);
17const weatherData = await weatherResponse.json();