Skip to content

coreportsly/chouse

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

chouse

Simple Golang wrapper for the Companies House Rest API service.

Allows to perform API calls to look up company profile information among other details like company officers, filling history etc.

All API endpoints are supported and data returned is parsed JSON objects.

This project has no tests however it is being used in production at coreportsly.com

Usage

export CHOUSE_APIKEY='<your_secret_api_key>'
  • Example code using this package
package main

import (
    "github.com/coreportsly/chouse"
)

func main() {
    ch := chouse.Explore('companyNumber')

    // get info about company
    data, err := ch.Company()
    // do something with error
    for _, c := range data {
        fmt.Println(c.CompanyName)
    }

    // get company's fillings of annual return type
    data, err := ch.AnnualReturnsFilings()
    fmt.Println(data.Items[0].Date)
}
  • ...
  • Profit!

About

Golang wrapper for the Companies House Rest API

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages