We have updated our API Terms of Service. Please review the entire terms before continuing to use the API. Your use of the API means you accept and agree to the updated API Terms of Service found here: https://rescuegroups.org/api-terms-of-service/
It's possible to dynamically update data and information on websites using publicly accessible data via the HTTP API.
For example, you might want to have the following:
We've adopted 389 animals!
You can populate the number dynamically via the HTTP API.
To do this via the RescueGroups.org Website service, you'll need both a Custom Code Snippet, and a web page with some HTML included.
Custom Code Snippet
Be sure to replace the asterisks in the example above with your public API Key for the apikey value and your account number for the animalOrgID value.
Add content to the web page
Edit the web page or content area where you would like the dynamic data to appear. You'll need to do two things:
- Include the Custom Code Snippet you created above anywhere on the page.
- Add a container (like span or div) to hold the value from the API query.
For the container, you could use the following HTML code (following the example query for adopted animals above):
So once you add it all to the web page, it might look something like this: