Discover/Maoyan API
live

Maoyan APIpiaofang.maoyan.com

Access China box office rankings, streaming heat scores, theater revenue, movie scheduling, and release calendars from Maoyan Piaofang via 7 structured endpoints.

Endpoint health
verified 5d ago
get_realtime_box_office
get_theater_rankings
get_online_streaming_heat_rankings
search_movies_and_shows
get_alltime_box_office_rankings
7/7 passing latest checkself-healing
Endpoints
7
Updated
21d ago

What is the Maoyan API?

The Maoyan Piaofang API exposes 7 endpoints covering China's film and streaming market, including all-time box office totals, real-time scheduling share, theater-level daily revenue, and online streaming heat rankings. The get_alltime_box_office_rankings endpoint returns each film's boxInfo, movieId, movieName, and releaseInfo, while get_theater_rankings breaks down individual cinemas by ticket price, viewer count, and screening average.

Try it

No input parameters required.

api.parse.bot/scraper/9a941e3a-e0c9-4d10-9e95-29e709fcaea5/<endpoint>
Ready to send
Fill in the parameters and hit sign in to send to see live response data here.
Call it over HTTPgrab a free API key at signup
curl -X GET 'https://api.parse.bot/scraper/9a941e3a-e0c9-4d10-9e95-29e709fcaea5/get_realtime_box_office' \
  -H 'X-API-Key: $PARSE_API_KEY'
Python SDK · recommended

Typed, relational, agent-ready

A generated client with real types, enums, and the links between objects — the structure a flat JSON response can't carry. Autocompletes in your editor and reads cleanly to coding agents.

  • Fully typed · autocompletes
  • Objects link to objects
  • Typed errors & pagination

Typed Python client. Set up the SDK in your uv project, then pull this API’s typed client:

uv add parse-sdk
uv run parse init
uv run parse add --marketplace piaofang-maoyan-com-api

uv run parse add --marketplace pulls a pinned snapshot of this canonical API — it won’t change underneath you. To customize it, subscribe and swap to your own copy.

"""Maoyan Pro API — China box office, streaming, and theater intelligence."""
from parse_apis.maoyan_pro_api import MaoyanPro, MovieNotFound

client = MaoyanPro()

# All-time box office rankings — top grossing films in China history
for movie in client.movies.list_rankings(limit=5):
    print(movie.movie_name, movie.box_info, movie.release_info)

# Search for movies by keyword and inspect first result
result = client.moviesearchresults.search(query="哪吒", limit=1).first()
if result:
    print(result.title, result.box_office, result.release_date)

# Streaming heat rankings — hottest online shows right now
for show in client.streamingshows.list(limit=3):
    print(show.series_info.name, show.series_info.platform_desc, show.curr_heat)

# Today's scheduling distribution across cinemas
for sched in client.movieschedules.list(limit=3):
    print(sched.movie_name, sched.count, sched.count_rate)

# Theater revenue rankings
try:
    theater = client.theaters.list_rankings(limit=1).first()
    if theater:
        print(theater.name, theater.box_desc, theater.view_count_desc)
except MovieNotFound as exc:
    print(f"not found: {exc}")

# Upcoming release calendar
cal = client.releasecalendars.get()
print(cal.release_info.location, len(cal.release_info.calendars), "release dates tracked")

print("exercised: movies.list_rankings / moviesearchresults.search / streamingshows.list / movieschedules.list / theaters.list_rankings / releasecalendars.get")
All endpoints · 7 totalmissing one? ·

Returns historical single-day box office record rankings for the China national market. Each record represents one of the highest-grossing single days in history, ordered by revenue descending. No pagination — full list returned in one call.

Input

No input parameters required.

Response
{
  "type": "object",
  "fields": {
    "items": "array of box office record objects with date and revenue"
  },
  "sample": {
    "data": {
      "items": [
        {
          "date": "2025年01月29日",
          "boxDesc": "18.08亿"
        },
        {
          "date": "2021年02月12日",
          "boxDesc": "16.93亿"
        }
      ]
    },
    "status": "success"
  }
}

About the Maoyan API

Box Office and Scheduling Data

Two endpoints target theatrical performance directly. get_alltime_box_office_rankings returns the all-time China box office total rankings with fields like boxInfo (e.g. '154.46亿'), movieId, movieName, and releaseInfo. get_realtime_box_office returns historical single-day market records, each entry carrying a date and a boxDesc revenue string. For daily scheduling, get_movie_scheduling lists every current title's screening count, countRate (percentage share of total screenings), and movieId.

Theater and Release Intelligence

get_theater_rankings surfaces individual cinemas ranked by daily revenue, with boxDesc, viewCountDesc, avgViewBoxDesc (average ticket price), and avgShowViewDesc (average viewers per screening) — useful for tracking geographic performance concentration. get_release_calendar returns the upcoming release calendar as two structured objects: releaseInfo maps dates to movie counts, and releaseList groups detailed film records by release date.

Streaming and Search

get_online_streaming_heat_rankings returns online shows ranked by currHeat score, with each entry's seriesInfo object carrying name, platformDesc, releaseInfo, and seriesId. For discovery, search_movies_and_shows accepts a query string (Chinese title or partial title) and returns matching results including title, cast, director, box_office, and release_date. Results follow Maoyan's own fuzzy matching logic.

Reliability & maintenanceVerified

The Maoyan API is a managed, monitored endpoint for piaofang.maoyan.com — not a raw scraper you maintain. Every endpoint is automatically health-checked on a schedule, and when piaofang.maoyan.com changes and a check fails, the API is automatically queued for repair and re-verified. It is built to keep working as the site underneath it changes.

This isn't an official piaofang.maoyan.com API — it's an independent, maintained REST wrapper over public data. Where the source has no official API (or only a limited one), Parse gives you a stable contract over a source that never promised one, and keeps it current. Need a new endpoint or field? You can revise it yourself in plain English and the agent rebuilds it against the live site in minutes — contributing the change back to the shared API is free.

Last verified
5d ago
Latest check
7/7 endpoints passing
Maintenance
Monitored & self-healing
Will this API break when the source site changes?+
It's built not to. Every endpoint is health-checked on a schedule with automated test probes. When the source site changes and a check fails, the API is automatically queued for repair and re-verified — that's the self-healing layer. Each API page shows when its endpoints were last verified. And because marketplace APIs are shared, any fix reaches everyone using it.
Is this an official API from the source site?+
No — Parse APIs are independent, managed REST wrappers over publicly available data. That is the point: where a site has no official API (or only a limited one), Parse gives you a maintained, monitored endpoint for that data and keeps it working as the site changes — so you get a stable contract over a source that never promised one.
Can I fix or extend this API myself if I need a new endpoint or field?+
Yes — and you don't have to wait on us. This API was generated by the Parse agent, which stays attached. Describe the change in plain English ("add an endpoint that returns reviews", "fix the price field") in the revise box on the API page or via the revise_api MCP tool, and the agent rebuilds it against the live site in minutes. Contributing the change back to the public API is free.
What happens if I call an endpoint that has an issue?+
Errors are machine-readable: a bad call returns a clean status with the list of available endpoints and a repair hint, so an agent (or you) can recover or trigger a fix instead of failing silently. Confirmed failures feed the automatic repair queue.
Common use cases
  • Track which films currently hold the largest share of national screening slots using countRate from get_movie_scheduling
  • Build an all-time China box office leaderboard with boxInfo and movieName from get_alltime_box_office_rankings
  • Monitor online streaming competition by comparing currHeat scores and platformDesc across shows
  • Identify top-performing cinemas by daily revenue, average ticket price, and viewers-per-screening from get_theater_rankings
  • Plan release-window analysis by pulling upcoming titles and their dates from get_release_calendar
  • Search a film by partial Chinese title and retrieve its box office total and cast via search_movies_and_shows
  • Record historical single-day market peaks using the date and boxDesc fields from get_realtime_box_office
Pricing & limitsSee full pricing →
TierPriceCredits/monthRate limit
Free$0/mo1005 req/min
Hobby$30/mo1,00020 req/min
Developer$100/mo5,000100 req/min

One credit = one API call regardless of which marketplace API you call. Exceeding the rate limit returns a 429 response. Authenticate with the X-API-Key header.

Frequently asked questions
Does Maoyan Piaofang have an official developer API?+
Maoyan does not publish a public developer API for its Piaofang (professional box office) data. Access to its data is typically reserved for industry partners under commercial agreements.
What does `get_theater_rankings` return and how granular is it?+
get_theater_rankings returns individual cinema entries with name, boxDesc (daily revenue in 万), viewCountDesc (total viewers), avgViewBoxDesc (average ticket price), and avgShowViewDesc (average viewers per screening). It covers today's rankings nationally but does not break down performance by individual film within each theater.
Does the API return per-movie daily box office trends over time?+
Not currently. The API covers all-time totals via get_alltime_box_office_rankings, single-day market records via get_realtime_box_office, and today's scheduling share via get_movie_scheduling, but does not expose a time-series of daily revenue per individual film. You can fork this API on Parse and revise it to add an endpoint targeting per-film daily performance data.
How does `search_movies_and_shows` handle queries, and what happens if a title has no box office data?+
The endpoint accepts a query string (Chinese title or partial title) and applies Maoyan's own fuzzy matching. When a result has no recorded box office, the box_office field returns the string '暂无票房数据' rather than null, so callers should check for that sentinel value rather than treating the field as numeric.
Does the API include audience ratings or user reviews for films?+
Not currently. The API covers box office financials, screening schedules, theater revenue, streaming heat scores, and release calendar data, but does not expose Maoyan's audience rating or review data. You can fork this API on Parse and revise it to add an endpoint for film ratings and user review counts.
Page content last updated . Spec covers 7 endpoints from piaofang.maoyan.com.
Related APIs in EntertainmentSee all →
maoyan.com API
Find and browse now-showing and coming-soon movies with detailed information, then discover nearby cinemas and filter them by location and amenities. Get comprehensive movie details and search through Chinese movie theaters to plan your movie outings.
m.maoyan.com API
Discover currently showing and upcoming movies with detailed information including ratings, cast, directors, release dates, and posters from Maoyan Movies. Search for specific movie details to stay updated on the latest cinema releases and find comprehensive film information all in one place.
zgdypw.cn API
Track China's movie box office performance with daily rankings by movie, cinema, circuit, and city, plus access detailed weekly and monthly reports for comprehensive market analysis. Monitor industry trends through curated market analysis articles and reports to stay informed on the Chinese film industry's performance and growth.
boxofficemojo.com API
Track and analyze box office performance data by searching for movies, viewing detailed metrics, comparing charts, and checking upcoming release schedules. Access comprehensive information on movie performance including daily charts, all-time worldwide rankings, and release-specific performance data.
the-numbers.com API
Search and discover comprehensive movie industry data including box office statistics, cast and crew information, and all-time records directly from the-numbers.com. Track daily box office charts and retrieve detailed movie information to stay informed about film performance and historical cinema records.
mymovies.it API
Search for movies and showtimes across Italian cinemas, find what's playing near you by city, and discover detailed information about films, cast members, and box office rankings. Browse upcoming releases and get comprehensive cinema details to plan your movie nights.
movietickets.com API
Find movie showtimes and theaters near you, browse now playing and coming soon films, and get detailed movie information including ratings and schedules. Plan your movie nights by checking availability across theaters and viewing comprehensive movie metadata all in one place.
fond-kino.ru API
Access real-time Russian cinema box office statistics, search and explore detailed film catalogs, check screening schedules, and discover top-performing movies. Get industry insights through analytics reports, exhibitor information, and trending cinema data all from the official Russian Cinema Fund database.