POST
Analyze Repository
http://localhost:8000/analyze
Submit a public GitHub repository URL to extract its call graph and AST node data. Returns URLs to interactive HTML visualizations and raw JSON for javalang-parsed nodes.
Request
application/json
Body parameters
repoUrl * required
string
Full GitHub repository URL. Must be public and contain Java source files.
Live request body
{
"repoUrl": "https://github.com/owner/repo"
}
Code samples
cURL
curl -X POST "http://localhost:8000/analyze" \ -H "Content-Type: application/json" \ -d '{"repoUrl":"https://github.com/owner/repo"}'
Python
import requests url = "http://localhost:8000/analyze" body = {"repoUrl": "https://github.com/owner/repo"} resp = requests.post(url, json=body) data = resp.json() print(data["graphs"]["callgraph_json"]) print(data["graphs"]["callgraph_html"])
JavaScript (fetch)
const resp = await fetch("http://localhost:8000/analyze", { method: "POST", headers: { "Content-Type": "application/json" }, body: JSON.stringify({ repoUrl: "https://github.com/owner/repo" }) }); const data = await resp.json(); console.log(data.graphs.callgraph_json); console.log(data.graphs.callgraph_html);
Response
awaiting request…
⬡
Hit Send Request to see the response