Integration Examples
ExplainThisCode fits into the tools you already use. Work inside your editor, or call the REST API from your own app or CI scripts. Below are the supported setups with quick-start snippets you can copy and adapt.
VS Code Extension
Install the official extension from the VS Code Marketplace and get instant insights without leaving your editor. Select a block of code, right-click, and choose “Explain This Code” to see a side-panel summary.
# Install from the command palette
code --install-extension explainthiscode.explainthiscode
# Or search "ExplainThisCode" in the Extensions panelREST API
Call the API directly to embed insights inside your own products. Send a POST request with the source code and receive a JSON response with the analysis. See the endpoint reference for the response fields. The same call works from a CI job when you want explanations in a pipeline.
curl -X POST https://explainthiscode.ai/api/explain \
-H "X-API-Key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"code": "function fib(n) { return n <= 1 ? n : fib(n-1) + fib(n-2); }",
"language": "javascript",
"mode": "standard",
"level": "beginner"
}'Need Help?
Check out the full API reference for endpoint details, rate limits, and authentication options. If you run into trouble, visit our help centeror contact us directly.