Demo: Limit Pets
By default, Fetch will display every adoptable pet. You can limit the number of animals displayed using the limit
setting.
Loading...
What to put on your site
<link rel="stylesheet" type="text/css" href="/css/fetch2.css">
<script src="/css/fetch2.js"></script>
<div data-fetch>
Loading...
</div>
<script>
new Fetch('[data-fetch]', {
key: 'YOUR API KEY',
secret: 'YOUR API SECRET',
shelter: 'YOUR SHELTER ID'
}, {
limit: 10
});
</script>
If you’re using WordPress
[fetch2 key="YOUR API KEY" secret="YOUR API SECRET" shelter="YOUR SHELTER ID" limit="10"]
<p>Loading...</p>
[/fetch2]