# How to obtain officer\_id?

**URL:** <http://forum.companieshouse.gov.uk/t/how-to-obtain-officer-id/771>\
**Category:** Uncategorized\
**Created:** [September 29, 2016, 1:13pm UTC](http://forum.companieshouse.gov.uk/t/how-to-obtain-officer-id/771 "2016-09-29T13:13:56Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![samantha\_s](http://forum.companieshouse.gov.uk/letter_avatar_proxy/v4/letter/s/5fc32e/32.png) [@samantha\_s](http://forum.companieshouse.gov.uk/u/samantha_s)\
**Post date:** [September 29, 2016, 1:13pm UTC](http://forum.companieshouse.gov.uk/t/how-to-obtain-officer-id/771/1 "2016-09-29T13:13:56Z")

</div>

I can’t see, in the documentation or in the results of a query, how to obtain the officer\_id.

I’m basically trying to build a network graph (to help Lambeth council more quickly identify rogue landlords). The user searches, for example, an officer name; then all of the appointments for that officer are returned; this is followed by all of the officers for those companies; then all of the companies for those officers; and so on recursively.

Initially I thought the officer\_id was the string of numbers/letters in the ‘links’ field in the container resulting from an officer search query, but that doesn’t seem to be person-unique.

Thoughts?

I can’t seem to find the answers here:

> **[appointmentList resource](https://developer.company-information.service.gov.uk/api/docs/officers/officer_id/appointments/appointmentList-resource.html)**

> **[List the company officers](https://developer.company-information.service.gov.uk/api/docs/company/company_number/officers/officerList.html)**

Thanks for the help in advance,  
Sam

---

<div class="post-metadata">

**Author:** ![mfairhurst](http://forum.companieshouse.gov.uk/letter_avatar_proxy/v4/letter/m/bbce88/32.png) [@mfairhurst](http://forum.companieshouse.gov.uk/u/mfairhurst)\
**Post date:** [October 4, 2016, 2:13pm UTC](http://forum.companieshouse.gov.uk/t/how-to-obtain-officer-id/771/2 "2016-10-04T14:13:23Z")

</div>

@samantha_s

If you perform an officer search, as per the example below:

[https://api.companieshouse.gov.uk/search/officers?q=fairhurst](https://api.companieshouse.gov.uk/search/officers?q=fairhurst)

This returns officers matching the query provided, an example as follows: -

```
  {
      "title": "Alan FAIRHURST",
      "description": "Total number of appointments 4 - Born October 1952",
      "kind": "searchresults#officer",
      "description_identifiers": [
        "appointment-count",
        "born-on"
      ],
      "address": {
        "country": "TS17 0RE",
        "locality": "Stockton On Tees",
        "region": "Cleveland",
        "address_line_2": "Ingleby Barwick",
        "address_line_1": "1 Farrier Close"
      },
      "address_snippet": "1 Farrier Close, Ingleby Barwick, Stockton On Tees, Cleveland, TS17 0RE",
      "matches": {
        "title": [
          6,
          14
        ],
        "snippet": []
      },
      "date_of_birth": {
        "month": 10,
        "year": 1952
      },
      "appointment_count": 4,
      "links": {
        "self": "/officers/Tb8ZDuH29bITba4Hk4KSv5YieLo/appointments"
      },
      "snippet": ""
    },

```

With each result there is a link to the appointments for that person. So in the example above the link is

> “self”: “/officers/Tb8ZDuH29bITba4Hk4KSv5YieLo/appointments”

This can be followed to retrieve the appointment information, including the companies, for that person: -

[https://api.companieshouse.gov.uk/officers/Tb8ZDuH29bITba4Hk4KSv5YieLo/appointments](https://api.companieshouse.gov.uk/officers/Tb8ZDuH29bITba4Hk4KSv5YieLo/appointments)

An extract as follows: -

```
 {
      "name_elements": {
        "forename": "Alan",
        "surname": "FAIRHURST"
      },
      "officer_role": "director",
      "occupation": "Director",
      "address": {
        "region": "Cleveland",
        "address_line_1": "Coverdale Court",
        "premises": "PO BOX 1949",
        "locality": "Redcar",
        "postal_code": "TS10 4YG",
        "address_line_2": "Wilton International"
      },
      "appointed_on": "2010-03-17",
      "nationality": "British",
      "name": "Alan FAIRHURST",
      "country_of_residence": "England",
      "resigned_on": "2012-05-31",
      "appointed_to": {
        "company_status": "active",
        "company_name": "PROCOMM SITE SERVICES (HOLDINGS) LIMITED",
        "company_number": "07115358"
      },
      "links": {
        "company": "/company/07115358"
      }

```

The links to the companies can then be followed to navigate to the company information which contains the links to the officers for that company and so on…

As stated the letters/numbers is the officer-id. Can you let me know some examples where this is not person specific?

Thanks,

@mfairhurst

---

<div class="post-metadata">

**Author:** ![samantha\_s](http://forum.companieshouse.gov.uk/letter_avatar_proxy/v4/letter/s/5fc32e/32.png) [@samantha\_s](http://forum.companieshouse.gov.uk/u/samantha_s)\
**Post date:** [October 6, 2016, 1:26pm UTC](http://forum.companieshouse.gov.uk/t/how-to-obtain-officer-id/771/3 "2016-10-06T13:26:51Z")

</div>

Thanks @mfairhurst for the information - very useful.

I had a bug in my script, which was why it appeared that some officers had non-unique IDs; there’s actually no problems as far as I can tell.

Thanks again,  
Sam

---

<div class="post-metadata">

**Author:** ![mfairhurst](http://forum.companieshouse.gov.uk/letter_avatar_proxy/v4/letter/m/bbce88/32.png) [@mfairhurst](http://forum.companieshouse.gov.uk/u/mfairhurst)\
**Post date:** [October 6, 2016, 1:41pm UTC](http://forum.companieshouse.gov.uk/t/how-to-obtain-officer-id/771/4 "2016-10-06T13:41:14Z")

</div>

Glad to hear that the issue has been resolved.  
Great news 😄

---

<div class="post-metadata">

**Author:** ![keith](http://forum.companieshouse.gov.uk/letter_avatar_proxy/v4/letter/k/f05b48/32.png) [@keith](http://forum.companieshouse.gov.uk/u/keith)\
**Post date:** [November 16, 2016, 11:42am UTC](http://forum.companieshouse.gov.uk/t/how-to-obtain-officer-id/771/5 "2016-11-16T11:42:48Z")

</div>

@mfairhurst Is the officer\_id really the long alpha numeric character? I thought officer\_id was a shorter numeric code. Has there been a change in this field at some point?

For example, this is the same person:  
officer\_id IKmpj-vhxnlTVzG0fTx524rw97Q  
officer\_id 906692951

Is the second an old format?

Many Thanks

---

<div class="post-metadata">

**Author:** ![tcunha](http://forum.companieshouse.gov.uk/letter_avatar_proxy/v4/letter/t/f05b48/32.png) [@tcunha](http://forum.companieshouse.gov.uk/u/tcunha)\
**Post date:** [February 14, 2018, 5:04pm UTC](http://forum.companieshouse.gov.uk/t/how-to-obtain-officer-id/771/6 "2018-02-14T17:04:04Z")

</div>

Hi,

Sorry by bump this topic.  
I found same question. Where we can find the officer\_id?

I checked services that get information from CH and they have similar ids:

Example:

> **[MR RICHARD BAYLISS director information. Free director information. Director...](https://companycheck.co.uk/director/906376084/MR-RICHARD-BAYLISS/summary)**
>
> MR RICHARD BAYLISS - ACTIVE - Director ID is 906376084 And address is First Floor 39 High Street, Billericay, Essex, CM12 9BA - A free Director Summary including all company appointments.

[http://suite.endole.co.uk/insight/people/6376084-mr-richard-bayliss](http://suite.endole.co.uk/insight/people/6376084-mr-richard-bayliss)  
[https://www.companysearchesmadesimple.com/director/uk/906376084/](https://www.companysearchesmadesimple.com/director/uk/906376084/)

The ids are similar.

Best Regards,  
tc

---

<div class="post-metadata">

**Author:** ![alex\_skene](http://forum.companieshouse.gov.uk/letter_avatar_proxy/v4/letter/a/df705f/32.png) [@alex\_skene](http://forum.companieshouse.gov.uk/u/alex_skene)\
**Post date:** [March 21, 2018, 5:44pm UTC](http://forum.companieshouse.gov.uk/t/how-to-obtain-officer-id/771/7 "2018-03-21T17:44:57Z")

</div>

Not sure where the 9 comes from, but “06376084” matches the first 8 digits of that officer’s 12-digit PERSON-NUMBER field from the daily bulk data files.

---

<div class="post-metadata">

**Author:** ![dmw](http://forum.companieshouse.gov.uk/letter_avatar_proxy/v4/letter/d/e274bd/32.png) [@dmw](http://forum.companieshouse.gov.uk/u/dmw)\
**Post date:** [March 22, 2018, 1:11am UTC](http://forum.companieshouse.gov.uk/t/how-to-obtain-officer-id/771/8 "2018-03-22T01:11:46Z")

</div>

Alex - where can one find the daily bulk data files? Please post a link.

---

<div class="post-metadata">

**Author:** ![alex\_skene](http://forum.companieshouse.gov.uk/letter_avatar_proxy/v4/letter/a/df705f/32.png) [@alex\_skene](http://forum.companieshouse.gov.uk/u/alex_skene)\
**Post date:** [March 22, 2018, 10:18am UTC](http://forum.companieshouse.gov.uk/t/how-to-obtain-officer-id/771/9 "2018-03-22T10:18:36Z")

</div>

Requesting it in this thread seems to be the way to go:

[http://forum.aws.chdev.org/t/bulk-file-officer-filing/347](http://forum.aws.chdev.org/t/bulk-file-officer-filing/347)
