CodePen website screenshot

CodePen

CodePen is a social development environment for front-end designers and developers, offering a browser-based playground for writing and sharing HTML, CSS, and JavaScript. The platform allows users to create "Pens" (interactive code snippets) and share them publicly or privately. CodePen provides developer-facing APIs including an Embed API for displaying Pens on external sites, a POST to Prefill API for programmatically opening the Pen editor with pre-populated code, Prefill Embeds for transforming existing code blocks into interactive sandboxes, and an oEmbed endpoint for standard embed discovery. The platform is widely used by educators, tutorial authors, and documentation teams who need live, interactive code examples embedded in external pages.

CodePen publishes 4 APIs on the APIs.io network. Tagged areas include Developer Tools, Front-End Development, Code Playground, Embeds, and Education.

The CodePen catalog on APIs.io includes 1 JSON-LD context.

CodePen’s developer surface includes documentation, engineering blog, pricing, and 8 more developer resources.

25.8/100 emerging ▬ flat Agent 3/100 human only saas Full breakdown ↓
scored 2026-09-08 · rubric v0.20.0
AccessFreemium
4 APIs
Developer ToolsFront-End DevelopmentCode PlaygroundEmbedsEducation

Kin Score

Kin Score Kin Score How this is scored →
scored 2026-09-08 · rubric v0.20.0
Regulatory Posture applies to this provider. Its tags matched the Education & Research regime, so Regulatory Posture carries 15 points of the composite. If this regime is wrong for your business, say so on your provider repo — the applicability map is public and we will correct it.
Create-or-Update Ergonomics could not be measured. We hold no machine-readable contract for this provider to read, so there is nothing to measure a write surface against. Excluded rather than scored zero: never-measured and measured-empty are different facts. Publishing an OpenAPI is what makes this facet — and several others — scorable at all.
The six quality facets above are damped to 85 points between them, because the conditional facet above carries the other 15. That is why each facet's contribution is shown against a damped maximum: raising a quality facet moves the composite by 85% of its nominal weight, not 100%. The full arithmetic is at apis.io/rating/.
Improve this rating by publishing the missing artifacts — every area above can be raised, and the full rubric is at apis.io/rating/. Every facet and dimension name above is a link: it opens that measurement's own page — what it means, the exact checks that feed it, how the whole catalog distributes on it, and the providers at the top of it. This rating is computed from github.com/api-evangelist/codepen: open an issue to ask a question, or submit a pull request to add artifacts. Submit an artifact on GitHub — free → Manage your own listing — the Influence plan, $499/mo →

APIs 4

Individual APIs this provider publishes, each with its own machine-readable definition.

CodePen oEmbed API

Standard oEmbed endpoint that returns a rich embed payload (iframe HTML, thumbnail URL, author metadata) for any public CodePen Pen URL. Supports JSON and JSONP response formats...

CodePen Embed API

Client-side JavaScript API for rendering and lazy-loading embedded Pens on external web pages. Uses the global window.__CPEmbed() function with data-* attributes on a .codepen d...

CodePen POST to Prefill API

HTTP POST endpoint that accepts JSON-encoded code and configuration and opens a new (unsaved) Pen in the CodePen editor pre-populated with that content. Supports HTML, CSS, and ...

CodePen Prefill Embeds API

Declarative embed API that transforms existing code blocks on a web page into live, interactive CodePen sandboxes without requiring users to navigate away. Code is supplied via ...

Pricing Plans 1

Published pricing tiers and plan structures.

Codepen Plans Pricing

5 plans

PLANS

Rate Limits 1

Documented rate limits and quota policies.

Codepen Rate Limits

3 limits

RATE LIMITS

FinOps 1

Cost, billing, and metering signals for API financial operations.

Semantic Vocabularies 1

JSON-LD contexts and semantic vocabularies used across these APIs.

Codepen Context

0 classes · 37 properties

JSON-LD

Security Posture 1

Authentication, domain security, vulnerability disclosure, and trust-center signals.

Codepen Domain Security

TLSv1.3 · HSTS · DNSSEC · DMARC

SECURITY

Resources

Documentation 1

Reference material describing how the API behaves

Build 1

SDKs, sample code, and the tooling you integrate with

Access & Security 1

Authentication, authorization, and security posture

Operate 1

Status, limits, changes, and where to get help

Commercial 3

Pricing, plans, and the legal terms of use

Company 3

The organization behind the API

Other 1

Properties that don't map to a standard resource type

Source (apis.yml)

apis.yml Raw ↑
aid: codepen
name: CodePen
description: CodePen is a social development environment for front-end designers and developers, offering a browser-based
  playground for writing and sharing HTML, CSS, and JavaScript. The platform allows users to create "Pens" (interactive code
  snippets) and share them publicly or privately. CodePen provides developer-facing APIs including an Embed API for displaying
  Pens on external sites, a POST to Prefill API for programmatically opening the Pen editor with pre-populated code, Prefill
  Embeds for transforming existing code blocks into interactive sandboxes, and an oEmbed endpoint for standard embed discovery.
  The platform is widely used by educators, tutorial authors, and documentation teams who need live, interactive code examples
  embedded in external pages.
type: Index
deliveryModel:
  model: saas
  open_source: false
  commercial: true
  callable_host: false
  label: Hosted service · you call their endpoint
  confidence: medium
  source:
  - pricing
  generated: '2026-08-28'
  method: derived
accessModel:
  pricing: freemium
  onboarding: unknown
  trial: false
  try_now: false
  public: false
  label: Freemium
  confidence: medium
  source:
  - plans
  generated: '2026-07-22'
  method: derived
image: https://kinlane-images.s3.amazonaws.com/shared/apis-json/icons/codepen.png
tags:
- Developer Tools
- Front-End Development
- Code Playground
- Embeds
- Education
url: https://raw.githubusercontent.com/api-evangelist/codepen/refs/heads/main/apis.yml
created: '2026-06-12'
modified: '2026-06-12'
specificationVersion: '0.23'
apis:
- aid: codepen:oembed
  name: CodePen oEmbed API
  description: Standard oEmbed endpoint that returns a rich embed payload (iframe HTML, thumbnail URL, author metadata) for
    any public CodePen Pen URL. Supports JSON and JSONP response formats and an optional height parameter.
  humanURL: https://blog.codepen.io/documentation/oembed/
  baseURL: https://codepen.io/api/oembed
  tags:
  - oEmbed
  - Embeds
  - Front-End Development
  properties:
  - type: Documentation
    url: https://blog.codepen.io/documentation/oembed/
- aid: codepen:embed
  name: CodePen Embed API
  description: Client-side JavaScript API for rendering and lazy-loading embedded Pens on external web pages. Uses the global
    window.__CPEmbed() function with data-* attributes on a .codepen div to control height, theme, default tab, animations,
    and zoom level. A __CodePenIFrameAddedToPage callback is available for post-embed hooks.
  humanURL: https://blog.codepen.io/documentation/embedded-pens/
  baseURL: https://public.codepenassets.com/embed/index.js
  tags:
  - Embeds
  - JavaScript
  - Front-End Development
  properties:
  - type: Documentation
    url: https://blog.codepen.io/documentation/embedded-pens/
- aid: codepen:post-to-prefill
  name: CodePen POST to Prefill API
  description: HTTP POST endpoint that accepts JSON-encoded code and configuration and opens a new (unsaved) Pen in the CodePen
    editor pre-populated with that content. Supports HTML, CSS, and JS content fields, preprocessor choices, external resources,
    and editor layout. No authentication is required.
  humanURL: https://blog.codepen.io/documentation/prefill/
  baseURL: https://codepen.io/pen/define/
  tags:
  - Front-End Development
  - Developer Tools
  properties:
  - type: Documentation
    url: https://blog.codepen.io/documentation/prefill/
- aid: codepen:prefill-embeds
  name: CodePen Prefill Embeds API
  description: Declarative embed API that transforms existing code blocks on a web page into live, interactive CodePen sandboxes
    without requiring users to navigate away. Code is supplied via data-prefill JSON attributes and pre elements; the embed
    script at public.codepenassets.com renders an isolated iFrame. Supports HTML, CSS, and JavaScript preprocessors, external
    stylesheets and scripts, and optional editable mode.
  humanURL: https://blog.codepen.io/documentation/prefill-embeds/
  baseURL: https://public.codepenassets.com/embed/index.js
  tags:
  - Embeds
  - Front-End Development
  - JavaScript
  properties:
  - type: Documentation
    url: https://blog.codepen.io/documentation/prefill-embeds/
common:
- type: DomainSecurity
  url: security/codepen-domain-security.yml
- type: Website
  url: https://codepen.io
- type: Documentation
  url: https://blog.codepen.io/documentation/
- type: GitHubOrganization
  url: https://github.com/codepen
- type: LinkedIn
  url: https://www.linkedin.com/company/codepen
- type: Blog
  url: https://blog.codepen.io
- type: Pricing
  url: https://codepen.io/pricing
- type: X
  url: https://twitter.com/CodePen
- type: Plans
  url: plans/codepen-plans-pricing.yml
- type: RateLimits
  url: rate-limits/codepen-rate-limits.yml
- type: FinOps
  url: finops/codepen-finops.yml
maintainers:
- FN: Kin Lane
  email: kin@apievangelist.com

Work with this as data

Every provider here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for providers

9 MCP tools reach this
  • find_providersBrowse and filter every provider in the catalog.
  • get_provider_artifactsEvery artifact this provider publishes, grouped by type.
  • get_provider_operationsEvery operation across all of their OpenAPIs — one call instead of parsing every spec.
  • get_provider_toolsEvery MCP tool they ship, with the operation each wraps.
  • get_provider_evidenceHow each part of their score was established. Free — the basis for a claim should not sit behind it.
  • get_provider_ratingPRO — composite, band, trend and facet scores.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This provider
curl "https://apis.io/api/v1/providers/codepen"
All providers
curl "https://apis.io/api/v1/providers?limit=25"
Every operation they expose
curl "https://apis.io/api/v1/providers/codepen/operations?limit=25"
How their score was established
curl "https://apis.io/api/v1/providers/codepen/evidence"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.