curl --request GET \
--url https://{organization}.rescueconsole.com/api/animals/animals/export \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://{organization}.rescueconsole.com/api/animals/animals/export', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://{organization}.rescueconsole.com/api/animals/animals/export"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)"pet_id,name,species,status\r\nA00042,Pip,small_mammal,available_for_adoption\r\nA00043,Juniper,cat,adoption_pending"{
"error": "house_trained must be 1, 0 or null (not assessed)"
}{
"error": "house_trained must be 1, 0 or null (not assessed)"
}{
"error": "house_trained must be 1, 0 or null (not assessed)"
}Export animals as CSV
Your animals as a CSV file, chosen by the same filters as the list. At most 5,000 rows, newest intake first, with no paging: narrow the filters to reach the rest. The first line names the columns. is_public reads yes or no, and the fee is in cents. Needs read on Animals.
curl --request GET \
--url https://{organization}.rescueconsole.com/api/animals/animals/export \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://{organization}.rescueconsole.com/api/animals/animals/export', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://{organization}.rescueconsole.com/api/animals/animals/export"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)"pet_id,name,species,status\r\nA00042,Pip,small_mammal,available_for_adoption\r\nA00043,Juniper,cat,adoption_pending"{
"error": "house_trained must be 1, 0 or null (not assessed)"
}{
"error": "house_trained must be 1, 0 or null (not assessed)"
}{
"error": "house_trained must be 1, 0 or null (not assessed)"
}Authorizations
An API key from Settings, API keys. It starts with rc_live_.
Query Parameters
The columns, comma separated, in the order you want them. Without it, every column: id, pet_id, name, species, breed, sex, dob_estimate, status, health_status, altered, microchip_number, intake_date, outcome_date, adoption_fee_cents, is_public, description, created_at, updated_at. A name not on that list is skipped.
"pet_id,name,species,status"
One or more of your own status keys, comma separated.
"available_for_adoption,adoption_pending"
Every status of one kind: in your care, placed, or out of your care.
in_care, placed, out_of_care One or more species, comma separated. A common word for a species (Dogs, Kitten) finds the same animals as its key.
"dog,cat"
Animals housed at one location or unit.
Animals carrying this tag, exactly as written.
One of your age groups (baby, young, adult and senior unless you have changed them) or unknown for animals with no date of birth. When exactly one species is asked for, that species' own age groups are used.
Text found in the name, breed, microchip number or Pet ID.
Animals whose outcome names this person, such as their adopter.
Animals whose internal name contains this text.
Animals whose Pet ID contains this text.
Animals whose breed contains this text.
Sex, one or more, comma separated.
"male,female"
Spayed or neutered: yes, no or unknown, one or more, comma separated.
"yes,no"
Size (small, medium, large, extra_large), one or more, comma separated.
"small,medium"
Intake source (stray, transfer, owner_surrender, field, born_in_care, adoption_return, seized, other), one or more, comma separated.
"stray,transfer"
Animals whose health status contains this text.
Animals whose microchip number contains this text.
Animals whose description contains this text.
Whether the animal itself is marked public.
yes, no Intake date on or after this date.
Intake date on or before this date.
Outcome date on or after this date.
Outcome date on or before this date.
Date of birth on or after this date.
Date of birth on or before this date.
Created on or after this date. This one holds a time as well as a date, so a _to date stops before that day begins: send the next day to include it.
Created on or before this date. This one holds a time as well as a date, so a _to date stops before that day begins: send the next day to include it.
Last changed on or after this date. This one holds a time as well as a date, so a _to date stops before that day begins: send the next day to include it.
Last changed on or before this date. This one holds a time as well as a date, so a _to date stops before that day begins: send the next day to include it.
Adoption fee of at least this many cents.
Adoption fee of at most this many cents.
Send 1 to include deleted animals.
1 Response
The CSV file, named animals.csv.
The response is of type string.