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/image-url.jpg%20%22Optional%20title%22?q=api&page=25&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 11829 results for "api"(553ms)

myApi1 file match

@ypxUpdated 1 year ago

myApi1 file match

@namitUpdated 1 year ago

myApi1 file match

@moschanUpdated 1 year ago

myApi1 file match

@saip009Updated 1 year ago

myApi1 file match

@eastercUpdated 1 year ago

openaiOpenAPI2 file matches

@stevekrouseUpdated 1 year ago

discordAPI2 file matches

@stevekrouseUpdated 1 year ago

myApi1 file match

@jakesingUpdated 1 year ago

myApi1 file match

@flavorjonesUpdated 1 year ago

myApi1 file match

@bhelxUpdated 1 year ago

imbue-interviewapi.tsx7 matches

@bryUpdated 55 mins ago
64};
65
66const API_INFO = {
67 name: "Simple Scrabble API",
68 version: "1.0.0",
69 description: "A simple API to provide data for determining if a given scrabble board is valid.",
70 endpoints: [
71 {
147 JSON.stringify({
148 error: "Route not found",
149 message: "Visit the root endpoint (/) for API documentation",
150 }),
151 {
214 const baseUrl = `${url.protocol}//${url.host}`;
215
216 const apiInfo = {
217 ...API_INFO,
218 example: `curl -X GET ${baseUrl}/ | jq .`,
219 };
220
221 return new Response(JSON.stringify(apiInfo, null, 2), {
222 headers: {
223 "Content-Type": "application/json",

weathergeocode.ts20 matches

@anand_gUpdated 1 hour ago
44
45/**
46 * Configuration options for the Geocoding API
47 */
48interface GeocodingAPIOptions {
49 apiKey?: string;
50 baseUrl?: string;
51}
52
53/**
54 * Geocoding API that converts location strings to latitude/longitude coordinates
55 * with support for different granularity levels
56 */
57class GeocodingAPI {
58 private apiKey: string | null;
59 private baseUrl: string;
60 private granularities: GranularityLevel[];
61
62 constructor(options?: GeocodingAPIOptions) {
63 this.apiKey = options?.apiKey || null;
64 this.baseUrl = options?.baseUrl || "https://api.geocode.earth/v1";
65 this.granularities = [
66 "address",
86 }
87
88 // In a real implementation, this would make an actual API request
89 // Here we're simulating the API response
90 const params = new URLSearchParams({
91 text: location,
92 layers: granularity,
93 api_key: this.apiKey || "demo_key",
94 });
95
115
116 /**
117 * Simulate API response for demonstration purposes
118 * @private
119 */
120 private _simulateResponse(location: string, granularity: GranularityLevel): GeocodingResult {
121 // This would be replaced by actual API responses in production
122 const mockResponses: Record<string, Record<GranularityLevel, MockLocationData>> = {
123 "New York, NY": {
174
175/**
176 * Extended Geocoding API with additional features
177 */
178class EnhancedGeocodingAPI extends GeocodingAPI {
179 /**
180 * Batch geocode multiple locations
201 */
202 async reverseGeocode(lat: number, lng: number, granularity: GranularityLevel = "address"): Promise<GeocodingResult> {
203 // In a real implementation, this would make an API request
204 // Here we're just returning a simulated response
205 return {
223
224// Usage example:
225// const api = new EnhancedGeocodingAPI({ apiKey: "your_api_key" });
226// const result = await api.geocode("New York, NY", "locality");
227// const batchResults = await api.batchGeocode({
228// locations: ["New York, NY", "Los Angeles, CA"],
229// granularity: "locality"
papimark21
socialdata
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