In the U.S., the inventor has a "first to invent" claim which is different from other patenting organizations throughout the world who generally utilize "first to file." Debate over this issue, and which model best influences economic development is ongoing. Some are concerned that a change in patent rights may harm the small startup and benefit the incumbents with deeper pockets. You can read more about this topic.
Performing patent-searches comprehensively with the ability to Search-Review-Refine-Iterate™ is a fundamental benefit of our IP Street tools for you, the IP counselors of the world. IP Street has developed a unified search that makes boolean search at the USPTO seem like a tool from the stone age.
Although anyone can claim to inventor or create something (e.g., Al Gore created the Internet), the reality is that an idea needs to be carefully considered in context of the law. If you are serious about protecting your invention, you should contact a patent attorney or patent agent. Applying for a patent, and its subsequent patent prosecution process, does cost money. You may see ads for low-cost services to file a patent on your behalf. Such solutions are viable if your goal is to boast to your friends that you patented something. However, if you have real-world business ambitions, it is imperative that the person writing the claims of your patent is a well-qualified lawyer. The adage "you get what you pay for" is very true in the intellectual property community. Realistically, a single patent is going to minimally cost you around $10K for the application fees, legal fees to write the claims, and so on. You want to find a legal professional that is a subject matter expert in your domain (whether it is IT, manufacturing, mechanical engineering, biotech).