The Apartment (Brooklyn Nine-Nine)  "The Apartment" is the eighteenth episode of the first season of the American television police sitcom series "Brooklyn Nine-Nine". It is the 18th overall episode of the series and is written by David Quandt and directed by Tucker Gates. It aired on Fox in the United States on February 25, 2014. The show revolves around the fictitious 99th precinct of the New York Police Department in Brooklyn and the officers and detectives that work in the precinct. Jake Peralta (Andy Samberg) is an immature yet very talented detective in the precinct with an astounding record of crimes solved, putting him in a competition with fellow detective Amy Santiago (Melissa Fumero). The precinct's status changes when the Captain is retiring and a new commanding officer, Cpt. Raymond Holt (Andre Braugher) is appointed as the newest Captain. This creates a conflict between Peralta and Holt over their respective methods in the field. In the episode, Peralta is notified that his apartment is going through new rules and must pay additional money if he wants to keep it. Meanwhile, Holt conducts interrogatories for each detective. The episode was seen by an estimated 2.66 million household viewers and gained a 1.3/3 ratings share among adults aged 18–49, according to Nielsen Media Research. The episode received mostly positive reviews from critics, who praised Andy Samberg's performance and the writing. Jake Peralta (Andy Samberg) learns that his grandmother's apartment where he has been living is going co-op, and he will have to pay nearly a half million dollars to keep living there. He goes to a loan shark for a down payment, before Gina Linetti (Chelsea Peretti) convinces him to search for a new apartment instead. Raymond Holt (Andre Braugher) starts collecting self-evaluations from the detectives, leading to much stress within the department, especially for Amy Santiago (Melissa Fumero). Charles Boyle (Joe Lo Truglio) and Rosa Diaz (Stephanie Beatriz) take revenge on unhygienic co-worker Lohank (Matt Walsh) who uses Rosa's desk on a different shift, until feeling sympathy for him after he tells them details about his personal life. In its original American broadcast, "The Apartment" was seen by an estimated 2.66 million household viewers and gained a 1.3/3 ratings share among adults aged 18–49, according to Nielsen Media Research.