> ## 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.

# /osm/elements

> Get a raw OpenStreetMap element (node/way/relation) by type and id, with tags and metadata

**Price:** 1 credit

**⚠️ Common errors:** 412: Element not found



## OpenAPI

````yaml /openapi/local-places.json post /api/osm/elements
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/osm/elements:
    post:
      tags:
        - /osm
      summary: /osm/elements
      description: >-
        Get a raw OpenStreetMap element (node/way/relation) by type and id, with
        tags and metadata


        **Price:** 1 credit


        **⚠️ Common errors:** 412: Element not found
      operationId: __api_osm_elements_post
      parameters:
        - name: access-token
          in: header
          required: true
          schema:
            anyOf:
              - type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/OsmElementsPayload'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/OsmElement'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    OsmElementsPayload:
      properties:
        timeout:
          type: integer
          maximum: 1500
          minimum: 20
          default: 300
        element_type:
          $ref: '#/components/schemas/OsmElementType'
        id:
          type: string
          minLength: 1
        full:
          type: boolean
          default: false
      type: object
      required:
        - element_type
        - id
    OsmElement:
      properties:
        '@type':
          type: string
          default: OsmElement
        element_type:
          type: string
        id:
          type: integer
        latitude:
          anyOf:
            - type: number
            - type: 'null'
        longitude:
          anyOf:
            - type: number
            - type: 'null'
        version:
          anyOf:
            - type: integer
            - type: 'null'
        changeset:
          anyOf:
            - type: integer
            - type: 'null'
        updated_at:
          anyOf:
            - type: integer
            - type: 'null'
        user:
          anyOf:
            - type: string
            - type: 'null'
        uid:
          anyOf:
            - type: integer
            - type: 'null'
        nodes:
          items:
            type: integer
          type: array
          default: []
        members:
          items:
            $ref: '#/components/schemas/OsmRelationMember'
          type: array
          default: []
        geometry:
          items:
            $ref: '#/components/schemas/OsmGeoPoint'
          type: array
          default: []
        tags:
          additionalProperties: true
          type: object
          default: {}
        source_url:
          anyOf:
            - type: string
            - type: 'null'
      type: object
      required:
        - element_type
        - id
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
      type: object
    OsmElementType:
      type: string
      enum:
        - node
        - way
        - relation
    OsmRelationMember:
      properties:
        '@type':
          type: string
          default: OsmRelationMember
        element_type:
          type: string
        ref:
          type: integer
        role:
          anyOf:
            - type: string
            - type: 'null'
      type: object
      required:
        - element_type
        - ref
    OsmGeoPoint:
      properties:
        '@type':
          type: string
          default: OsmGeoPoint
        latitude:
          type: number
        longitude:
          type: number
      type: object
      required:
        - latitude
        - longitude
    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
  securitySchemes:
    AccessToken:
      type: apiKey
      in: header
      name: access-token
      description: API token from the dashboard

````