N6-methyladenosine (m6A), internal modification of mRNA, has recently been reported to be an important regulatory mechanism affecting tumor proliferation. However, its role in endocrine system tumors is poorly understood. We obtained datasets for four types tumors from the TCGA database, analyzed the GTEx database as a supplement to the control group, and used “Perl” and “R” software to analyze the datasets. Then we differentiated the expression level, used it to cluster consensus. Besides, we established lasso regression model to screen variables, used univariate and multivariate cox analyses to explore the independent risk factors associated with cancer prognosis. The results indicated that except for WTAP, the expression level of METTL3 was negatively correlated with other genes. The expression level of WTAP and METTL16 was positively correlated with overall survival (OS). Moreover, we found that different clinical subtypes of adrenal cortical carcinoma had significant differences in survival status, histologic grading, pathological T grade, and OS. Furthermore, different clinical subtypes of thyroid carcinoma had significant differences in histologic grading and pathological T grade. The differential expression of m6A regulatory genes is closely associated with the presence of endocrine-system-related tumors, and risk scores can be used to assess prognosis.