# Marketing Integration: API Preview

A code sample panel beside copy that explains your API. Drop it on a developer page to show how integrations connect in only a few short lines.

- Page: https://www.shadcn-ui-blocks.com/blocks/marketing/integrations/api-preview
- Collection: [Marketing](https://www.shadcn-ui-blocks.com/blocks/marketing), Free tier
- Group: [Integrations](https://www.shadcn-ui-blocks.com/blocks/marketing/integrations)
- Created: 2026-06-14
- Preview image: https://www.shadcn-ui-blocks.com/blocks/marketing/integrations/api-preview.png

## Install

```bash
npx shadcn@latest add @shadcn-ui-blocks/marketing-integrations-api-preview
```

A free block: it installs with no account or key. Or install it by URL: `npx shadcn@latest add "https://www.shadcn-ui-blocks.com/r/marketing-integrations-api-preview.json"`.

## Depends on

- npm packages: class-variance-authority, lucide-react, radix-ui
- shadcn/ui components: badge, button, card, tabs
- Installs to: `@/components/blocks/marketing/integrations/api-preview`

## About this block

API Preview is a stacked set of two-column cards, one card per
integration. The left column holds an integration logo, name, category
label, a short description, a four-stat row (rating, endpoint count,
difficulty badge, setup time), a trio of checkmark feature lines, and two
action buttons. The right column is a tinted code panel with a tabbed
snippet switcher (JavaScript, Python, cURL), a copy button that
momentarily flips to a checkmark on success, and a JSON response block
with a "Try it" button beneath. A centered call-to-action card closes the
section with two buttons and a short free-tier note.

Every integration card is data-driven, so you can add, remove, or reorder
entries by editing the list. The stat row, feature checklist, and code
examples are all per-entry, meaning you can tailor the numbers and
snippets to each service without changing the layout. The closing CTA card
is independent and can be dropped entirely if the page already has a
separate CTA section.

## When to use

Reach for this block when your developer docs page needs to move a visitor
from "what does this connect to?" to "how do I call it?" in a single
scroll. For an HR and hiring platform, that means showing recruiters and
engineers exactly how to pull candidate data or push job postings through
your API before they ever open a separate docs tab. It goes further than a
logo grid by pairing each entry with runnable code, and it stays lighter
than a full interactive playground by keeping the response panel static.

A natural flow around it on a Marketing (Legacy) page:

**Before**

- A [hero section](https://www.shadcn-ui-blocks.com/blocks/marketing/hero-sections) that names the
  platform and sets the developer audience before diving into code
- [Feature Sections](https://www.shadcn-ui-blocks.com/blocks/marketing/feature-sections) to outline
  high-level capabilities so the API examples land with context

**After**

- [FAQ Sections](https://www.shadcn-ui-blocks.com/blocks/marketing/faq-sections) to address common
  questions about rate limits, auth, and versioning that come up after
  a developer sees the code
- A [simple grid](https://www.shadcn-ui-blocks.com/blocks/marketing/integrations/simple-grid) of
  additional integration logos if you want to show breadth beyond the
  featured entries

## What you can customize

Each card exposes enough knobs to cover most third-party services without
touching the layout:

- **Code language tabs.** Swap the three languages per entry to match
  your SDKs; the tab labels and snippet content are set per integration
  in the data array.
- **Stat row values.** Rating, endpoint count, difficulty, and setup
  time are individual fields, so you can reflect the real numbers for
  each service rather than using placeholders.
- **Action buttons.** The "Connect API" and "Documentation" buttons
  accept any label and link target, so you can point each card at the
  correct auth flow or docs URL for that integration.

> Tip: keep the code snippets to ten to fifteen lines per tab so the
> panel stays readable without scrolling inside the card.

## More in Marketing Integrations

- [Carousel](https://www.shadcn-ui-blocks.com/blocks/marketing/integrations/carousel)
- [Category Tabs](https://www.shadcn-ui-blocks.com/blocks/marketing/integrations/category-tabs)
- [Featured Showcase](https://www.shadcn-ui-blocks.com/blocks/marketing/integrations/featured-showcase)
- [Simple Grid](https://www.shadcn-ui-blocks.com/blocks/marketing/integrations/simple-grid)
