Camera (3, 103, 203) for a vehicle, which is configured: to be mounted at least partially inside an A-pillar (7, 107, 207) of the vehicle, and to record image data of an area in front of the vehicle, the camera having a housing (12, 112) and a lens (13, 113), characterized in that the camera (3, 103, 203) is configured to be arranged in the A-pillar (7, 107, 207) in such a way that a space (24, 124, 224) occupied by the camera (3, 103, 203) inside the A-pillar (7, 107, 207) has a smaller maximum dimension (A1, A3, A5) in parallel to a line of sight (14, 114, 228) of the camera (3, 103, 203) than its maximum dimension (A2, A4, A6) is in parallel to a longitudinal direction of the A-pillar (7, 107, 207), the camera (3, 103, 203) having: - a first circuit board, which is arranged in the housing (12, 112), - an image sensor, which is arranged on the first circuit board, wherein the main extension plane of the first circuit board is arranged perpendicular to an optical axis (14, 114) of the lens and the image sensor is located in the beam path of the lens (13, 113), and - a second circuit board, which is arranged in the housing (12, 112) and is electrically connected to the first circuit board, wherein the second circuit board is arranged behind the first circuit board with respect to the image sensor and offset upward in relation to the first circuit board relative to the optical axis (14, 114) of the lens (13, 113). to be mounted at least partially inside an A-pillar (7, 107, 207) of the vehicle, and to record image data of an area in front of the vehicle, the camera having a housing (12, 112) and a lens (13, 113), characterized in that the camera (3, 103, 203) is configured to be arranged in the A-pillar (7, 107, 207) in such a way that a space (24, 124, 224) occupied by the camera (3, 103, 203) inside the A-pillar (7, 107, 207) has a smaller maximum dimension (A1, A3, A5) in parallel to a line of sight (14, 114, 228) of the camera (3, 103, 203) than its maximum dimension (A2, A4, A6) is in parallel to a longitudinal direction of the A-pillar (7, 107, 207), the camera (3, 103, 203) having: - a first circuit board, which is arranged in the housing (12, 112), - an image sensor, which is arranged on the first circuit board, wherein the main extension plane of the first circuit board is arranged perpendicular to an optical axis (14, 114) of the lens and the image sensor is located in the beam path of the lens (13, 113), and - a second circuit board, which is arranged in the housing (12, 112) and is electrically connected to the first circuit board, wherein the second circuit board is arranged behind the first circuit board with respect to the image sensor and offset upward in relation to the first circuit board relative to the optical axis (14, 114) of the lens (13, 113). - a first circuit board, which is arranged in the housing (12, 112), - an image sensor, which is arranged on the first circuit board, wherein the main extension plane of the first circuit board is arranged perpendicular to an optical axis (14, 114) of the lens and the image sensor is located in the beam path of the lens (13, 113), and - a second circuit board, which is arranged in the housing (12, 112) and is electrically connected to the first circuit board, wherein the second circuit board is arranged behind the first circuit board with respect to the image sensor and offset upward in relation to the first circuit board relative to the optical axis (14, 114) of the lens (13, 113).