# Pixiv Ranking Scraper (`scrapingmonkey/pixiv-ranking-scraper`) Actor

Export the public Pixiv daily illustration ranking. Get rank, previous rank, artwork and creator details, tags, preview links and available ranking metrics.

- **URL**: https://apify.com/scrapingmonkey/pixiv-ranking-scraper.md
- **Developed by:** [ScrapingMonkey](https://apify.com/scrapingmonkey) (community)
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.00 / 1,000 results

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

**Pixiv Ranking Scraper** — Export the public Pixiv daily illustration ranking. Get rank, previous rank, artwork and creator details, tags, preview links and available ranking metrics. Add supported inputs and start a run to get structured public data without providing a Pixiv account.

Export Pixiv's daily illustration ranking with current and previous ranks, dates, tags and creators. Keep each ranked artwork in one source-linked row.

| At a glance | Details |
|---|---|
| 📥 Input | Use daily for the latest daily illustration ranking, YYYYMMDD, or a daily illustration ranking URL. |
| 📤 Output | One artwork per success row, with source input retained |
| 📄 Pagination | `pagesPerRanking` limits result pages per input, with a default of 1. The source may end sooner. |
| 🔐 Login required | No |
| ⚡ Processing | Up to 5 HTTP requests concurrently with automatic retries |
| 💾 Delivery | One Apify dataset view, useful flat columns and complete nested JSON |

### What the pixiv ranking scraper collects 📊

Export the public Pixiv daily illustration ranking. Get rank, previous rank, artwork and creator details, tags, preview links and available ranking metrics.

Data can include:

- Source identity and public links
- Available id, url, title, description, type code, author id, author name, author url
- Original input retained with every result
- One consistent success or failed record format

### How to collect artworks from Pixiv 🚀

1. Enter one or more supported inputs in `inputList`.
2. Set the result-page budget for each input.
3. Start the Actor.
4. Open the **Artworks** dataset view and review the individual records.
5. Export the dataset or retrieve it from your application.

```json
{
  "inputList": [
    "daily"
  ],
  "pagesPerRanking": 1
}
```

`pagesPerRanking` limits result pages per input, with a default of 1. The source may end sooner.

### Pixiv artworks data and complete output 📦

| Field | Type | Meaning |
|---|---|---|
| `status` | string | Result status: success or failed. |
| `input` | string | Original submitted input. |
| `id` | string or null | Stable ID of the result entity, retained as a string. |
| `url` | string or null | Public source URL of the result entity. |
| `title` | string or null | Public title supplied by the source. |
| `description` | string or null | Public description in plain text when exposed by this endpoint. |
| `type` | string or null | Type when exposed by the public response. |
| `type_code` | integer or null | Pixiv artwork type: 0 illustration, 1 manga, 2 ugoira. |
| `author_id` | string or null | Author id supplied by the source. |
| `author_name` | string or null | Author name when exposed by the public response. |
| `author_url` | string or null | Available author URL. |
| `author_avatar_url` | string or null | Available author avatar URL. |
| `thumbnail_url` | string or null | Available thumbnail URL. |
| `width` | integer or null | Image width in pixels when supplied. |
| `height` | integer or null | Image height in pixels when supplied. |
| `image_count` | integer or null | Number of images in the artwork, not the scraper pagination budget. |
| `tags` | array or null | Tags supplied by the website, kept in the parent row. |
| `created_at` | string or null | Source publication or comment time. Comment timestamps retain the source format and do not invent a timezone. |
| `updated_at` | string or null | Source update timestamp when available. |
| `ai_type` | integer or null | AI classification code supplied by Pixiv; no independent content classification is performed. |
| `is_original` | boolean or null | Is original when exposed by the public response. |
| `is_masked` | boolean or null | Whether the source masks this card; absent values remain null. |
| `restriction` | integer or null | Restriction when exposed by the public response. |
| `age_restriction` | integer or null | Age restriction when exposed by the public response. |
| `rank` | integer or null | Rank when exposed by the public response. |
| `previous_rank` | integer or null | Previous rank when exposed by the public response. |
| `ranking_date` | string or null | Date of the ranking in YYYYMMDD format, fixed across pages. |
| `ranking_mode` | string or null | Ranking mode when exposed by the public response. |
| `ranking_content` | string or null | Ranking content when exposed by the public response. |
| `view_count` | integer or null | View count supplied by the source; absent values remain null. |
| `rating_count` | integer or null | The rating\_count value supplied by the ranking response; not a derived score or a total-like claim. |

Nested arrays and media references stay in their parent record. Downloading source media files is not part of this Actor.

Every top-level output field appears in these complete examples. The success example is normalized from a public response. Long strings and arrays are shortened here; the Actor keeps the complete available values. Values are a snapshot and can change. Nested arrays remain inside their parent result.

Representative success result with every output field (long text and arrays shortened for readability):

```json
{
  "status": "success",
  "input": "daily",
  "id": "149440738",
  "url": "https://www.pixiv.net/en/artworks/149440738",
  "title": "髪下ろし志摩リンちゃん",
  "description": null,
  "type": "illustration",
  "type_code": 0,
  "author_id": "11211325",
  "author_name": "CORE",
  "author_url": "https://www.pixiv.net/en/users/11211325",
  "author_avatar_url": "https://i.pximg.net/user-profile/img/2014/06/08/21/12/00/7969430_f567285b2bfdd405bb0691d73e8624c0_50.jpg",
  "thumbnail_url": "https://i.pximg.net/c/480x960/img-master/img/2026/09/09/00/02/05/149440738_p0_master1200.jpg",
  "width": 991,
  "height": 1352,
  "image_count": 1,
  "tags": [
    "ゆるキャン△",
    "志摩リン",
    "女の子"
  ],
  "created_at": "2026-09-08T15:02:05+00:00",
  "updated_at": null,
  "ai_type": null,
  "is_original": false,
  "is_masked": false,
  "restriction": null,
  "age_restriction": null,
  "rank": 1,
  "previous_rank": 5,
  "ranking_date": "20260910",
  "ranking_mode": "daily",
  "ranking_content": "illust",
  "view_count": 5742,
  "rating_count": 335
}
```

Complete failed result:

```json
{
  "status": "failed",
  "input": "invalid input",
  "id": null,
  "url": null,
  "title": null,
  "description": null,
  "type": null,
  "type_code": null,
  "author_id": null,
  "author_name": null,
  "author_url": null,
  "author_avatar_url": null,
  "thumbnail_url": null,
  "width": null,
  "height": null,
  "image_count": null,
  "tags": null,
  "created_at": null,
  "updated_at": null,
  "ai_type": null,
  "is_original": null,
  "is_masked": null,
  "restriction": null,
  "age_restriction": null,
  "rank": null,
  "previous_rank": null,
  "ranking_date": null,
  "ranking_mode": null,
  "ranking_content": null,
  "view_count": null,
  "rating_count": null
}
```

A failed row preserves `input`, sets `status` to `failed`, and sets every other top-level field to `null`. The run log records the reason. Optional successful fields can be null or empty when Pixiv does not supply them. Object fields are exposed through useful columns in the single **Artworks** view; arrays are not expanded into extra result rows.

### Input requirements and pagination settings ⚙️

| Parameter | Type | Required | Default | Rules |
|---|---|---|---|---|
| `inputList` | array of strings | Yes | None | Use daily for the latest daily illustration ranking, YYYYMMDD, or a daily illustration ranking URL. At least `1` item. |
| `pagesPerRanking` | integer | No | `1` | Maximum result pages per input. Setup requests do not count as pages. Stops when the source has no next page or repeats a continuation. Actual rows per page can vary. Minimum `1`. |

Use daily for the latest daily illustration ranking, YYYYMMDD, or a daily illustration ranking URL.

Examples of supported inputs: `daily`.

Duplicate normalized inputs are processed once. Within the collection for one source input, repeated records are removed while distinct interactions or objects remain separate. The same object returned for different source inputs retains its source relationship.

The first result page counts as page 1. Public-page preparation and metadata lookups do not consume result pages. Collection stops at your page budget or the end of the available list. A short page alone does not mean that the list has ended.

### Pixiv artworks use cases 🎯

#### Collect the current Pixiv illustration ranking

Export Pixiv's daily illustration ranking with current and previous ranks, dates, tags and creators. Keep each ranked artwork in one source-linked row.

#### Review a dated Pixiv illustration ranking

Collect a specified day's Pixiv illustration ranking. Compare current and previous rank fields in your own analysis of the source's dated ranking records.

#### Compare two dates of Pixiv illustration rankings

Export Pixiv daily illustration rankings for two dates. Keep ranking dates and artwork identifiers to compare the returned lists in your own analysis.

### Pricing and saved-result behavior 💰

Check the Actor’s **Pricing** tab for the active pricing model and current rate. Store settings can change, so this README does not claim a fixed price or runtime.

Under dataset-item pricing:

- Each successful result represents one artwork for its source input.
- An invalid or unavailable input, an input with no accessible results, or an exhausted request can produce a `failed` row.
- Retry attempts and supporting requests do not create extra dataset rows by themselves.
- Nested media, profile information and other arrays remain part of their parent row.
- A normal empty continuation after earlier successes creates no additional row.
- Saved failed rows are not assumed to be free; check their treatment in the active pricing configuration.

More inputs and larger page budgets can produce more saved rows. Start with a small run and check actual usage before increasing the workload.

### Pixiv artworks API 🔌

Replace `$ACTOR_ID` with the identifier shown in this Actor’s **API** tab and `$APIFY_TOKEN` with your Apify token.

```bash
curl -X POST "https://api.apify.com/v2/acts/$ACTOR_ID/runs?token=$APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"inputList":["daily"],"pagesPerRanking":1}'
```

Download the dataset in JSON, CSV, Excel or other formats available in the Console, or retrieve it through the Apify API. Use schedules, webhooks and Apify integrations to connect results to Google Sheets, Make, Zapier, cloud storage or your own application. These connections are configured separately by the user.

### Reliability, retries, and public-data limits ⚠️

Collection uses pure HTTP with up to five concurrent requests. Invalid syntax and confirmed missing, removed or unavailable targets stop without unnecessary retries. Temporary network or proxy failures, timeouts, blocking responses, malformed data, throttling and server errors allow up to five total attempts per request.

Successful earlier pages remain saved if a later request fails. A normal end after saved results is not retried. An input with no accessible results can receive a failed row; that alone does not prove that its underlying source does not exist. An exhausted later request can add a failed row while preserving previous output.

Only daily illustration rankings are supported. All pages use the same date returned by the first response. rating\_count retains the website field meaning and is not labelled total likes or a calculated score. Rankings can omit or mask items.

Pixiv controls public availability, ranking and optional fields. Result counts can be affected by duplicates, removed content and changes during a run. A page budget is a collection limit, not a promise of exhaustive coverage.

An invalid string within a valid input list does not stop other inputs. Invalid overall configuration, such as a non-string list item or a wrong page-count type, exits before source requests. Startup failures, unavailable dataset storage or an unrecoverable result-save error can still stop the whole run. A failed save is not retried as a new scraping request.

### Frequently asked questions ❓

#### What does one Pixiv Ranking Scraper result represent?

Each successful row represents one artwork. The source input is retained, and nested fields stay in the same row.

#### Which source limits apply?

Only daily illustration rankings are supported. All pages use the same date returned by the first response. rating\_count retains the website field meaning and is not labelled total likes or a calculated score. Rankings can omit or mask items.

#### Does it download media files?

No. Where available, the Actor returns media URLs and metadata within the result row.

#### Does it require a Pixiv account or personal cookies?

No. You do not need to provide a Pixiv account, password or personal session cookie. Collection uses HTTP without opening a browser.

#### What happens to invalid or unavailable inputs?

Invalid individual inputs are recorded as failed without a source request. Confirmed missing or unavailable targets stop without unnecessary retries. Temporary failures allow up to five total attempts per request; other inputs and earlier saved results remain available.

#### Can I export results or run the same input again?

Yes. Export the default dataset or retrieve it through the Apify API. You can create an Apify schedule and connect completed runs to your own workflow.

### Support, responsible use, and related actors 🛟

For a reproducible issue, use the Actor’s **Issues** tab and provide the run ID, approximate time, a safe public input, expected behavior and actual result. Include the mode or page budget when relevant. Never share access tokens, personal cookies or proxy credentials.

Use public data responsibly and follow applicable privacy, copyright, contractual and platform requirements before storing, analyzing or redistributing collected information.

# Actor input Schema

## `inputList` (type: `array`):

Use daily for the latest daily illustration ranking, YYYYMMDD, or a daily illustration ranking URL.

## `pagesPerRanking` (type: `integer`):

Maximum result pages per input. Setup requests do not count as pages. Stops when the source has no next page or repeats a continuation. Actual rows per page can vary.

## Actor input object example

```json
{
  "inputList": [
    "daily"
  ],
  "pagesPerRanking": 1
}
```

# Actor output Schema

## `artworks` (type: `string`):

One artwork per dataset row. Check success or failed status.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "inputList": [
        "daily"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("scrapingmonkey/pixiv-ranking-scraper").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = { "inputList": ["daily"] }

# Run the Actor and wait for it to finish
run = client.actor("scrapingmonkey/pixiv-ranking-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "inputList": [
    "daily"
  ]
}' |
apify call scrapingmonkey/pixiv-ranking-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,scrapingmonkey/pixiv-ranking-scraper"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/kxLO6116E8HBiJ2z0/builds/e2RSww9PuolbwhJkM/openapi.json
