WebmeticDocs
Get startedDetectEnrichPersonalizeIntegrateManagePartnersDevelopers
PlaygroundVisitor Intelligence

Industry codes of the companies

GET
/company_nace

Retrieves NACE (Nomenclature of Economic Activities) codes for companies associated with a specified domain within a given time range.

This endpoint provides information about the economic activities of companies that have had sessions within the specified date range, categorized using the NACE classification system. It includes both company identifiers and the associated NACE codes.

Parameters:

  • domain (str): The domain name for which you want to retrieve company NACE codes.
  • from_date (str, optional): The starting date and time for the data range. Accepts ISO 8601 format or relative dates like '-30 days'. Default is '-30 days'.
  • to_date (str, optional): The ending date and time for the data range. Accepts ISO 8601 format or 'now' for the current date and time. Default is 'now'.
  • page (int, optional): The page number of results to retrieve. Default is 1.
  • page_size (int, optional): The number of entries to retrieve per page, up to 10000. Default is 10000.

Returns: A JSON object containing:

  1. Pagination information:
  • total: Total number of NACE code entries
  • page_total: Total number of pages
  • isFirst: Boolean indicating if it's the first page
  • current: Current page number
  • isLast: Boolean indicating if it's the last page
  • page_size: Number of entries per page
  1. Result: An array of NACE code objects, each containing:
  • company_id: Unique identifier for the company
  • code: The NACE code
  • full_code: The full NACE code including section
  • section_code: The section code of the NACE classification
  • section_description_de: Description of the section in German
  • section_description_en: Description of the section in English
  • division_code: The division code of the NACE classification
  • division_description_de: Description of the division in German
  • division_description_en: Description of the division in English
  • description_de: Detailed description of the NACE code in German
  • description_en: Detailed description of the NACE code in English

Note: This endpoint is rate-limited to 1 request per second.

Authorization

APIKeyHeader
headerAuthorization<token>

Query Parameters

domain*Domain
from_date?From Date

Starting DateTime format or relative dates like '-30 days', '-1 hour', '-5 minutes'. Examples: '2023-01-01', '-7 days', '-12 hours', '-5 minutes', 'now'

Default"-30 days"
to_date?To Date

Ending DateTime format or 'now' for the current date/time. Examples: '2023-01-31', 'now'

Default"now"
page?Page

Selected result page, starting at 1

Range1 <= value
Default1
page_size?Page Size

Number of entries per page, from 1 up to a maximum of 10000

Range1 <= value <= 10000
Default10000

Response Body

One entry per company and NACE code

application/json
  1. response
pagination*array<>

Always one entry

result*array<>

One entry per company and industry code

Example Request
curl -X GET 'https://hub.webmetic.de/company_nace?domain=website.example'
Example Response
{  "pagination": [    {      "total": 1,      "page_total": 1,      "isFirst": true,      "current": 1,      "isLast": true,      "page_size": 10000    }  ],  "result": [    {      "code": "11.07",      "full_code": "C 11.07",      "section_code": "C",      "section_description_de": "Verarbeitendes Gewerbe/Herstellung von Waren",      "section_description_en": "Manufacturing",      "division_code": "C11",      "division_description_de": "Getränkeherstellung",      "division_description_en": "Manufacture of beverages",      "description_de": "Herstellung von Erfrischungsgetränken und Mineralwässern",      "description_en": "Manufacture of soft drinks and bottled waters",      "company_id": "41ea486a9c95"    }  ]}