Question: who wrote the line a thing of beauty is a joy for ever
Answer: Endymion is a poem by John Keats first published in 1818 .