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

# /panjiva/shipments/statistics

> Totals over every US customs import record matching a free-text query, optionally narrowed to shippers or US buyers within a radius of a point: how many shipments, their combined weight in kilograms and declared value in US dollars, plus an optional breakdown of them across chosen attributes such as origin country, port of unlading, industry or consignee country.

**Price:** 5 credits



## OpenAPI

````yaml /openapi/company-startup-intel.json post /api/panjiva/shipments/statistics
openapi: 3.1.0
info:
  title: Any Site API
  description: >+
    Any Site API provides programmatic access to data from LinkedIn, Instagram,
    Twitter, and other platforms.


    ## Authentication


    All API endpoints require an `access-token` header with a valid API token.
    Tokens can be created in the [dashboard](https://app.anysite.io/).


    ## Pricing


    Each endpoint has a credit cost listed in its description. Credits are
    deducted from your token balance per request.

  version: 0.0.1
servers: []
security:
  - AccessToken: []
paths:
  /api/panjiva/shipments/statistics:
    post:
      tags:
        - /panjiva
      summary: /panjiva/shipments/statistics
      description: >-
        Totals over every US customs import record matching a free-text query,
        optionally narrowed to shippers or US buyers within a radius of a point:
        how many shipments, their combined weight in kilograms and declared
        value in US dollars, plus an optional breakdown of them across chosen
        attributes such as origin country, port of unlading, industry or
        consignee country.


        **Price:** 5 credits
      operationId: __api_panjiva_shipments_statistics_post
      parameters:
        - name: access-token
          in: header
          required: true
          schema:
            anyOf:
              - type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PanjivaShipmentsStatisticsPayload'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/PanjivaShipmentStatistics'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    PanjivaShipmentsStatisticsPayload:
      properties:
        timeout:
          type: integer
          maximum: 1500
          minimum: 20
          default: 300
        shipper_latitude:
          anyOf:
            - type: number
              maximum: 90
              minimum: -90
            - type: 'null'
        shipper_longitude:
          anyOf:
            - type: number
              maximum: 180
              minimum: -180
            - type: 'null'
        shipper_radius_km:
          anyOf:
            - type: integer
              maximum: 5000
              minimum: 1
            - type: 'null'
        consignee_latitude:
          anyOf:
            - type: number
              maximum: 90
              minimum: -90
            - type: 'null'
        consignee_longitude:
          anyOf:
            - type: number
              maximum: 180
              minimum: -180
            - type: 'null'
        consignee_radius_km:
          anyOf:
            - type: integer
              maximum: 5000
              minimum: 1
            - type: 'null'
        query:
          anyOf:
            - type: string
              minLength: 1
            - type: 'null'
        dimensions:
          items:
            $ref: '#/components/schemas/PanjivaShipmentDimension'
          type: array
          default: []
      type: object
    PanjivaShipmentStatistics:
      properties:
        '@type':
          type: string
          default: PanjivaShipmentStatistics
        url:
          type: string
        query:
          anyOf:
            - type: string
            - type: 'null'
        shipment_count:
          anyOf:
            - type: integer
            - type: 'null'
        weight_kg:
          anyOf:
            - type: number
            - type: 'null'
        value_usd:
          anyOf:
            - type: number
            - type: 'null'
        breakdowns:
          items:
            $ref: '#/components/schemas/PanjivaShipmentBreakdown'
          type: array
          default: []
      type: object
      required:
        - url
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
      type: object
    PanjivaShipmentDimension:
      type: string
      enum:
        - origin_countries
        - shipment_destination
        - port_of_unlading
        - us_destination_port
        - port_of_lading
        - bill_type
        - industry_gics
        - intra_company
        - shipper_state
        - shipper_industry
        - shipper_employee_count
        - shipper_revenue
        - shipper_market_cap
        - shipper_ownership
        - shipper_bidirectional_trade
        - shipper_stock_ticker
        - shipper_ultimate_parent_stock_ticker
        - consignee_country
        - consignee_state
        - consignee_industry
        - consignee_employee_count
        - consignee_revenue
        - consignee_market_cap
        - consignee_ownership
        - consignee_bidirectional_trade
        - consignee_stock_ticker
        - consignee_ultimate_parent_stock_ticker
    PanjivaShipmentBreakdown:
      properties:
        '@type':
          type: string
          default: PanjivaShipmentBreakdown
        dimension:
          $ref: '#/components/schemas/PanjivaShipmentDimension'
        covered_shipment_count:
          anyOf:
            - type: integer
            - type: 'null'
        values:
          items:
            $ref: '#/components/schemas/PanjivaShipmentBreakdownValue'
          type: array
          default: []
      type: object
      required:
        - dimension
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
        msg:
          type: string
        type:
          type: string
        input: {}
        ctx:
          type: object
      type: object
      required:
        - loc
        - msg
        - type
    PanjivaShipmentBreakdownValue:
      properties:
        '@type':
          type: string
          default: PanjivaShipmentBreakdownValue
        value:
          type: string
        key:
          anyOf:
            - type: string
            - type: 'null'
        groups:
          items:
            type: string
          type: array
          default: []
        shipment_count:
          anyOf:
            - type: integer
            - type: 'null'
      type: object
      required:
        - value
  securitySchemes:
    AccessToken:
      type: apiKey
      in: header
      name: access-token
      description: API token from the dashboard

````