Small example for the usage of the SeedFinder JSON API

This is a small example for real, but it will show you how you can use our API to create own applications for your website. For this example we use bothe APIs, the one for the the IDs and the StrainInfo-Api.

OK, here we go...

  • 1.: Our example will get at first the Breeder/Strain-ID JSON with a <script> tag in the header of the page. This will result (because of the parameter &output=1 in the url) in a Javascript-Object called BREEDER.
  • 2.: Out of this object we can generate very easily our small select-boxes for the breeders and strains. For this we have added the functions selectbreederform() and selectseedform().
  • 3.: If a strain was selected, the function loadStrainInfo() will be called and get the info with the help of jQuery's $.ajax() function from the SeedFinder StrainInfo-Api. As you see its with the JSONP-extension, so it also will work cross-domain. The function also parse the given data and will output the name, the breeders name and the description directly into the html-page.
  • Thats all, here the live-example - below you will find the code to test byself.

Test it right now:

Lets test

Click here to show a formular for breeders, then select a strain and read in the actual info!

The code for the example:

In the header:

The folloing code have to be stored in the header between <head> and </head>

<script src="jquery.js" type="text/javascript"></script>
<script type="text/javascript" src=""></script>

In the body:

The folloing code can be pasted somewhere onto the page between <body> and </body>


Lets test

Click here to show a formular for breeders, then select a strain and read in the actual info!


Please note:
To use our JSON API you must verify your domain(s) here into the User-Area at first!

If you do a request from a unregistered domain you will get an Error 403!

Creative Commons BY-NC-SA 3.0 License With the help of the SeedFinder API you will be able to use our data for your own applications, widgets and integrate our info directly into your homepage. Use of the API is completely free if you follow the license terms. To stay informed about the API please connect an email to your user-account (so we can contact you if there are questions) and/or drop an eye to our Newsflash! If you don't like add backlinks or if you're running a commercial site, please contact us before using our api. »» All content is licensed under a Creative Commons BY-NC-SA 3.0 License