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=39&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 11852 results for "api"(686ms)

myApi1 file match

@roboUpdated 1 year ago

myApi1 file match

@sadfasdfasfUpdated 1 year ago

myApi1 file match

@triptychUpdated 1 year ago

myApi1 file match

@investorUpdated 1 year ago

valTownApiExampleUser2 file matches

@tmcwUpdated 1 year ago

myApi1 file match

@johnwithanhUpdated 1 year ago

myApi1 file match

@simply_say_mUpdated 1 year ago

myApi1 file match

@sibrelUpdated 1 year ago

myApi1 file match

@israelroldanUpdated 1 year ago

myApi1 file match

@connoradsUpdated 1 year ago

reactHonoStarterindex.ts2 matches

@texoportUpdated 2 hours ago
12app.get("/frontend/**/*", c => serveFile(c.req.path, import.meta.url));
13
14// Add your API routes here
15// app.get("/api/data", c => c.json({ hello: "world" }));
16
17// Unwrap and rethrow Hono errors as the original error
192
193 // Add engagement filters
194 // Note: Some of these filters might need adjustment based on SocialData API's exact syntax
195 if (likesCount) {
196 finalQuery += ` min_faves:${likesCount}`;
197 // The API might not directly support "less than" for likes, this would need to be filtered client-side
198 }
199
204
205 // Note: Replies count, bookmark count, and views count might not be directly filterable
206 // in the Twitter/X API. These may need to be filtered client-side after fetching.
207
208 return finalQuery.trim();
241 cursor,
242 filters: {
243 // These filters will be applied client-side if the API doesn't support them directly
244 repliesCount: repliesCount ? { value: parseInt(repliesCount), direction: repliesDirection } : null,
245 bookmarksCount: bookmarksCount ? { value: parseInt(bookmarksCount), direction: bookmarksDirection } : null,
321 // Helper to check if a tweet meets the client-side filter criteria
322 const meetsCriteria = (tweet) => {
323 // Apply any client-side filters here that the API doesn't support
324
325 // Reply count filter
344 }
345
346 // Apply like count filter if not handled by API
347 if (likesCount && likesDirection === "lt" && tweet.favorite_count !== undefined) {
348 if (tweet.favorite_count >= parseInt(likesCount)) return false;
349 }
350
351 // Apply retweet count filter if not handled by API
352 if (retweetsCount && retweetsDirection === "lt" && tweet.retweet_count !== undefined) {
353 if (tweet.retweet_count >= parseInt(retweetsCount)) return false;
1039 rel: "noopener noreferrer",
1040 },
1041 "SocialData API",
1042 ),
1043 " | ",
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