In what year did america get its independence?
On July 2, 1776, the Second Continental Congress, still meeting in Philadelphia, voted unanimously to declare the independence as the "United States of America". Two days later, on July 4, Congress adopted the Declaration of Independence. The drafting of the Declaration was the responsibility of a Committee of Five, which included, among others, John Adams and Benjamin Franklin; it was drafted by Thomas Jefferson and revised by the others and the Congress as a whole. It contended that "all men are created equal" with "certain unalienable rights, that among these are life, liberty, and the pursuit of happiness", and that "to secure these rights governments are instituted among men, deriving their just powers from the consent of the governed", as well as listing the main colonial grievances against the crown. July 4 ever since has been celebrated as the birthday of the United States.
In what year did america declare its independence?
1776
History of the United States (1776–1789)
No context provided
In what year did america get its independence by overthrowing British rule?
1783
History of the United States (1776–1789)
https://en.wikipedia.org/wiki/History%20of%20the%20United%20States%20%281776%E2%80%931789%29
The Treaty of Paris, signed in Paris by representatives of King George III of Great Britain and representatives of the United States of America on September 3, 1783, officially ended the American Revolutionary War. The treaty set the boundaries between the British Empire in North America and the United States of America, on lines "exceedingly generous" to the latter.[2] Details included fishing rights and restoration of property and prisoners of war.

This treaty and the separate peace treaties between Great Britain and the nations that supported the American cause—France, Spain, and the Dutch Republic—are known collectively as the Peace of Paris.[3][4] Only Article 1 of the treaty, which acknowledges the United States' existence as a free, sovereign, and independent state, remains in force
Treaty of Paris (1783)
On July 4, 1776, the Second Continental Congress adopted the Declaration of Independence after having unanimously voted to declare it two days prior. Nonetheless, British rule was not fully overthrown until the Treaty of Paris was signed in 1783, which established the boundaries between the British Empire in North America and the United States of America and acknowledged the United States' existence as a free, sovereign, and independent state.