# Ron Swanson Quotes

> Get random quotes from Ron Swanson of Parks and Recreation, or find the ones that mention a word, from the open-source Ron Swanson Quotes API. Good for a daily quote in a team channel. No account or API key required.

App · 2 actions. Web page: https://docs.lodol.com/docs/integrations/ron-swanson-quotes

## Actions

### Get random quotes

Get one or more random quotes from Ron Swanson of Parks and Recreation, all different, such as 'Never half-ass two things. Whole-ass one thing.' Good for a daily quote in a team channel. No API key required.

**Inputs**

- Number of quotes (`count`, number): How many different quotes to get, 1 to 100. Defaults to 1. From 1 to 100. Default: `1`.

**Outputs**

- `count` (number): How many quotes came back. Usually the number asked for; fewer only when more were asked for than the API holds.
- `quote` (text): The first quote picked, for the usual case of wanting just one.
- `quotes` (list): Every quote picked, all different, in random order.

**Example output**

```json
{
  "count": 2,
  "quote": "Never half-ass two things. Whole-ass one thing.",
  "quotes": [
    "Never half-ass two things. Whole-ass one thing.",
    "Honor: if you need it defined, you don't have it."
  ]
}
```

### Search quotes

Find every Ron Swanson quote that contains a word or phrase, ignoring case, such as 'bacon' or 'government'. Nothing matching comes back with 'found' set to false rather than failing the step. No API key required.

**Inputs**

- Search for (`term`, text, required): The word or phrase the quote must contain. Case does not matter, and it is matched exactly as typed.

**Outputs**

- `count` (number): How many quotes contain the text.
- `first_quote` (text): The first matching quote, or empty when none matched.
- `found` (true/false): True when at least one quote contains the text.
- `quotes` (list): Every quote that contains the text, ignoring case.
- `term` (text): The text that was searched for, tidied up.

**Example output**

```json
{
  "count": 1,
  "first_quote": "Just give me all the bacon and eggs you have. Wait...wait. I worry what you just heard was: Give me a lot of bacon and eggs. What I said was: Give me all the bacon and eggs you have. Do you understand?",
  "found": true,
  "quotes": [
    "Just give me all the bacon and eggs you have. Wait...wait. I worry what you just heard was: Give me a lot of bacon and eggs. What I said was: Give me all the bacon and eggs you have. Do you understand?"
  ],
  "term": "bacon"
}
```
