You can access search results via JSON API by adding format=json
to your query:
https://codesearch.val.run/$%7Burl%7D?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 11746 results for "api"(1962ms)
33
34try {
35const response = await fetch("/api/commits", {
36method: "POST",
37headers: {
72
73try {
74const response = await fetch("/api/generate-notes", {
75method: "POST",
76headers: {
22});
2324// API endpoints
25app.post("/api/commits", async c => {
26const { token, repo, owner, startDate, endDate } = await c.req.json();
27
45});
4647app.post("/api/generate-notes", async c => {
48const { commits } = await c.req.json();
49