The main line between Edinburgh and Berwick-upon-Tweed was opened by the North British Railway on 22 June 1846, with Longniddry station and the branch line to Haddington opening on the same date. Longniddry's importance as a junction station increased in 1898 with the opening of the Gullane branch. There were originally three platforms, the Up platform with the main station building, and an island platform serving the Down main line and the Haddington branch, which diverged immediately to the east of the station and ran parallel to the main lines for some distance before curving off to the south on an embankment. The branch was originally built as double track, but was singled in 1856. Between the Down line and the Haddington branch east of the station were two long trailing sidings known as Blawearie Sidings which were used for storing rolling stock. On the south side of the branch was a two road engine shed and the Harelaw Lime Works siding. On the Up side, east of the station, was the goods yard containing a goods shed and three trailing sidings. At the west end of the station the branch platform line continued as a 160-yard siding on the Down side, whilst further west was a short trailing siding on the Up side, known as Longniddry West Siding. The latter was also known as 'Manure Siding' or 'the dung lye', as it was used to receive wagons loaded with horse dung collected from the streets of Edinburgh and sent to Longniddry for sale as agricultural fertiliser. Longniddry signal box was located at the east end of the Down platform. The junction of the Gullane branch was at Spittal, 1.5 miles to the east. Retrenchment during the Twentieth Century saw passenger services withdrawn from the Gullane and Haddington branch lines on 12 September 1932 and 5 December 1949 respectively. On 15 June 1964 the Gullane branch closed to all traffic, followed by closure of Longniddry goods yard on 28 December 1964 and the Haddington branch on 30 March 1968. The locomotive shed had closed in 1964, and following the demise of the Haddington branch the signal box was closed on 8 September 1968 and all sidings removed. The former goods yard site was redeveloped as the new station car park, while the waiting rooms and canopy on the Down platform were removed in the late 1960s and replaced with bus-stop type shelters. Closure of the North Berwick branch and of Drem, Longniddry and Prestonpans stations was proposed in 1969, but not approved by the Minister of Transport. Nonetheless, stopping passenger services were drastically reduced from 1970, and their future was again in doubt following the publication of the Serpell Report in 1982. However, the number of local trains had gradually recovered from the low of the 1970s and by the end of the 1980s the service was once again hourly. 'Pay train' operation began east of Edinburgh on 27 May 1985, at which point the station became unstaffed. The main station building and ticket office was demolished in 1986/87, at which time the platforms were extended to the east and cut back at the western ends, and the station footbridge was replaced. This work was a prelude to electrification of the East Coast Main Line by British Rail, with most North Berwick line trains being electrically powered from 8 July 1991. One minor landmark of which little is known save for its ingenuity and efficiency was a mailbag switch device still in use in the 1970s. It was located on the trackside some west of the station, and mailbags previously loaded on the device's arm could be captured at speed by a matching mechanism on passing southbound express trains which therefore did not need to stop.
Monday - Friday - Hourly from Edinburgh to North Berwick and return, with a half-hour frequency at peak times. Certain trains continued beyond Edinburgh to Glasgow Central.
Saturdays - Half-hourly throughout the day until early evening, reducing to hourly.
Sundays - Hourly
2008/09
Monday - Friday - Hourly from Edinburgh to North Berwick and return, with a half-hour frequency at peak times. Certain trains continue beyond Edinburgh to Glasgow Central via Carstairs.
Saturdays - Half-hourly throughout the day until early evening, reducing to hourly.
Sundays - Hourly
2018/19
Monday - Saturday - Either 2tph to Edinburgh and 1tph to North Berwick or 2tph to North Berwick and 1tph to Edinburgh with some peak services extending to Glasgow or Ayr