# Search/companies

**URL:** <http://forum.companieshouse.gov.uk/t/search-companies/10204>\
**Category:** API Issues\
**Created:** [November 19, 2024, 3:26am UTC](http://forum.companieshouse.gov.uk/t/search-companies/10204 "2024-11-19T03:26:21Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![voracityemail](http://forum.companieshouse.gov.uk/letter_avatar_proxy/v4/letter/v/b77776/32.png) [@voracityemail](http://forum.companieshouse.gov.uk/u/voracityemail)\
**Post date:** [November 19, 2024, 9:42am UTC](http://forum.companieshouse.gov.uk/t/search-companies/10204/2 "2024-11-19T09:42:52Z")

</div>

Well … in fact, it does! It’s not as helpful as it could be (you’ll need to check what was matched yourself) but if you match on a previous name using [Companies Search](https://developer-specs.company-information.service.gov.uk/companies-house-public-data-api/resources/companysearch?v=latest) it seems the matched previous name is returned in the `snippet` field.

Example (not the best one, which would be a firm that renamed to something very different) - search for “TWITTER UK” (I’ve removed some fields in the returned JSON and moved things about for clarity):

```auto
curl -u YOURAPIKEYHERE: "https://api.company-information.service.gov.uk/search/companies?q=TWITTER%20UK&items_per_page=2&start_index=0"

{
    "start_index": 0,
    "kind": "search#companies",
    "total_results": 382805,
    "page_number": 1,
    "items_per_page": 2,
    "items": [
        {
            "title": "TWITTER UK LTD",
            "address_snippet": "Twitter Uk Ltd, 1st Floor, 20 Air Street, London, W1B 5AN",
            "snippet": "TWITTER INFORMATION NETWORK LIMITED ",
            "matches": {
                "snippet": []
            },
            "description": "07653064 - Incorporated on 1 June 2011",
            "company_number": "07653064",
            ...
        },
        ...
    ]
}

```

Now try searching by a previous name, “TWITTER INFORMATION NETWORK”:

```auto
curl -u YOURAPIKEYHERE: "https://api.company-information.service.gov.uk/search/companies?q=TWITTER%20INFORMATION%20NETWORK&items_per_page=2&start_index=0"

{
    "start_index": 0,
    "total_results": 37618,
    "kind": "search#companies",
    "items_per_page": 2,
    "page_number": 1,
    "items": [
        {
            "title": "TWITTER UK LTD",
            "address_snippet": "Twitter Uk Ltd, 1st Floor, 20 Air Street, London, W1B 5AN",
            "snippet": "TWITTER INFORMATION NETWORK LIMITED ",
            "matches": {
                "snippet": []
            },
            "description": "07653064 - Incorporated on 1 June 2011"
            "company_number": "07653064",
            ...
        },
        ...
    ]
}

```

Not the best example as the snippet in the first search also lists the previous name as that matches the search (I think) - but if you find a company which has changed name to something completely different you’ll see the matching previous name in snippet when you search for that and match.

I am not sure why the `matches.snippet` part (listing the parts of strings which matched) doesn’t appear to be doing anything (I’ve tried it on other things also)?

See this thread noting when this feature was introduced:

> [@Search Enhancements - Change Notice](https://forum.aws.chdev.org/t/search-enhancements-change-notice/682):
>
> As of the Wednesday 27th July, the following search enhancements will be available: All search. You are now able to search across Company, Officer and Officer Disqualification with a single search request, through a GET /search request. Previous company names and other officer name searching. Search now considers a companies previous names, or other names an officer may be appointed as when satisfying the search. Dissolved company names. Dissolved company names are now considered, but a…

---

_[View the full topic](http://forum.companieshouse.gov.uk/t/search-companies/10204)._
