Code Monkey home page Code Monkey logo

Comments (3)

dsmorgan77 avatar dsmorgan77 commented on August 19, 2024

Specifically, the current spec for CPSC recalls in the API:
Recalled On
Manufacturer
ProductType
Description
Hazard
Country
UPC

Additional fields (such as found here: http://www.cpsc.gov/en/Recalls/2013/Electric-Blower-Vacuums-Recalled-by-OWT-Industries/) could include:
Units (which is usually an approximation and not a hard number)
Whether there have been incidents/injuries/deaths (note that this exists in NHTSA data as well, and could be provided)
Whether the product is sold exclusively, and where
Importer

Right now, the API spec does not provide room for agencies to provide these additional data fiels.

from recalls_api.

dsmorgan77 avatar dsmorgan77 commented on August 19, 2024

In general, the API spec tailors to the way each agency currently publishes a feed, rather than mapping agency fields into some sort of harmonized set of standard fields with, potentially, agency-specific extensions of the base data. This should be corrected.

from recalls_api.

afeijoo avatar afeijoo commented on August 19, 2024

We currently pull CPSC data from http://www.cpsc.gov/cgibin/CPSCUpcWS/CPSCUpcSvc.asmx?op=getRecallByWord. A search on "OWT Industries Walmart Expert Gardener BlowerVac 2 Electric Blower Vacuums" returns the following result.

So, the result we return has the same fields.

http://api.usa.gov/recalls/search?query=owt+industries+blower

{"success":{"total":1,"results":[{"organization":"CPSC","recall_number":"13123","recall_date":"2013-02-21","recall_url":"http://www.cpsc.gov/cpscpub/prerel/prhtml13/13123.html","manufacturers":["OWT Industries"],"product_types":["Blowers"],"descriptions":["OWT Industries Walmart Expert Gardener BlowerVac 2 Electric Blower Vacuums"],"upcs":null,"hazards":["Laceration"],"countries":["China"]}]}}

If the data on units, incidents/injuries/death, exclusivity, and importer are added to the CPSC API, we can add it to this API, too.

from recalls_api.

Related Issues (10)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.