Hi Rob,
Here's a few sources:

https://history.state.gov/milestones/1801-1829/barbary-wars

https://www.monticello.org/site/research-and-collections/first-barbary-war
...