> ## Documentation Index
> Fetch the complete documentation index at: https://developers.hubspot.jp/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Get recently created companies

> Returns a list of all companies sorted by the date the companies were most recently modified or created.

export const ScopesList = ({scopes = [], description = "この API には、次のいずれかのスコープが必要です。"}) => {
  if (!scopes || scopes.length === 0) {
    return null;
  }
  const sortedScopes = scopes.sort((a, b) => a.localeCompare(b));
  return <div>
      <div className="text-sm mb-2">{description}</div>
      <div>
        {sortedScopes.map((scope, index) => <div key={index}>
            <code>
              <span className="text-xs">{scope}</span>
            </code>
          </div>)}
      </div>
    </div>;
};

<Accordion title="Scope requirements">
  <ScopesList scopes={['crm.objects.companies.read', 'crm.objects.companies.write']} />
</Accordion>


## OpenAPI

````yaml specs/legacy/v2/crm-companies-v2.json GET /companies/v2/companies/recent/created
openapi: 3.0.0
info:
  title: CRM Companies API v2
  version: 2.0.0
  description: Legacy CRM Companies API v2 - Auto-generated from MDX documentation
servers:
  - url: https://api.hubapi.com
    description: HubSpot API Server
security: []
paths:
  /companies/v2/companies/recent/created:
    get:
      summary: Get recently created companies
      description: >-
        Returns a list of all companies sorted by the date the companies were
        most recently modified or created.
      operationId: getcompaniesv2companiesrecentcreated
      parameters:
        - name: limit
          in: query
          required: false
          description: >-
            The number of records to return in a single request. Supports values
            up to 100.
          schema:
            type: string
        - name: offset
          in: query
          required: false
          description: >-
            Each response will include a `hasMore` value and an offset object.
            If `hasMore` is `true`, then you would use the offset object in the
            next request to get the next set of results.
          schema:
            type: string
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                type: object
              examples:
                example1:
                  summary: Get Recently Created Companies - Example 1
                  value:
                    - value: '0'
                      timestamp: 1419968066626
                      source: null
                      sourceId: null
                      versions:
                        - name: hs_analytics_num_visits
                          value: '0'
                          timestamp: 1419968066626
                          sourceVid: []
                    - value: '1419966041287'
                      timestamp: 1419966041656
                      source: null
                      sourceId: null
                      versions:
                        - name: first_deal_created_date
                          value: '1419966041287'
                          timestamp: 1419966041656
                          sourceVid: []
                    - value: '1419968097561'
                      timestamp: 1419968097561
                      source: null
                      sourceId: null
                      versions:
                        - name: hs_lastmodifieddate
                          value: '1419968097561'
                          timestamp: 1419968097561
                          sourceVid: []
                    - value: '1415689200000'
                      timestamp: 1419966061962
                      source: null
                      sourceId: null
                      versions:
                        - name: recent_deal_close_date
                          value: '1415689200000'
                          timestamp: 1419966061962
                          sourceVid: []
                    - value: '5000'
                      timestamp: 1419966061962
                      source: null
                      sourceId: null
                      versions:
                        - name: recent_deal_amount
                          value: '5000'
                          timestamp: 1419966061962
                          sourceVid: []
                    - value: '1415682000000'
                      timestamp: 1419968066626
                      source: null
                      sourceId: null
                      versions:
                        - name: closedate
                          value: '1415682000000'
                          timestamp: 1419968066626
                          sourceVid: []
                    - value: '1419966010576'
                      timestamp: 1419966010576
                      source: null
                      sourceId: null
                      versions:
                        - name: createdate
                          value: '1419966010576'
                          timestamp: 1419966010576
                          sourceVid: []
                    - value: '1419966010576'
                      timestamp: 1419966010576
                      source: null
                      sourceId: null
                      versions:
                        - name: hubspot_owner_assigneddate
                          value: '1419966010576'
                          timestamp: 1419966010576
                          sourceVid: []
                    - value: '1419965931323'
                      timestamp: 1419968066626
                      source: null
                      sourceId: null
                      versions:
                        - name: first_contact_createdate
                          value: '1419965931323'
                          timestamp: 1419968066626
                          sourceVid: []
                    - value: customer
                      timestamp: 1419966061791
                      source: null
                      sourceId: null
                      versions:
                        - name: lifecyclestage
                          value: customer
                          timestamp: 1419966061791
                          sourceVid: []
                    - value: '5000'
                      timestamp: 1419966061962
                      source: null
                      sourceId: null
                      versions:
                        - name: total_revenue
                          value: '5000'
                          timestamp: 1419966061962
                          sourceVid: []
                    - value: OFFLINE
                      timestamp: 1419968066626
                      source: null
                      sourceId: null
                      versions:
                        - name: hs_analytics_source
                          value: OFFLINE
                          timestamp: 1419968066626
                          sourceVid: []
                    - value: '0'
                      timestamp: 1419968066626
                      source: null
                      sourceId: null
                      versions:
                        - name: hs_analytics_num_page_views
                          value: '0'
                          timestamp: 1419968066626
                          sourceVid: []
                    - value: '1419965931323'
                      timestamp: 1419968066626
                      source: null
                      sourceId: null
                      versions:
                        - name: hs_analytics_first_timestamp
                          value: '1419965931323'
                          timestamp: 1419968066626
                          sourceVid: []
                    - value: madison Inc
                      timestamp: 1419966010576
                      source: null
                      sourceId: null
                      versions:
                        - name: name
                          value: madison Inc
                          timestamp: 1419966010576
                          sourceVid: []
                    - value: '1'
                      timestamp: 1419966011133
                      source: null
                      sourceId: null
                      versions:
                        - name: num_associated_contacts
                          value: '1'
                          timestamp: 1419966011133
                          sourceVid: []
                    - value: '70'
                      timestamp: 1419966010576
                      source: null
                      sourceId: null
                      versions:
                        - name: hubspot_owner_id
                          value: '70'
                          timestamp: 1419966010576
                          sourceVid: []
                    - value: '1'
                      timestamp: 1419966041656
                      source: null
                      sourceId: null
                      versions:
                        - name: num_associated_deals
                          value: '1'
                          timestamp: 1419966041656
                          sourceVid: []
                    - value: ''
                      timestamp: 1419968066626
                      source: null
                      sourceId: null
                      versions:
                        - name: hs_analytics_source_data_2
                          value: ''
                          timestamp: 1419968066626
                          sourceVid: []
                    - value: API
                      timestamp: 1419968066626
                      source: null
                      sourceId: null
                      versions:
                        - name: hs_analytics_source_data_1
                          value: API
                          timestamp: 1419968066626
                          sourceVid: []

````