Onions are mainly leaves, so yes I would say a fertiliser which is higher in nitrogren. It can be organic or non-organic, according to choice. One example is sulphate of ammonia. Another is poultry manure.
The RHS also suggests a high potassium fertiliser, such as Vitax Q4, when preparing the ground in advance.