Skip to main content
Home
PetHub Dev Net (Alpha)

Main navigation

  • Home
  • APIs
  • Widget
  • Apply
User account menu
  • Log in

Breadcrumb

  1. Home
  2. Endpoints

/Foods

By PetHub, 23 January, 2023

The /foods endpoint focuses on the types of pet food that is recognized by and can be recorded on PetHub.com for a pet's nutritional needs. Use this to pull the types of foods available and details about a specific food ID (fid).

Digging into /Foods

The /foods endpoint offers the following:

/foods Description
/
  • POST - add a food to PetHub's list of foods, types, etc.
  • GET - list of foods available on PetHub
    Example:
    https://pethub.io/v1/foods?manufacturer=mars&type=kibble
/{fid}
  • GET - retrieve manufacturer, brand, type, name, and so on
  • PUT - update information about a food entry
  • DELETE - remove a food entry from the database
/{fid}/use GET - get the list of pets using food {fid}
Example:
https://pethub.io/v1/foods/{fid}/use?state=wa&city=seattle
  (Actively seeking feedback re: additional endpoints & use cases)
   

The Swagger 2.0 / OAS YAML rendering is below including the data structures necessary for POST or returned by GET.

Category
API V1
endpoints
foods
pets
types

API Docs Index

  • Getting Started
  • API Calls
    • Introduction
    • Authentication
    • Requests
    • Responses
  • Endpoints
    • /Activities
    • /Foods
    • /LostPets
    • /Perks
    • /Persons
    • /Pets
    • /Species
    • /Tags
  • Webhooks
    • /Alerts
    • /Notifications
  • Response Codes
  • Dev Resources
  • Support

Footer

  • Contact
  • Terms of Use
  • API Documentation
  • Widget Documentation
  • Frequently Asked Questions
  • Support

Copyright 2025, PetHub, Inc. All rights reserved.