Skip to content

Retrieve exact image match using public api while specifying all option parameters? #216

Closed Answered by FlorianKoerner
bmm-brobbins asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @bmm-brobbins 😃

if you want to get the same result guaranteed, make sure you use the same seed. In your example URL, the seed is an empty string. If you don't specify one locally, it is a random value, so you can get different results.

See example 1:
https://codesandbox.io/s/dicebear-215-u6vtxy?file=/index.ts

Alternatively, you really need to set all options. This also includes the probability. Some elements are only displayed with a probability calculated on the seed.

See example 2:
https://codesandbox.io/s/dicebear-215-u6vtxy?file=/index.ts

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@bmm-brobbins
Comment options

@FlorianKoerner
Comment options

Answer selected by bmm-brobbins
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #215 on May 13, 2022 07:40.