Data and R code from an multiple before after control impact (MBACI) experiment conducted across a total of nine oil and gas platforms using the UK Benthos database v5.17. The dataset provides a comprehensive inventory of species identified in the database. Each taxon was verified against World Register of Marine Species, with their corresponding accepted names, taxonomy classification, feeding group, known prey and references provided. The compilation of food web interaction, the construction of sub food web at each sampling site and the calculation of food web metrics are shown in the R code. This dataset provides all the information from the experiment underpinning the Chen et al. Science of the Total Environment paper "Oil and gas platform degrade benthic invertebrate diversity and food web structure".