You can access search results via JSON API by adding format=json
to your query:
https://codesearch.val.run/$%7Burl%7D?q=fetch&page=4&format=json
For typeahead suggestions, use the /typeahead
endpoint:
https://codesearch.val.run/typeahead?q=fetch
Returns an array of strings in format "username" or "username/projectName"
Found 17206 results for "fetch"(717ms)
56};
5758const insertRes = await fetch(
59`${NOCODB_BASE_URL}/api/v2/tables/${NOCODB_TABLE}/records`,
60{
86}, [theme]);
8788// Function to fetch snippets from the API
89const fetchSnippets = async () => {
90if (!config.url || !config.token) {
91showNotification(
104if (response && response.CONTENT) {
105// The API returns the content encoded in Base64, so we decode it.
106const fetchedSnippets = Object.values(response.CONTENT).map(
107(snippet) => ({
108...snippet,
110}),
111);
112setSnippets(fetchedSnippets);
113showNotification(
114language.notification_snippets_loaded_success,
132// Load snippets on initial render and when config changes
133useEffect(() => {
134fetchSnippets();
135}, [api, config, currentLang]);
136210);
211}
212await fetchSnippets(); // Refresh snippets
213setSnippetToEdit(null);
214} catch (e) {
236"success",
237);
238await fetchSnippets(); // Refresh snippets
239setShowConfirmDelete(false);
240} catch (e) {
415);
416}
417await fetchSnippets(); // Refresh snippets
418onSuccess();
419} catch (e) {