# Searches jokes **GET /joke** By passing in the appropriate options, you can search for available jokes ## Servers ## Parameters ### Query parameters - **searchString** (string) pass an optional search string for looking up inventory - **numberofJokes** (integer(int32)) number of jokes to return - **category** (string) category of jokes to return - **sortBy** (string) Allowed: thumbsUp, thumbsDown, dateAdded. - **sortOrder** (string) Allowed: asc, desc. asc is ascending and sorts from A to Z. desc is descending and sorts from Z to A. ## Responses ### 200 search results matching criteria #### Body: (array[object]) - **id** (string) The id of the Joke. Assigned when added. - **joke** (string) The lead-in to the joke. - **punchline** (string) This bit should make you laugh :). - **category** (string) the category of the joke. - **thumbsUp** (integer) Count of upvotes for the joke. - **thumbsDown** (integer) Count of down votes for the joke. - **dateAdded** (string(date-time)) ### 400 bad input parameter [Powered by Bump.sh](https://bump.sh)