user34296: The blockchain.info api looks like this:

The link is: https://github.com/blockchain/api-v1-client-python/blob/master/docs/wallet.md
But when I give a fee like this:
add={'address1':amount1,'address2':amount2}
fee=5000
pay = wallet.send_many(recipients=add,fee=fee)

Will it then be 10000 (two times 5000) or will it be 5000?
Thanks for the answers.

user31844: You will pay the fee once, since it is one transaction with multiple outputs (thus only 5000). 
However, also read this

34296: <p>The blockchain.info api looks like this:
<a href="https://i.stack.imgur.com/CvGd8.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/CvGd8.jpg" alt="enter image description here"></a></p>

<p>The link is: <a href="https://github.com/blockchain/api-v1-client-python/blob/master/docs/wallet.md" rel="nofollow noreferrer">https://github.com/blockchain/api-v1-client-python/blob/master/docs/wallet.md</a></p>

<p>But when I give a fee like this:</p>

<pre><code>add={'address1':amount1,'address2':amount2}
fee=5000
pay = wallet.send_many(recipients=add,fee=fee)
</code></pre>

<p>Will it then be 10000 (two times 5000) or will it be 5000?</p>

<p>Thanks for the answers.</p>
 31844: <p>You will pay the fee once, since it is one transaction with multiple outputs (thus only 5000). </p>

<p>However, also read <a href="https://bitcoin.stackexchange.com/questions/22313/fees-for-bitcoind-sendmany-limits-for-number-of-end-addresses">this</a></p>
