The larvae of Contarinia nasturtii (Kieffer) (Diptera: Cecidomyiidae), the swede midge, targets the meristem of brassica crops where they induce the formation of galls and disrupt seed and vegetable production. Previously, we examined the salivary gland transcriptome of newly‐hatched first instar larvae as they penetrated the host and initiated gall formation. Here we examine the salivary gland and midgut transcriptome of third instar larvae and provide evidence for cooperative nutrient acquisition beginning with secretion of enzymes and feeding facilitators followed by gastrointestinal digestion. Sucrose, presumably obtained from the phloem, appeared to be a major nutrient source as several α‐glucosidases (sucrases, maltases) and β‐fructofuranosidases (invertases) were identified. Genes encoding β‐fructofuranosidases/invertases were among the most highly expressed in both tissues and represented two distinct gene families that may have originated via horizontal gene transfer from bacteria. The importance of the phloem as a nutrient source is underscored by the expression of genes encoding regucalcin and ARMET (arginine‐rich mutated in early stages of tumor) which interfere with calcium signalling and prevent sieve tube occlusion. Lipids, proteins, and starch appear to serve as a secondary nutrient sources. Genes encoding enzymes involved in the detoxification of glucosinolates (myrosinases, arylsulfatases, and glutathione‐S‐transferases) were expressed indicative of Brassicaceae host specialization. The midgut expressed simple peritrophins and mucins typical of those found in Type II peritrophic matrices, the first such description for a gall midge.