Extractives service API
Reports that have been filed by companies and non-registered entities are accessible via an API which returns the data as JSON or XML.
API reference
| HTTP Method | URL | Description | 
|---|---|---|
| GET | 
                            /api/company/{company_number}/json
                         | 
                        
                             Returns a JSON representation of all reports filed by the company with the
                            specified company number.
                              | 
                    
| GET | 
                            /api/company/{company_number}/year/{year}/json
                         | 
                        
                             Returns a JSON representation of the most recent report filed by the company with
                            the specified company number in the specified year.
                              | 
                    
| GET | 
                           /api/company/{company_number}/year/{year}/xml
                         | 
                        
                            Returns an XML representation of the most recent report filed by the company with
                           the specified company number in the specified year.
                             | 
                    
| GET | 
                            /api/nonregistered/year/{year}/json
                         | 
                        
                             Returns a JSON representation of all reports filed by all
                            non-registered entities in the given year.
                              | 
                    
| GET | 
                            /api/year/{year}/json
                         | 
                        
                             Returns a JSON representation of the most recent report filed
                                by every company for that year.
                                  |