You can access search results via JSON API by adding format=json
to your query:
https://codesearch.val.run/...?q=api&page=27&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 19338 results for "api"(634ms)
62log_excerpts: [
63`[${new Date().toISOString()}] ERROR: Connection to database 'pg-primary-01' timed out.`,
64`[${new Date().toISOString()}] WARN: High memory pressure detected on service 'api-gateway'.`,
65`[${new E().toISOString()}] ERROR: Failed to acquire lock 'payment_processing_lock'.`,
66],
161return createAcp("root_cause_analysis_agent", "SUCCESS", plan);
162} catch (e) {
163console.error("OpenAI API Error:", e);
164return {
165...createAcp("root_cause_analysis_agent", "FAILURE", null),
288<textarea id="alert-payload">
289{
290"service": "api-gateway",
291"host": "prod-gateway-04",
292"severity": "critical",
146// id: "PNWF8EN",
147// type: "user_reference",
148// self: "https://api.pagerduty.com/users/PNWF8EN",
149// html_url: "https://val-town.pagerduty.com/users/PNWF8EN",
150// summary: "Max McDonnell"
154// id: "Q3B4K8SB1ETMJV",
155// type: "incident",
156// self: "https://api.pagerduty.com/incidents/Q3B4K8SB1ETMJV",
157// html_url: "https://val-town.pagerduty.com/incidents/Q3B4K8SB1ETMJV",
158// number: 579,
164// id: "P7L5PET",
165// type: "service_reference",
166// self: "https://api.pagerduty.com/services/P7L5PET",
167// html_url: "https://val-town.pagerduty.com/services/P7L5PET",
168// summary: "Val Town"
172// id: "PNWF8EN",
173// type: "user_reference",
174// self: "https://api.pagerduty.com/users/PNWF8EN",
175// html_url: "https://val-town.pagerduty.com/users/PNWF8EN",
176// summary: "Max McDonnell"
180// id: "PODJ1UF",
181// type: "escalation_policy_reference",
182// self: "https://api.pagerduty.com/escalation_policies/PODJ1UF",
183// html_url: "https://val-town.pagerduty.com/escalation_policies/PODJ1UF",
184// summary: "Default"
204// id: "PNWF8EN",
205// type: "user_reference",
206// self: "https://api.pagerduty.com/users/PNWF8EN",
207// html_url: "https://val-town.pagerduty.com/users/PNWF8EN",
208// summary: "Max McDonnell"
212// id: "Q2F1TIO67HLDLJ",
213// type: "incident",
214// self: "https://api.pagerduty.com/incidents/Q2F1TIO67HLDLJ",
215// html_url: "https://val-town.pagerduty.com/incidents/Q2F1TIO67HLDLJ",
216// number: 580,
222// id: "P7L5PET",
223// type: "service_reference",
224// self: "https://api.pagerduty.com/services/P7L5PET",
225// html_url: "https://val-town.pagerduty.com/services/P7L5PET",
226// summary: "Val Town"
230// id: "PODJ1UF",
231// type: "escalation_policy_reference",
232// self: "https://api.pagerduty.com/escalation_policies/PODJ1UF",
233// html_url: "https://val-town.pagerduty.com/escalation_policies/PODJ1UF",
234// summary: "Default"