# Marketing Developer: Api Hero With Terminal

A developer hero with the pitch beside a terminal running the first API call and its response.

- Page: https://www.shadcn-ui-blocks.com/blocks/marketing-pro/developers-sections/api-hero-with-terminal
- Collection: [Marketing](https://www.shadcn-ui-blocks.com/blocks/marketing-pro), Standard tier
- Group: [Developers](https://www.shadcn-ui-blocks.com/blocks/marketing-pro/developers-sections)
- Created: 2026-06-15
- Preview image: https://www.shadcn-ui-blocks.com/blocks/marketing-pro/developers-sections/api-hero-with-terminal.png

## Install

```bash
npx shadcn@latest add @shadcn-ui-blocks/marketing-pro-developers-sections-api-hero-with-terminal
```

Needs an API key from a Pro or Team plan: add `@shadcn-ui-blocks` to the registries in components.json with the key as an `Authorization: Bearer` header. Setup: https://www.shadcn-ui-blocks.com/docs/shadcn-cli. The MCP server installs it without the setup: https://www.shadcn-ui-blocks.com/docs/mcp.

## Depends on

- npm packages: class-variance-authority, lucide-react, radix-ui
- shadcn/ui components: button
- Installs to: `@/components/blocks/marketing-pro/developers-sections/api-hero-with-terminal`

## About this block

Api Hero With Terminal opens a developer landing page with the
pitch beside a terminal already mid session. The request is four
lines of curl, the response is real looking JSON with an id and a
latency figure, and the blinking cursor implies the next command
is yours. Two buttons split the audience, get a key or read docs.

The terminal is drawn from divs and mono text, no images and no
syntax highlighter dependency. Request and response live in two
small arrays at the top of the file, so swapping in your actual
API shape is a one minute edit.

## When to use

Reach for this block at the top of API and developer tool pages
where the fastest way to qualify a visitor is showing the actual
interface, the code. Pair it with
[quickstart steps](https://www.shadcn-ui-blocks.com/blocks/marketing-pro/developers-sections) so
the promise of the terminal has a path behind it.

A natural flow around it on a Marketing Pro page:

**Before**

- Nothing, heroes open the page

**After**

- [Quickstart steps](https://www.shadcn-ui-blocks.com/blocks/marketing-pro/developers-sections)
  turning the curl call into a running integration
- [Pricing](https://www.shadcn-ui-blocks.com/blocks/marketing-pro/pricing-sections) with the free
  tier the hero promised

## What you can display

One strong use is your simplest possible API call with its real
response. Other terminals:

- **CLI install.** The package manager line and the first command
  that does something visible.
- **Webhook tail.** A live looking stream of events arriving.
- **Deploy output.** The three lines between push and a URL.

> Tip: keep the response honest, a real id format and a real
> latency number read as documentation, not decoration.

## More in Marketing Developers

- [Api Changelog Compact](https://www.shadcn-ui-blocks.com/blocks/marketing-pro/developers-sections/api-changelog-compact)
- [Cli Install Band](https://www.shadcn-ui-blocks.com/blocks/marketing-pro/developers-sections/cli-install-band)
- [Dev Community Cards](https://www.shadcn-ui-blocks.com/blocks/marketing-pro/developers-sections/dev-community-cards)
- [Docs Links Grid](https://www.shadcn-ui-blocks.com/blocks/marketing-pro/developers-sections/docs-links-grid)
- [Error Codes Split](https://www.shadcn-ui-blocks.com/blocks/marketing-pro/developers-sections/error-codes-split)
- [Quickstart Steps Code](https://www.shadcn-ui-blocks.com/blocks/marketing-pro/developers-sections/quickstart-steps-code)
- [Rate Limits Table](https://www.shadcn-ui-blocks.com/blocks/marketing-pro/developers-sections/rate-limits-table)
- [Sdk Language Grid](https://www.shadcn-ui-blocks.com/blocks/marketing-pro/developers-sections/sdk-language-grid)
- [Status Uptime Panel](https://www.shadcn-ui-blocks.com/blocks/marketing-pro/developers-sections/status-uptime-panel)
- [Test Mode Fixtures](https://www.shadcn-ui-blocks.com/blocks/marketing-pro/developers-sections/test-mode-fixtures)
- [Webhook Events Table](https://www.shadcn-ui-blocks.com/blocks/marketing-pro/developers-sections/webhook-events-table)
