The slice .results[0:2] extracts the first two elements of the results array, mirroring Python's half-open slicing. map(.title) then pulls the title field from each, producing a two-element array of strings. API responses with a results wrapper are the classic use case. Use -r to print the titles as plain lines instead of JSON.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.