{
  "openapi": "3.0.1",
  "info": {
    "title": "IVOA Simple Image Access Extractor",
    "description": "Point at ANY IVOA Simple Image Access (SIA) service — IRSA, SkyView, GAVO, HEASARC, ESO, CADC and thousands of observatory image archives — and list every astronomical image over a sky region: give RA, Dec and a size, get one row per image with its access URL. One actor for the Virtual Observatory.",
    "version": "0.1",
    "x-build-id": "q8Si3ahww0lDDsc7d"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/datamule~ivoa-sia-image-access-extractor/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-datamule-ivoa-sia-image-access-extractor",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/datamule~ivoa-sia-image-access-extractor/runs": {
      "post": {
        "operationId": "runs-sync-datamule-ivoa-sia-image-access-extractor",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor and returns information about the initiated run in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runsResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/acts/datamule~ivoa-sia-image-access-extractor/run-sync": {
      "post": {
        "operationId": "run-sync-datamule-ivoa-sia-image-access-extractor",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "required": [
          "ra",
          "dec",
          "size"
        ],
        "properties": {
          "service": {
            "title": "SIA service endpoint URL",
            "type": "string",
            "description": "The base URL of ANY IVOA Simple Image Access (SIA / SIAP) service. ONE actor speaks to all of them — IRSA / IPAC (https://irsa.ipac.caltech.edu/cgi-bin/2MASS/IM/nph-im_sia), SkyView / NASA-GSFC (https://skyview.gsfc.nasa.gov/cgi-bin/vo/sia.pl?SURVEY=DSS), GAVO (https://dc.zah.uni-heidelberg.de/<svc>/siap.xml), HEASARC, ESO, CADC, NOIRLab, STScI and thousands more. Keep any archive-selecting query parameter the service needs (e.g. SkyView's ?SURVEY=DSS) on the URL — the actor adds POS / SIZE itself. Required unless you use \"Services\" below."
          },
          "services": {
            "title": "Services (search several archives at once)",
            "type": "array",
            "description": "Optional: run the SAME region query (POS / SIZE) across multiple SIA services at once (several archives, or the same survey at mirror sites). Each output row is tagged with its _service. Use this OR the single \"Service\" above (at least one is required). A service that is unreachable, auth-gated, or returns a non-VOTable body is skipped with a warning and the batch continues.",
            "items": {
              "type": "string"
            }
          },
          "ra": {
            "title": "RA — right ascension (degrees)",
            "type": "string",
            "description": "The centre of the region of interest: right ascension in decimal degrees, J2000 (0–360). Example: the Andromeda Galaxy (M31) is RA 10.6847. This is the SIA 'POS' longitude and is byte-identical across every SIA service."
          },
          "dec": {
            "title": "Dec — declination (degrees)",
            "type": "string",
            "description": "The centre of the region of interest: declination in decimal degrees, J2000 (-90 to +90). Example: M31 is Dec 41.269. This is the SIA 'POS' latitude."
          },
          "size": {
            "title": "SIZE — region size (degrees)",
            "type": "string",
            "description": "The angular size of the search region in decimal degrees (the SIA 'SIZE' parameter). A single number is a square region (e.g. 0.1 = 6 arcmin on a side); two comma-separated numbers 'width,height' give a rectangle. Every image whose footprint overlaps this region is returned. SIZE=0 means the service returns images covering the exact point. Large sizes on rich archives can return many images (and cost more)."
          },
          "format": {
            "title": "Image format filter",
            "type": "string",
            "description": "Optional SIA 'FORMAT' filter for the kind of image the service should return: e.g. 'image/fits', 'image/jpeg', 'image/png', 'GRAPHIC' (any browser image), 'ALL' (every format), or 'METADATA' (describe the service's columns without querying). Leave empty to use the service's own default. Not all services honour every value."
          },
          "maxRecords": {
            "title": "Max records (global cap)",
            "minimum": 1,
            "type": "integer",
            "description": "A GLOBAL cap on the number of image rows emitted across ALL services (each row is one billable event). Reached mid-service, the run stops deterministically. It is also sent to the server as MAXREC where supported. Leave empty to emit every image in the region."
          },
          "userAgent": {
            "title": "User-Agent override",
            "type": "string",
            "description": "Optional override for the request User-Agent. A descriptive User-Agent is sent by default — some data centres throttle or reject a blank / generic UA. Only override if a specific service asks you to identify differently."
          },
          "timeoutSecs": {
            "title": "Read timeout (seconds)",
            "minimum": 1,
            "maximum": 900,
            "type": "integer",
            "description": "How long to wait for the service to answer (default 120). Image queries over large archives can be slow; services also enforce their own server-side timeouts, so a very large region may still be cut off by the server."
          },
          "bearer": {
            "title": "Bearer token",
            "type": "string",
            "description": "Optional bearer token for an auth-gated SIA deployment (sent as Authorization: Bearer ***). NOT required for public services. Never logged."
          },
          "extraHeaders": {
            "title": "Extra request headers",
            "type": "object",
            "description": "Optional extra HTTP headers as a JSON object, e.g. {\"X-Api-Key\": \"...\"} for a gateway-fronted service. Not required for public services. Header values are never logged."
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}