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

# Find the nearest ingested land-filtered light-pollution cell.



## OpenAPI

````yaml /api-reference/openapi.json get /light-pollution/cells/nearest
openapi: 3.0.3
info:
  title: Nebyoulous API
  description: >-
    REST API behind the Nebyoulous web app, CLI, and MCP server. Requests that
    act on your data need a bearer token.
  version: 0.0.0
servers:
  - url: https://api.nebyoulous.space
    description: Production
security: []
tags:
  - name: System
    description: Service health.
  - name: Account
    description: The signed-in user and their profile.
  - name: Integration sets
    description: Sets of frames for one target.
  - name: Uploads
    description: Presigned uploads into an integration set.
  - name: Assets
    description: Download, view, preview, and delete uploaded files.
  - name: Stacking and analysis
    description: >-
      Stack jobs, frame analysis, and frame QA. All run asynchronously: submit,
      then poll.
  - name: Exports
    description: Export an integration set as an archive.
  - name: Gear and rigs
    description: Equipment items and the rigs built from them.
  - name: Planner
    description: Nightly scores, saved locations, and sessions.
  - name: Catalog
    description: The deep-sky object catalog.
  - name: Light pollution
    description: Sky brightness for a location.
  - name: Posts
    description: Your drafts and published posts.
  - name: Public posts
    description: Published posts anyone can read.
  - name: Comments and annotations
    description: Threads and replies on published posts.
  - name: Mentions
    description: Mentions of you in comments.
  - name: Advisor usage
    description: Your advisor usage ledger.
paths:
  /light-pollution/cells/nearest:
    get:
      tags:
        - Light pollution
      summary: Find the nearest ingested land-filtered light-pollution cell.
      parameters:
        - schema:
            type: number
            minimum: -90
            maximum: 90
          in: query
          name: lat
          required: true
        - schema:
            type: number
            minimum: -180
            maximum: 180
          in: query
          name: lng
          required: true
        - schema:
            type: integer
            minimum: 2000
            maximum: 3000
          in: query
          name: dataYear
          required: true
        - schema:
            default: 1
            type: integer
            minimum: 0
            maximum: 20
          in: query
          name: radiusCells
          required: false
      responses:
        '200':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  ok:
                    type: boolean
                    enum:
                      - true
                  cell:
                    nullable: true
                    type: object
                    properties:
                      dataYear:
                        type: integer
                        minimum: -9007199254740991
                        maximum: 9007199254740991
                      latIdx:
                        type: integer
                        minimum: -9007199254740991
                        maximum: 9007199254740991
                      lngIdx:
                        type: integer
                        minimum: -9007199254740991
                        maximum: 9007199254740991
                      lat:
                        type: number
                      lng:
                        type: number
                      radiance:
                        type: number
                      sqm:
                        nullable: true
                        type: number
                      bortle:
                        nullable: true
                        type: integer
                        minimum: 1
                        maximum: 9
                      landWaterMask:
                        type: integer
                        minimum: -9007199254740991
                        maximum: 9007199254740991
                      datasetId:
                        type: string
                      granuleId:
                        nullable: true
                        type: string
                        format: uuid
                        pattern: >-
                          ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
                      distanceKm:
                        type: number
                        minimum: 0
                      updatedAt:
                        type: string
                        format: date-time
                        pattern: >-
                          ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$
                    required:
                      - dataYear
                      - latIdx
                      - lngIdx
                      - lat
                      - lng
                      - radiance
                      - sqm
                      - bortle
                      - landWaterMask
                      - datasetId
                      - granuleId
                      - distanceKm
                      - updatedAt
                    additionalProperties: false
                required:
                  - ok
                  - cell
                additionalProperties: false
        '400':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: string
                  message:
                    type: string
                required:
                  - code
                  - message
                additionalProperties: false

````

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