Jobs are found in various ways, but are offered based on relationships (existing or developing a new one).
If you liked the recruiter and genuinely feel the previous job was a "near miss" but this one is a much better fit, reach out to the recruiter. Having a human advocate is far better than getting lost in an automated processing bin.
Also, a good recruiter can provide more feedback on how to re-write your resume, reinforce what you did well before and help you avoid pitfalls that may have hurt you previously.
If you have a contact within the company (like from HR), that might be better.
If you found the job without the recruiter, there is a credible position to apply via the same route. However, recruiters are paid to be sure that your application is seriously considered... a portal has not such bias in your favor.
Good luck!