{
  "openapi": "3.0.1",
  "info": {
    "title": "RescueGroups.org Adoptable Pet Finder by ZIP",
    "description": "Search RescueGroups.org adoptable dogs, cats, rabbits and more with Petfinder-style filters (species, breed, sex, age, size, ZIP + radius), fetch animals by ID, or browse rescue organizations and their contact details.",
    "version": "1.0",
    "x-build-id": "Bm2HW4YnM5nDD2nF9"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/vexaloom-labs~rescuegroups-org-adoptable-pet-finder-by-zip/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-vexaloom-labs-rescuegroups-org-adoptable-pet-finder-by-zip",
        "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/vexaloom-labs~rescuegroups-org-adoptable-pet-finder-by-zip/runs": {
      "post": {
        "operationId": "runs-sync-vexaloom-labs-rescuegroups-org-adoptable-pet-finder-by-zip",
        "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/vexaloom-labs~rescuegroups-org-adoptable-pet-finder-by-zip/run-sync": {
      "post": {
        "operationId": "run-sync-vexaloom-labs-rescuegroups-org-adoptable-pet-finder-by-zip",
        "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",
              "byAnimalIds",
              "orgSearch"
            ],
            "type": "string",
            "description": "What to fetch: a pet search, specific animals by ID, or rescue organizations.",
            "default": "search"
          },
          "apiKey": {
            "title": "API key (optional)",
            "type": "string",
            "description": "Optional free public RescueGroups.org API key. Leave empty to use the cookieless public pet-search pages. A key adds API-only fields (adoption fee, energy level, exact birth date, and more) and organization name search."
          },
          "species": {
            "title": "Species",
            "enum": [
              "",
              "Alpaca",
              "Bird",
              "Cat",
              "Chicken",
              "Chinchilla",
              "Cow",
              "Degu",
              "Dog",
              "Donkey",
              "Duck",
              "Ferret",
              "Fish",
              "Frog",
              "Gecko",
              "Gerbil",
              "Goat",
              "Goose",
              "Groundhog",
              "Guinea Pig",
              "Hamster",
              "Hedgehog",
              "Hermit Crab",
              "Horse",
              "Iguana",
              "Lizard",
              "Llama",
              "Mouse",
              "Otter",
              "Pig",
              "Pony",
              "Prairie Dog",
              "Rabbit",
              "Rat",
              "Sheep",
              "Skunk",
              "Snake",
              "Sugar Glider",
              "Tarantula",
              "Tortoise",
              "Turkey",
              "Turtle"
            ],
            "type": "string",
            "description": "Species filter (mode=search). Pick (any species) to search every species.",
            "default": "Dog"
          },
          "breed": {
            "title": "Breed",
            "type": "string",
            "description": "Breed name filter (mode=search), e.g. `Labrador Retriever`. The cookieless source matches any breed in the animal's breed string (primary or secondary); with an optional API key the primary breed is matched exactly."
          },
          "sex": {
            "title": "Sex",
            "enum": [
              "",
              "Male",
              "Female"
            ],
            "type": "string",
            "description": "Sex filter (mode=search).",
            "default": ""
          },
          "ageGroup": {
            "title": "Age group",
            "enum": [
              "",
              "Baby",
              "Young",
              "Adult",
              "Senior"
            ],
            "type": "string",
            "description": "General age filter (mode=search).",
            "default": ""
          },
          "sizeGroup": {
            "title": "Size",
            "enum": [
              "",
              "Small",
              "Medium",
              "Large",
              "X-Large"
            ],
            "type": "string",
            "description": "Size filter (mode=search).",
            "default": ""
          },
          "specialNeedsOnly": {
            "title": "Special needs only",
            "type": "boolean",
            "description": "Only animals flagged as having special needs.",
            "default": false
          },
          "goodWithDogsOnly": {
            "title": "Good with dogs only",
            "type": "boolean",
            "description": "Only animals flagged as good with dogs.",
            "default": false
          },
          "goodWithCatsOnly": {
            "title": "Good with cats only",
            "type": "boolean",
            "description": "Only animals flagged as good with cats.",
            "default": false
          },
          "goodWithKidsOnly": {
            "title": "Good with kids only",
            "type": "boolean",
            "description": "Only animals flagged as good with kids.",
            "default": false
          },
          "needsFosterOnly": {
            "title": "Needs foster only",
            "type": "boolean",
            "description": "Only animals currently looking for a foster home.",
            "default": false
          },
          "housetrainedOnly": {
            "title": "House-trained only",
            "type": "boolean",
            "description": "Only animals flagged as house-trained.",
            "default": false
          },
          "declawedOnly": {
            "title": "Declawed only",
            "type": "boolean",
            "description": "Only animals flagged as declawed.",
            "default": false
          },
          "postalCode": {
            "title": "ZIP / postal code",
            "type": "string",
            "description": "Center point for a radius search (mode=search). Leave empty to search everywhere."
          },
          "radiusMiles": {
            "title": "Radius (miles)",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "Search radius around the postal code (mode=search). The source supports 25, 50, 100 and 200 miles; requests under 25 use 25, values between buckets round down, and requests above 200 use 200.",
            "default": 50
          },
          "includeDetails": {
            "title": "Fetch full animal details",
            "type": "boolean",
            "description": "Open each animal's public detail page for shelter contact, description, photos and temperament flags. Turn off for a faster, lighter listing-only run. The optional API path always returns full details.",
            "default": true
          },
          "animalIds": {
            "title": "Animal IDs (mode=byAnimalIds)",
            "type": "array",
            "description": "RescueGroups animal IDs or animal page URLs, e.g. `22514067`.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "organizationIds": {
            "title": "Organization IDs (mode=orgSearch)",
            "type": "array",
            "description": "RescueGroups organization IDs, e.g. `6260` (the number in a pet photo URL).",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "orgQuery": {
            "title": "Organization name or ID (mode=orgSearch)",
            "type": "string",
            "description": "Optional organization name filter. Name search needs the optional `apiKey`; a numeric ID or organization-page URL works without one (legacy `orgQuery` inputs are supported).",
            "default": ""
          },
          "maxItems": {
            "title": "Max items",
            "minimum": 1,
            "maximum": 2000,
            "type": "integer",
            "description": "Hard cap on emitted records.",
            "default": 50
          }
        }
      },
      "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
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "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
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}