Live cam data API

Cam4 API

Cam4 data over a simple REST API: model profiles with public wall posts, live broadcast snapshots stored permanently on our CDN, snapshot history, a searchable model catalog and search by face photo.

Overview

What the Cam4 API gives you

Endpoints

Cam4 API endpoints

GET

Get model profile

Age, gender, sexual orientation, country, spoken languages, follower count, avatar and banner, last broadcast time, live status and the model's public wall posts.

/profile/{username}
  • username — Cam4 username
GET

Get live snapshot

Captures the current broadcast frame and returns a permanent CDN link. The frame is the platform's ready-made image closest to 640x360, never resized: usually 400x225 (400x711 for vertical broadcasts). Offline models return stream_unavailable with HTTP 200.

/screenshot/{username}
  • username — Cam4 username
GET

Get snapshot history

Frames captured for the model, newest first, each with a permanent CDN link, capture time and size. History depth depends on your plan.

/snapshots/{username}
  • username — Cam4 username
  • limit — optional page size 1-1000 (default 1000)
  • offset — optional number of frames to skip
GET

Browse the model catalog

Paginated browsing over the Cam4 model catalog. Page size and extended fields (orientation, broadcast type, tags, viewers, avatar and last broadcast time) depend on your plan.

/catalog/{page}/{order}
  • page — integer >= 1
  • order — publish_date_desc | publish_date_asc | username_asc | username_desc | followers_desc | last_live_desc
GET

Search models

Full-text search over the catalog by username, country code, language codes, sexual orientation and tags. Page size depends on your plan.

/catalog/search/{page}/{order}
  • page — integer >= 1
  • order — relevance_desc | publish_date_desc | publish_date_asc | username_asc | username_desc | followers_desc | last_live_desc
  • query — full-text search value; quoted phrases and boolean operators are supported
  • fields — optional comma-separated list: username,country,languages,orientation,tags
POST

Find models by face photo

Upload a face photo and find the Cam4 models who look like that person. Each model appears once with the best-matching broadcast frame and a similarity score from 0 to 1. The number of matches depends on your plan.

/search/by_image
  • image_base64 — JSON body field: the photo as base64 (JPEG, PNG, WebP or GIF, up to 10 MB, 64x64 to 1000x1000 px)
  • page — optional page number on plans with paginated results

Quick start

Make your first request

Apimirai gateway

Send your account API key in the X-API-Key header, as an Authorization: Bearer token or as the api_key query parameter. Every response is JSON.

curl \
     -H "X-API-Key: <your-api-key>" \
     "https://api.mirai-api.com/cam4-api/profile/<username>"

RapidAPI

Already on RapidAPI? Call the same endpoints with your RapidAPI key and host headers.

curl \
     -H "X-RapidAPI-Key: <your-rapidapi-key>" \
     -H "X-RapidAPI-Host: cam4-api.p.rapidapi.com" \
     "https://cam4-api.p.rapidapi.com/profile/<username>"

Good to know

Integration notes

Use cases

What teams build with the Cam4 API

Cam directories and affiliate sites

Show live status, fresh broadcast previews and profile details for the models you list or promote.

Model and market analytics

Track followers, ratings, broadcast activity and profile changes across the catalog.

Cross-platform model search

Match a face photo against broadcast frames to find the same performer on several platforms.

Moderation and brand protection

Check whether a photo belongs to a known model profile and spot impersonation or reused images.

FAQ

Cam4 API questions

Do I need a Cam4 account to use the Cam4 API?

No. You call the API with your Apimirai key; all platform access, sessions and proxies are handled on our side.

What does the API return when a model is offline?

Live snapshot requests for offline models and paid or private shows return HTTP 200 with the stream_unavailable code. The profile and the snapshot history stay available.

Can I find a Cam4 model by photo?

Yes. POST /search/by_image takes a face photo as base64 and returns the Cam4 models who look like that person, each with the best-matching broadcast frame and a similarity score from 0 to 1.

Are snapshot links permanent?

Yes. Every captured frame is stored on our CDN and its link keeps working, so you can save it in your own database.

How do I get an API key for the Cam4 API?

Create an account on mirai-api.com, choose a plan for the Cam4 API and copy your API key from the Settings page. Send it in the X-API-Key header, as an Authorization: Bearer token or as the api_key query parameter.

Is the Cam4 API available on RapidAPI?

Yes. The same endpoints are published on RapidAPI, so you can also subscribe there and call them with your RapidAPI key.

More APIs

Live cam data API

Stripchat API

Model profiles, live broadcast snapshots, snapshot history, a searchable model catalog and search by face photo.

Live cam data API

Chaturbate API

Room cards and bios, live 640x360 broadcast snapshots, snapshot history, a searchable model catalog and search by face photo.

Live cam data API

BongaCams API

Model profiles with tip menus and working hours, live broadcast snapshots, snapshot history, a searchable model catalog and search by face photo.

Live cam data API

MyFreeCams API

Model profiles with CamScore and weekly schedules, live broadcast snapshots, snapshot history, a searchable model catalog and search by face photo.

Live cam data API

LiveJasmin API

Model profiles with ratings, skills and appearance, live broadcast snapshots, snapshot history, a searchable model catalog and search by face photo.

Live cam data API

CamSoda API

Model profiles with show prices and fan clubs, live 1024x576 broadcast snapshots, snapshot history, a searchable model catalog and search by face photo.

Live cam data API

XloveCam API

Model profiles with ratings, reviews and show prices, live broadcast snapshots, snapshot history, a searchable model catalog and search by face photo.

Built into 10 APIs

Face photo search

An endpoint in ten of our APIs that finds creators and cam models who look like the person in a photo.

Start with the Cam4 API

Create an account to get your API key, documentation with live request examples and direct developer support.