Text Analysis — entry 001 of 15

Code Detection

Verified Jul 2026

Code Detection API from Runtime (an APILayer joint product) identifies whether a string is natural language or programming code, then classifies which language it's written in and extracts structural metadata about it. It targets developer tools and data pipelines that need to auto-label mixed code/prose content, authenticated with a per-account API key and secret issued from the Runtime Developer Console.

code-detectionnlpclassificationdeveloper-tools
AuthenticationAPI KeySign up with the provider to obtain credentials.
HTTPSSupportedTraffic is encrypted in transit.
CORSUnknownNot documented — test from the browser before relying on it.
PricingPaidSubscription required — no meaningful free tier.
FormatsJSONResponses can be requested as JSON.

GreatAPIs Score

Score67out of 100
Authentication15/25API key required
Pricing9/20Paid API
Docs14/20Documentation URL provided
Formats9/15Single response format
Freshness20/20Verified within 6 months

Embed this badge

Scored 67 on greatapis.com
<a href="https://greatapis.com/api/code-detection/"><img src="https://greatapis.com/badge/code-detection.svg" alt="Scored 67 on greatapis.com"></a>

Auth quickstart

  1. Sign up with the provider to get an API key.
  2. Send it on every request as a headerAuthorization: <key>
  3. The exact header isn't documented — Authorization is a common default; confirm in the provider's docs.
Stored keyNo key stored

Your key is stored only in this browser (localStorage) and sent directly to the API — never to greatapis.