1
0
-1

I am a developer building an app using the FTP download data and would like to include a list of filter options the user can select to search for pets based on various criteria/options. I'm looking for a complete list of available choices for each category such as species, breed, size, age, etc... Thanks.

    CommentAdd your comment...

    1 answer

    1.  
      2
      1
      0

      Dimitry,

      The best way to obtain this information would be to request it from the API – you could do that against the live API either once, or on demand with your application.  

      Here's an API POST that returns all of the animal breeds.  You just need to update the apikey and POST it to the production endpoint here: https://api.rescuegroups.org/http/v2.json

      {
          "apikey": "{{apikey}}",
          "objectType":"animalBreeds",
          "objectAction":"publicList"
      }

      There are both publicList and publicSearch actions for species, breeds, colors.

      The possible values for some of the animal fields like size and age are included in the animal definition, which you can get using a define call like this:

      {
          "apikey": "{{apikey}}",
          "objectType":"animals",
          "objectAction":"define"
      }


      Hope that helps,

      Richard

      1. Dimitry Z.

        This is great. Thanks for the info.

      CommentAdd your comment...