CPSC Recalls Application Program Interface (API) Information

CPSC Recalls Application Program Interface (API) Information

CPSC provides accessibility to recalls via a recall database. The information is publicly available to consumers and businesses as well as software and application developers. 

The Commission recently worked towards a new and improved recalls API implemented as REST web services.  The recall data can be retrieved in XML or in JSON.  The API provides machine readable access to publicly available recall information visible on cpsc.gov. 

 

You can find more information on how to access and interpret the CPSC Recalls API in our documentation guide, examples are provided below to provide an overview.

 

Example Search URL’s:

  1. The URL to get a list of all recalls with title “Child” and description contains “metal” in XML format is: http://www.saferproducts.gov/RestWebServices/Recall?Title=Child&RecallDescription=metal
    To get the same list as above but in JSON format: http://www.saferproducts.gov/RestWebServices/Recall?Title=Child&RecallDescription=metal&format=json

  2. The URL to  get a list of all recalls with ProductName “Toddler” in XML format is: http://www.saferproducts.gov/RestWebServices/Recall?ProductName=Toddler  
    To get the same list as above but in JSON format: http://www.saferproducts.gov/RestWebServices/Recall?ProductName=Toddler&format=json