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

# Get Usage

> Return your API usage over a time range, by source and time bucket. `count` is the number of locations
that requested a source, including requests still in progress.

On a self-serve plan, entries also have `credits`: the credits charged. A source that cost no credits
has no `credits` field.

Granularity is chosen from the requested range: `5m` for the last day, `1h` for the last 31 days, `1d`
for longer ranges.



## OpenAPI

````yaml https://data-api.sovfixer.com/api/schema/?format=json get /api/v1/usage
openapi: 3.0.3
info:
  title: Ping.Data API
  version: v1.0
  description: >
    ### Ping.Data API


    This API provides convenient, efficient access to bulk location data from
    many sources.


    The typical usage flow is:


    * POST to `/api/v1/bulk_enhance`.  The POST body should look like this:

    ``` {
        "locations": [
            {
                "id": "user-id1",
                "address": "1212 Ping Data Lane, Pingville, FL",
                "sources": ["PG", "PH"],
                ...
            },
            ...
        ],
        "timeout": 60.0,
    }

    ```


    * Poll GET `/api/v1/bulk_enhance/{id}`, passing the `id` given by the
    previous response until `response.request.status` is `COMPLETE` or `FAILED`.

    * Download the  data as JSON from `/api/v1/sov/{id}/output/{filename}`. The
    exact url comes from the response to the above query, in
    `response.result.outputs[].url`.


    Output JSON Example:

    ```

    {
      "user-id1": {
        "GG": {
          "is_success": true,
          "error_message": null,
          "confidence": 80,
          "status_code": 200,
          "fetch_time": 4.754,
          "street_number": "1212",
          "route": "Ping Data Ln",
          "location_type": "ROOFTOP",
          "latitude": 28.xxx,
          "longitude": -81.xxx,
          "formatted_address": "1212 Ping Data Lane, Pingville, FL, USA",
          "place_id": "xxx-yyy",
          "address_line_1": "1212 Ping Data Lane",
          "address_line_2": "",
          "city": "Pingville",
          "postal_code": "00010",
          "county": "Pingville",
          "state": "FL",
          "country": "US"
        },
        "HH": {
          "is_success": true,
          "error_message": null,
          "status_code": null,
          "latitude": 28.xxx,
          "longitude": -81.xxx,
          "geocode_type": "ADDRESS",
          "google_maps_link": "https://www.google.com/maps/search/?api=1&query=28.xxx,-81.xxx",
          "fema_flood_zone": "X",
          "elevation": null,
          "bldg_year_built": 2009,
          ... more attributes ...

        }
      },
      ... more buildings ...
    }

    ```
  contact:
    email: support@pingintel.com
    name: Ping Intel
    url: https://www.pingintel.com
servers:
  - url: https://data-api.sovfixer.com
    description: Ping.Data API
  - url: https://data-api-staging.sovfixer.com
    description: Ping.Data API (staging)
security: []
tags:
  - name: Enhance
  - name: Bulk Enhance
  - name: Reference Data
    description: >-
      The Reference Data API lists the data sources you can request and their
      configuration, including the source codes to pass to Enhance and Bulk
      Enhance.
  - name: Account
    description: >-
      The Account API reports on your account: which sources you may call, your
      remaining limits, and your API credit usage over time.
paths:
  /api/v1/usage:
    get:
      tags:
        - Account
      summary: Get Usage
      description: >-
        Return your API usage over a time range, by source and time bucket.
        `count` is the number of locations

        that requested a source, including requests still in progress.


        On a self-serve plan, entries also have `credits`: the credits charged.
        A source that cost no credits

        has no `credits` field.


        Granularity is chosen from the requested range: `5m` for the last day,
        `1h` for the last 31 days, `1d`

        for longer ranges.
      operationId: api_v1_usage
      parameters:
        - in: query
          name: end
          schema:
            type: string
          description: End of the range, in the same formats as `start`. Defaults to now.
        - in: query
          name: start
          schema:
            type: string
          description: >-
            Start of the range: a relative offset such as `-5m`, `-1h` or
            `-30d`, or an ISO 8601 timestamp (UTC if no offset is given).
            Defaults to `-30d`.
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UsageResponse'
              examples:
                MeteredInCredits:
                  value:
                    granularity: 1h
                    start: '2026-09-23T10:00:00+00:00'
                    end: '2026-09-30T10:00:00+00:00'
                    buckets:
                      - start: '2026-09-23T10:00:00+00:00'
                        sources:
                          GG:
                            count: 12
                          PG:
                            count: 12
                            credits: 600
                        total:
                          count: 24
                          credits: 600
                    sources:
                      GG:
                        count: 100
                      PG:
                        count: 100
                        credits: 5000
                    total:
                      count: 200
                      credits: 5000
                  summary: 'Self-serve user: PG costs credits, GG is free'
                NotMeteredInCredits:
                  value:
                    granularity: 1h
                    start: '2026-09-23T10:00:00+00:00'
                    end: '2026-09-30T10:00:00+00:00'
                    buckets:
                      - start: '2026-09-23T10:00:00+00:00'
                        sources:
                          GG:
                            count: 12
                          PG:
                            count: 12
                        total:
                          count: 24
                    sources:
                      GG:
                        count: 100
                      PG:
                        count: 100
                    total:
                      count: 200
                  summary: Enterprise user
          description: ''
        '400':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UsageErrorResponse'
          description: '`start` or `end` can''t be parsed, or `end` isn''t after `start`.'
        '401':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UsageErrorResponse401'
          description: ''
        '403':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UsageErrorResponse403'
          description: Querying another user or an organization without Ping staff access.
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UsageErrorResponse404'
          description: No such user or organization.
      security:
        - tokenAuth: []
components:
  schemas:
    UsageResponse:
      type: object
      properties:
        buckets:
          type: array
          items:
            $ref: '#/components/schemas/UsageBucket'
          description: Buckets with usage, oldest first.
        end:
          type: string
          format: date-time
          description: End of the range.
        granularity:
          enum:
            - 5m
            - 1h
            - 1d
          type: string
          x-spec-enum-id: c44f5ed3abc2f904
          description: Bucket size, chosen from the requested range.
        sources:
          type: object
          additionalProperties:
            $ref: '#/components/schemas/UsageRangeSourceEntry'
          description: Usage by source code over the whole range.
        start:
          type: string
          format: date-time
          description: Start of the range.
        total:
          allOf:
            - $ref: '#/components/schemas/UsageRangeTotal'
          description: Usage summed over sources and the whole range.
      required:
        - buckets
        - end
        - granularity
        - sources
        - start
        - total
    UsageErrorResponse:
      type: object
      properties:
        message:
          type: string
      required:
        - message
    UsageErrorResponse401:
      type: object
      properties:
        message:
          type: string
      required:
        - message
    UsageErrorResponse403:
      type: object
      properties:
        message:
          type: string
      required:
        - message
    UsageErrorResponse404:
      type: object
      properties:
        message:
          type: string
      required:
        - message
    UsageBucket:
      type: object
      properties:
        sources:
          type: object
          additionalProperties:
            $ref: '#/components/schemas/UsageSourceEntry'
          description: Usage by source code. Sources with no usage are omitted.
        start:
          type: string
          format: date-time
          description: Start of the bucket.
        total:
          $ref: '#/components/schemas/UsageTotal'
      required:
        - sources
        - start
        - total
    UsageRangeSourceEntry:
      type: object
      properties:
        count:
          type: integer
        credits:
          type: integer
      required:
        - count
    UsageRangeTotal:
      type: object
      properties:
        count:
          type: integer
        credits:
          type: integer
      required:
        - count
    UsageSourceEntry:
      type: object
      properties:
        count:
          type: integer
          description: Locations that requested the source.
        credits:
          type: integer
          description: Credits charged. Present only when the source cost credits.
      required:
        - count
    UsageTotal:
      type: object
      properties:
        count:
          type: integer
          description: '`count` summed over sources.'
        credits:
          type: integer
          description: '`credits` summed over sources. Present when metered in credits.'
      required:
        - count
  securitySchemes:
    tokenAuth:
      type: apiKey
      in: header
      name: Authorization
      description: Token-based authentication with required prefix "Token"

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.