By 'headings from SERP' do you mean the titles of SERP entries, or the header tags on those entries? Scrapebox's 'Grab META info from harvested URL list' feature or a SERP API service can perform the former, whilst a SERP API service and a little bit of html parsing code could perform the latter.