# Replicate Search Scraper (`yourapiservice/replicate-search-scraper`) Actor

Search Replicate's models and collections easily!

- **URL**: https://apify.com/yourapiservice/replicate-search-scraper.md
- **Developed by:** [Your API Service](https://apify.com/yourapiservice) (community)
- **Categories:** Developer tools, Automation, AI
- **Stats:** 2 total users, 2 monthly users, 100.0% runs succeeded, 1 bookmarks
- **User rating**: No ratings yet

## Pricing

$7.00/month + usage

To use this Actor, you pay a monthly rental fee to the developer. The rent is subtracted from your prepaid usage every month after the free trial period. You also pay for the Apify platform usage, which gets cheaper the higher Apify subscription plan you have.

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

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

### What does Replicate Search Scraper do?

The Replicate Search Scraper allows you to scrape search results from Replicate.com based on a specified search query and entity types. It scrapes the data and provides it in structured formats such as JSON, which you can use in your own reports, spreadsheets, and applications. Replicate Search Scraper allows you to scrape:

- Search results from Replicate.com.
- Detailed information about each result, including title, description, categories, and more.

### Why use Replicate Search Scraper?

Replicate Search Scraper simplifies the process of obtaining search results from Replicate.com by automating the scraping tasks. Instead of manually searching and extracting data, this tool handles it for you, saving time and ensuring you get exactly what you need.

### How to use Replicate Search Scraper

- Specify the search query you want to scrape.
- Customize the results with entity type filters.
- The scraper will generate the results according to your specifications and provide you with the data.

### Input parameters

If this actor is run on the Apify platform, our simple interface will help you configure all the necessary and optional parameters of this scraper before running it. This scraper recognizes the following input parameters:

- **searchQuery** - The search term to scrape.
- **entityTypes** - List of entity types to scrape. If empty, all entity types will be scraped.

Example:

```json
{
    "searchQuery": "recraft-20b",
    "entityTypes": [
        "models",
        "collections"
    ]
}
```

### Output

The output from Replicate Search Scraper is stored in a dataset. Each item contains information about a search result. Here's an example of some of the output you would get if you used the input parameters above to scrape the search query "recraft-20b":

```json
{
    "models": [
        {
            "description": "Affordable and fast images",
            "name": "recraft-20b",
            "owner_avatar": {
                "kind": "organization",
                "url": "https://github.com/recraft-ai.png"
            },
            "username": "recraft-ai",
            "run_count": "21.6K",
            "latest_enabled_version_id": "4441c81fea73ada6fcba2efef13b37b567894c18666120a534d0f34a96a40ee1",
            "hardware": "cpu",
            "is_official_model": true
        },
        {
            "description": "Recraft V3 (code-named red_panda) is a text-to-image model with the ability to generate long texts, and images in a wide list of styles. As of today, it is SOTA in image generation, proven by the Text-to-Image Benchmark by Artificial Analysis",
            "name": "recraft-v3",
            "owner_avatar": {
                "kind": "organization",
                "url": "https://github.com/recraft-ai.png"
            },
            "username": "recraft-ai",
            "run_count": "503.9K",
            "latest_enabled_version_id": "e06217725b21e2c059a09b3f44b4aef56574173aee9976c9726bdc0f474d7f46",
            "hardware": "cpu",
            "is_official_model": true
        },
        {
            "description": "Affordable and fast vector images",
            "name": "recraft-20b-svg",
            "owner_avatar": {
                "kind": "organization",
                "url": "https://github.com/recraft-ai.png"
            },
            "username": "recraft-ai",
            "run_count": "1.1K",
            "latest_enabled_version_id": "110b949db40d2d140280a4484c8c70eca855128ad04c06a8a8a680701121110e",
            "hardware": "cpu",
            "is_official_model": true
        }...
    ]
}
```

### How much will scraping Replicate.com cost you?

When it comes to scraping, it can be challenging to estimate the resources needed to extract data as use cases may vary significantly. That's why the best course of action is to run a test scrape with a small sample of input data and limited output. You’ll get your price per scrape, which you’ll then multiply by the number of scrapes you intend to do.

### Integrations and Replicate Search Scraper

Last but not least, Replicate Search Scraper can be connected with almost any cloud service or web app thanks to integrations on the Apify platform. You can integrate with Make, Zapier, Slack, Airbyte, GitHub, Google Sheets, Google Drive, and more. Or you can use webhooks to carry out an action whenever an event occurs, e.g., get a notification whenever Replicate Search Scraper successfully finishes a run.

### Using Replicate Search Scraper with the Apify API

The Apify API gives you programmatic access to the Apify platform. The API is organized around RESTful HTTP endpoints that enable you to manage, schedule, and run Apify actors. The API also lets you access any datasets, monitor actor performance, fetch results, create and update versions, and more.

To access the API using Node.js, use the apify-client NPM package. To access the API using Python, use the apify-client PyPI package.

Check out the Apify API reference docs for full details or click on the API tab for code examples.

### Personal data

You should be aware that your results might contain personal data. Personal data is protected by GDPR in the European Union and other laws and regulations around the world. You should not scrape personal data unless you have a legitimate reason to do so. If you're unsure whether your reason is legitimate, consult your lawyers. You can read the basics of ethical web scraping in our blog post on the legality of web scraping.

#### Legal Considerations

Please note that this scraper is not associated with Replicate and is not intended for unauthorized use. Please read Replicate's Terms of Service before scraping their website. Make sure you are not violating their Terms of Service. The data scraped is for educational and research purposes only.

### Your feedback

We’re always working on improving the performance of our Actors. So if you’ve got any technical feedback for Replicate Search Scraper or simply found a bug, please create an issue on the Actor’s Issues tab in Apify Console.

# Actor input Schema

## `searchQuery` (type: `string`):

Search term to scrape

## `entityTypes` (type: `array`):

List of entity types to scrape. If empty, all entity types will be scraped.

## Actor input object example

```json
{
  "searchQuery": "recraft-20b",
  "entityTypes": [
    "models"
  ]
}
```

# 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 = {
    "entityTypes": [
        "models"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("yourapiservice/replicate-search-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 = { "entityTypes": ["models"] }

# Run the Actor and wait for it to finish
run = client.actor("yourapiservice/replicate-search-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 '{
  "entityTypes": [
    "models"
  ]
}' |
apify call yourapiservice/replicate-search-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,yourapiservice/replicate-search-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/NzIwxojrIqeWnwk99/builds/fDu4VjRTkCcHEgpUj/openapi.json
