For an introduction, see Python tutorial > Fitting.
For an informal API documentation, see Reference > Fitting.
Some examples use experimental or synthetic data. A downloaded data file can be placed next to its Python script. Generated examples in the BornAgain source tree already include the required files there.