You can access search results via JSON API by adding format=json
to your query:
https://codesearch.val.run/$%7Burl%7D?q=react&page=18&format=json
For typeahead suggestions, use the /typeahead
endpoint:
https://codesearch.val.run/typeahead?q=react
Returns an array of strings in format "username" or "username/projectName"
Found 17477 results for "react"(2714ms)
92return new Response(JSON.stringify({
93error: 'subreddit and keywords parameters are required',
94example: '?action=add&subreddit=programming&keywords=python,javascript,react&description=Monitor programming posts'
95}), {
96status: 400,
251},
252examples: [
253'?action=add&subreddit=programming&keywords=python,javascript,react&description=Programming languages',
254'?action=add&subreddit=webdev&keywords=frontend,backend,fullstack&limit=50',
255'?action=toggle&subreddit=programming',
1000const hasInteractiveElements = /onclick|addEventListener/i.test(html);
1001const hasAjax = /fetch\(|xhr|ajax/i.test(html);
1002const hasPopularLibs = /jquery|react|vue|angular/i.test(html);
10031004// High complexity - redirect to original