# Petfinder Scraper (`crawlergang/petfinder-scraper`) Actor

Scrape Petfinder with search adoptable pets by type, breed, age, size and more. Extracts pet name, breed, age, gender, shelter, location, description, photos and contact info. No API keys required.

- **URL**: https://apify.com/crawlergang/petfinder-scraper.md
- **Developed by:** [Crawler Gang](https://apify.com/crawlergang) (community)
- **Categories:** Automation, Developer tools, Other
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 11 bookmarks
- **User rating**: 5.00 out of 5 stars

## Pricing

from $3.00 / 1,000 results

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

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

## What's an Apify Actor?

Actors are a software tools running on the Apify platform, for all kinds of web data extraction and automation use cases.
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.

In JavaScript/TypeScript projects, use official [JavaScript/TypeScript client](https://docs.apify.com/api/client/js.md):

```bash
npm install apify-client
```

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python.md):

```bash
pip install apify-client
```

In shell scripts, use [Apify CLI](https://docs.apify.com/cli/docs.md):

````bash
# MacOS / Linux
curl -fsSL https://apify.com/install-cli.sh | bash
# Windows
irm https://apify.com/install-cli.ps1 | iex
```bash

In AI frameworks, you might use the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp.md).

If your project is in a different language, use 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

## Petfinder Scraper

Search and extract adoptable pet listings from [Petfinder.com](https://www.petfinder.com/) — the largest pet adoption platform in North America with millions of animals available for adoption.

No API keys or credentials required. Works on the free Apify plan.

---

### What Does This Scraper Do?

This actor scrapes adoptable pet listings from Petfinder including:

- **Pet profile**: name, description, age, gender, size, color, coat length
- **Shelter details**: organization name, city, state, contact info
- **Location**: city, state, street address
- **Photos**: all available photos (S3 URLs)
- **Attributes**: house trained, special needs, declawed status
- **Filters**: search by type, breed, age, size, gender, organization

---

### Output Example

```json
{
  "petId": "53ad58ff-2541-490f-9dd4-e71acad75214",
  "description": "Hi, I'm Gatsby! I'm a one-year-old lab mix...",
  "distanceMiles": 0,
  "shelterName": "Pep's Pals Rescue",
  "shelterCity": "Brookeville",
  "shelterState": "MD",
  "city": "Austin",
  "state": "TX",
  "imageUrls": [
    "https://npus-pr-petfusbbc-pdp-media-service-public-use1-sss.s3.amazonaws.com/animal/53ad58ff/image/d854f9c9.jpeg"
  ],
  "primaryImageUrl": "https://npus-pr-petfusbbc-pdp-media-service-public-use1-sss.s3.amazonaws.com/animal/53ad58ff/image/d854f9c9.jpeg",
  "url": "https://www.petfinder.com/animal-detail/53ad58ff-2541-490f-9dd4-e71acad75214/",
  "scrapedAt": "2024-01-15T10:30:00+00:00"
}
````

***

### Input Parameters

| Parameter | Type | Description |
|-----------|------|-------------|
| `mode` | Select | **search** — search by query + filters; **byType** — browse by animal type; **byUrl** — scrape a Petfinder search URL |
| `searchQuery` | String | Pet name to search (e.g. "Max", "Bella") |
| `animalType` | Select | Dog, Cat, Rabbit, Small & Furry, Horse, Bird, Scales Fins & Other, Barnyard |
| `age` | Select | Baby, Young, Adult, Senior |
| `size` | Select | Small, Medium, Large, Extra Large |
| `gender` | Select | Male, Female |
| `breeds` | Array | Filter by breed names (e.g. \["Labrador Retriever"]) |
| `colors` | Array | Filter by coat colors (e.g. \["Black", "Brown/Chocolate"]) |
| `coatLength` | Select | Short, Medium, Long, Wire, Hairless, Curly |
| `houseTrained` | Boolean | Only show house-trained pets |
| `specialNeeds` | Boolean | Only show pets with special needs |
| `declawed` | Boolean | Only show declawed cats |
| `organizationId` | String | Filter to a specific shelter/rescue (UUID) |
| `startUrl` | String | Petfinder search URL to scrape (mode=byUrl) |
| `maxItems` | Integer | Max number of pets to return (1–1000, default 20) |

***

### Use Cases

- **Pet adoption research** — find available pets by type, breed, age and location
- **Shelter analytics** — track adoption listings across multiple shelters
- **Pet breed research** — find and analyze specific breeds available for adoption
- **Non-profit outreach** — build mailing lists or reports for animal rescue organizations
- **Data journalism** — analyze adoption rates, popular breeds, geographic distribution

***

### FAQ

**Does this require an API key?**
No. This scraper uses the public Petfinder GraphQL API that powers the website itself.

**How many pets can I scrape?**
Up to 1,000 per run. Petfinder has millions of listings available.

**Can I filter by location?**
Currently the API does not expose location-based filtering in the public endpoint — use `searchQuery` with a city name or filter by `organizationId` instead.

**Are photos included?**
Yes, when available. Photos are stored on Amazon S3 and the URLs are publicly accessible.

**How fresh is the data?**
Data is fetched in real-time from Petfinder's live API.

**What animal types are supported?**
Dog, Cat, Rabbit, Small & Furry, Horse, Bird, Scales/Fins/Other, Barnyard.

# Actor input Schema

## `mode` (type: `string`):

What to fetch.

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

Pet name to search for (mode=search). E.g. 'Max', 'Bella'.

## `animalType` (type: `string`):

Filter by animal type.

## `age` (type: `string`):

Filter by age group.

## `size` (type: `string`):

Filter by size.

## `gender` (type: `string`):

Filter by gender.

## `breeds` (type: `array`):

Filter by breed names (e.g. \['Labrador Retriever', 'Golden Retriever']).

## `colors` (type: `array`):

Filter by coat colors (e.g. \['Black', 'Brown/Chocolate']).

## `coatLength` (type: `string`):

Filter by coat length.

## `houseTrained` (type: `boolean`):

Only show house-trained pets.

## `specialNeeds` (type: `boolean`):

Only show pets with special needs.

## `declawed` (type: `boolean`):

Only show declawed cats.

## `organizationId` (type: `string`):

Filter to a specific shelter or rescue organization ID (UUID format).

## `startUrl` (type: `string`):

Full Petfinder search URL to scrape, e.g. https://www.petfinder.com/search/dogs-for-adoption/?location=10001

## `maxItems` (type: `integer`):

Maximum number of pets to emit.

## Actor input object example

```json
{
  "mode": "search",
  "searchQuery": "max",
  "animalType": "Dog",
  "age": "",
  "size": "",
  "gender": "",
  "breeds": [],
  "colors": [],
  "coatLength": "",
  "houseTrained": false,
  "specialNeeds": false,
  "declawed": false,
  "maxItems": 20
}
```

# Actor output Schema

## `pets` (type: `string`):

Dataset containing all scraped Petfinder pet listings.

# 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 = {
    "mode": "search",
    "searchQuery": "max",
    "animalType": "Dog",
    "age": "",
    "size": "",
    "gender": "",
    "breeds": [],
    "colors": [],
    "coatLength": "",
    "houseTrained": false,
    "specialNeeds": false,
    "declawed": false,
    "maxItems": 20
};

// Run the Actor and wait for it to finish
const run = await client.actor("crawlergang/petfinder-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 = {
    "mode": "search",
    "searchQuery": "max",
    "animalType": "Dog",
    "age": "",
    "size": "",
    "gender": "",
    "breeds": [],
    "colors": [],
    "coatLength": "",
    "houseTrained": False,
    "specialNeeds": False,
    "declawed": False,
    "maxItems": 20,
}

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

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

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

```

## CLI example

```bash
echo '{
  "mode": "search",
  "searchQuery": "max",
  "animalType": "Dog",
  "age": "",
  "size": "",
  "gender": "",
  "breeds": [],
  "colors": [],
  "coatLength": "",
  "houseTrained": false,
  "specialNeeds": false,
  "declawed": false,
  "maxItems": 20
}' |
apify call crawlergang/petfinder-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=crawlergang/petfinder-scraper",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Petfinder Scraper",
        "description": "Scrape Petfinder with search adoptable pets by type, breed, age, size and more. Extracts pet name, breed, age, gender, shelter, location, description, photos and contact info. No API keys required.",
        "version": "1.0",
        "x-build-id": "uIK17exofFYiySzQn"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/crawlergang~petfinder-scraper/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-crawlergang-petfinder-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        },
        "/acts/crawlergang~petfinder-scraper/runs": {
            "post": {
                "operationId": "runs-sync-crawlergang-petfinder-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor and returns information about the initiated run in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/runsResponseSchema"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/acts/crawlergang~petfinder-scraper/run-sync": {
            "post": {
                "operationId": "run-sync-crawlergang-petfinder-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "inputSchema": {
                "type": "object",
                "required": [
                    "mode"
                ],
                "properties": {
                    "mode": {
                        "title": "Mode",
                        "enum": [
                            "search",
                            "byType",
                            "byUrl"
                        ],
                        "type": "string",
                        "description": "What to fetch.",
                        "default": "search"
                    },
                    "searchQuery": {
                        "title": "Search query",
                        "type": "string",
                        "description": "Pet name to search for (mode=search). E.g. 'Max', 'Bella'.",
                        "default": "max"
                    },
                    "animalType": {
                        "title": "Animal type",
                        "enum": [
                            "Dog",
                            "Cat",
                            "Rabbit",
                            "Small & Furry",
                            "Horse",
                            "Bird",
                            "Scales, Fins & Other",
                            "Barnyard"
                        ],
                        "type": "string",
                        "description": "Filter by animal type.",
                        "default": "Dog"
                    },
                    "age": {
                        "title": "Age",
                        "enum": [
                            "",
                            "Baby",
                            "Young",
                            "Adult",
                            "Senior"
                        ],
                        "type": "string",
                        "description": "Filter by age group.",
                        "default": ""
                    },
                    "size": {
                        "title": "Size",
                        "enum": [
                            "",
                            "Small",
                            "Medium",
                            "Large",
                            "Extra Large"
                        ],
                        "type": "string",
                        "description": "Filter by size.",
                        "default": ""
                    },
                    "gender": {
                        "title": "Gender",
                        "enum": [
                            "",
                            "Male",
                            "Female"
                        ],
                        "type": "string",
                        "description": "Filter by gender.",
                        "default": ""
                    },
                    "breeds": {
                        "title": "Breeds",
                        "type": "array",
                        "description": "Filter by breed names (e.g. ['Labrador Retriever', 'Golden Retriever']).",
                        "default": [],
                        "items": {
                            "type": "string"
                        }
                    },
                    "colors": {
                        "title": "Colors",
                        "type": "array",
                        "description": "Filter by coat colors (e.g. ['Black', 'Brown/Chocolate']).",
                        "default": [],
                        "items": {
                            "type": "string"
                        }
                    },
                    "coatLength": {
                        "title": "Coat length",
                        "enum": [
                            "",
                            "Short",
                            "Medium",
                            "Long",
                            "Wire",
                            "Hairless",
                            "Curly"
                        ],
                        "type": "string",
                        "description": "Filter by coat length.",
                        "default": ""
                    },
                    "houseTrained": {
                        "title": "House trained only",
                        "type": "boolean",
                        "description": "Only show house-trained pets.",
                        "default": false
                    },
                    "specialNeeds": {
                        "title": "Special needs",
                        "type": "boolean",
                        "description": "Only show pets with special needs.",
                        "default": false
                    },
                    "declawed": {
                        "title": "Declawed (cats)",
                        "type": "boolean",
                        "description": "Only show declawed cats.",
                        "default": false
                    },
                    "organizationId": {
                        "title": "Organization / Shelter ID",
                        "type": "string",
                        "description": "Filter to a specific shelter or rescue organization ID (UUID format)."
                    },
                    "startUrl": {
                        "title": "Petfinder search URL (mode=byUrl)",
                        "type": "string",
                        "description": "Full Petfinder search URL to scrape, e.g. https://www.petfinder.com/search/dogs-for-adoption/?location=10001"
                    },
                    "maxItems": {
                        "title": "Max items",
                        "minimum": 1,
                        "maximum": 1000,
                        "type": "integer",
                        "description": "Maximum number of pets to emit.",
                        "default": 20
                    }
                }
            },
            "runsResponseSchema": {
                "type": "object",
                "properties": {
                    "data": {
                        "type": "object",
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "actId": {
                                "type": "string"
                            },
                            "userId": {
                                "type": "string"
                            },
                            "startedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "finishedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "status": {
                                "type": "string",
                                "example": "READY"
                            },
                            "meta": {
                                "type": "object",
                                "properties": {
                                    "origin": {
                                        "type": "string",
                                        "example": "API"
                                    },
                                    "userAgent": {
                                        "type": "string"
                                    }
                                }
                            },
                            "stats": {
                                "type": "object",
                                "properties": {
                                    "inputBodyLen": {
                                        "type": "integer",
                                        "example": 2000
                                    },
                                    "rebootCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "restartCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "resurrectCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "computeUnits": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "options": {
                                "type": "object",
                                "properties": {
                                    "build": {
                                        "type": "string",
                                        "example": "latest"
                                    },
                                    "timeoutSecs": {
                                        "type": "integer",
                                        "example": 300
                                    },
                                    "memoryMbytes": {
                                        "type": "integer",
                                        "example": 1024
                                    },
                                    "diskMbytes": {
                                        "type": "integer",
                                        "example": 2048
                                    }
                                }
                            },
                            "buildId": {
                                "type": "string"
                            },
                            "defaultKeyValueStoreId": {
                                "type": "string"
                            },
                            "defaultDatasetId": {
                                "type": "string"
                            },
                            "defaultRequestQueueId": {
                                "type": "string"
                            },
                            "buildNumber": {
                                "type": "string",
                                "example": "1.0.0"
                            },
                            "containerUrl": {
                                "type": "string"
                            },
                            "usage": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "integer",
                                        "example": 1
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "usageTotalUsd": {
                                "type": "number",
                                "example": 0.00005
                            },
                            "usageUsd": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "number",
                                        "example": 0.00005
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
