You can access search results via JSON API by adding format=json
to your query:
https://codesearch.val.run/?q=react&page=29&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 21633 results for "react"(1007ms)
1/** @jsxImportSource https://esm.sh/react */
2import React, { useEffect, useState } from "https://esm.sh/react";
3import { createRoot } from "https://esm.sh/react-dom/client";
45import {
13TbSend as Send,
14TbUsers as Users,
15} from "https://esm.sh/react-icons/tb";
1617const CampaignLanding = () => {
268<title>Prerequisite Tree Generator</title>
269<link rel="icon" href="data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 100 100%22><text y=%22.9em%22 font-size=%2290%22>🌳</text></svg>">
270<script src="https://unpkg.com/react@18/umd/react.development.js"></script>
271<script src="https://unpkg.com/react-dom@18/umd/react-dom.development.js"></script>
272<script src="https://unpkg.com/@babel/standalone/babel.min.js"></script>
273<link rel="preconnect" href="https://fonts.googleapis.com">
442<div id="root"></div>
443<script type="text/babel">
444const { useState, useEffect, useCallback } = React;
445446const API_BASE_URL = '${sourceUrl}';
610611const container = document.getElementById('root');
612const root = ReactDOM.createRoot(container);
613root.render(<App />);
614</script>