Promptbase Trending Prompts Scraper avatar

Promptbase Trending Prompts Scraper

Pricing

from $1.00 / 1,000 results

Go to Apify Store
Promptbase Trending Prompts Scraper

Promptbase Trending Prompts Scraper

Scrape the top trending prompts from PromptBase — titles, prices, engines, scores, sales, ratings, tags & images. Export as JSON/CSV in seconds.

Pricing

from $1.00 / 1,000 results

Rating

0.0

(0)

Developer

Gim Scraper

Gim Scraper

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

4 days ago

Last modified

Categories

Share

PromptBase Trending Prompts Scraper (Apify Actor)

An Actor that fetches the top N items (1 to 10) from the Trending Prompts list on PromptBase via direct scraping (no official API), and saves the results to the Actor's Dataset on the Apify platform.

Input

Defined by INPUT_SCHEMA.json:

{
"numTrend": 5
}
FieldTypeDescriptionConstraints
numTrendintegerNumber of trending items to fetch1 to 10, default 5

Output

Each record pushed to the Dataset matches dataset_schema.json and contains the following fields (most may be null if not provided by the site):

title, slug, username, price, type, engine, domain, score, scoreDaily, scoreWeekly, scoreMonthly, hotness, hovers, views, sales, favorites, rating, cvr, featured, staffPick, nsfw, flagged, tags, image, created, updated

Example record:

{
"title": "Cinematic Portrait Photography",
"slug": "cinematic-portrait-photography",
"username": "someuser",
"price": 3.99,
"type": "image",
"engine": "Midjourney",
"domain": "photography",
"score": 98.5,
"tags": ["portrait", "cinematic"],
"image": "https://...",
"created": "2026-01-01T00:00:00Z",
"updated": "2026-06-01T00:00:00Z"
}

Running locally

pip install -r requirements.txt
python scraper.py # quick standalone test of the function

Running as an Apify Actor

  1. Place the files (main.py, scraper.py, requirements.txt, INPUT_SCHEMA.json, dataset_schema.json, actor.json) inside your Actor's folder on Apify (or use the Apify CLI: apify init).
  2. Move actor.json to .actor/actor.json, INPUT_SCHEMA.json to .actor/input_schema.json, and dataset_schema.json to .actor/dataset_schema.json following Apify's project structure (adjust the paths inside actor.json accordingly).
  3. Make sure apify is listed in requirements.txt (already included).
  4. Push (apify push) or run locally:
$apify run

Results will appear under the Dataset tab of the Actor run.

Caveats

  • The code depends on the stability of PromptBase's page structure (id="ng-state"); any change on the site's side may break the scraper.
  • For heavy production use, consider adding retry/backoff logic for network errors, and make sure to respect the target site's terms of service.