Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

qoery

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

qoery

Every_number_on_the_internet

latest
npmnpm
Version
0.5.0
Version published
Maintainers
1
Created
Source

qoery

Qoery - JavaScript client for qoery Qoetry API for dataset collection and management. Start dataset collection jobs, monitor their progress, and download results as CSV files.

Authentication

All endpoints require API key authentication (except /health and /).

You can provide your API key via:

  • Query parameter: ?api_key=your_api_key
  • Header: x-api-key: your_api_key
  • Header: Authorization: Bearer your_api_key

Rate Limits

API calls are subject to monthly quotas based on your subscription plan. Quota information is available via the /v0/usage endpoint.

This SDK is automatically generated by the OpenAPI Generator project:

  • API version: 0.5.0
  • Package version: 0.5.0
  • Generator version: 7.14.0
  • Build package: org.openapitools.codegen.languages.JavascriptClientCodegen For more information, please visit https://qoery.com

Installation

For Node.js

npm

To publish the library as a npm, please follow the procedure in "Publishing npm packages".

Then install it via:

npm install qoery --save

Finally, you need to build the module:

npm run build
Local development

To use the library locally without publishing to a remote npm registry, first install the dependencies by changing into the directory containing package.json (and this README). Let's call this JAVASCRIPT_CLIENT_DIR. Then run:

npm install

Next, link it globally in npm with the following, also from JAVASCRIPT_CLIENT_DIR:

npm link

To use the link you just defined in your project, switch to the directory you want to use your qoery from, and run:

npm link /path/to/<JAVASCRIPT_CLIENT_DIR>

Finally, you need to build the module:

npm run build

git

If the library is hosted at a git repository, e.g.https://github.com/GIT_USER_ID/GIT_REPO_ID then install it via:

    npm install GIT_USER_ID/GIT_REPO_ID --save

For browser

The library also works in the browser environment via npm and browserify. After following the above steps with Node.js and installing browserify with npm install -g browserify, perform the following (assuming main.js is your entry file):

browserify main.js > bundle.js

Then include bundle.js in the HTML pages.

Webpack Configuration

Using Webpack you may encounter the following error: "Module not found: Error: Cannot resolve module", most certainly you should disable AMD loader. Add/merge the following section to your webpack config:

module: {
  rules: [
    {
      parser: {
        amd: false
      }
    }
  ]
}

Getting Started

Please follow the installation instruction and execute the following JS code:

var Qoery = require('qoery');

var defaultClient = Qoery.ApiClient.instance;
// Configure API key authorization: ApiKeyHeader
var ApiKeyHeader = defaultClient.authentications['ApiKeyHeader'];
ApiKeyHeader.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//ApiKeyHeader.apiKeyPrefix['x-api-key'] = "Token"
// Configure API key authorization: ApiKeyAuth
var ApiKeyAuth = defaultClient.authentications['ApiKeyAuth'];
ApiKeyAuth.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//ApiKeyAuth.apiKeyPrefix['api_key'] = "Token"
// Configure Bearer (API_KEY) access token for authorization: BearerAuth
var BearerAuth = defaultClient.authentications['BearerAuth'];
BearerAuth.accessToken = "YOUR ACCESS TOKEN"

var api = new Qoery.DatasetsApi()
var jobId = "20251110_151628"; // {String} Unique identifier for the job
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.downloadDatasetCsv(jobId, callback);

Documentation for API Endpoints

All URIs are relative to https://api.qoery.com

ClassMethodHTTP requestDescription
Qoery.DatasetsApidownloadDatasetCsvGET /v0/datasets/{job_id}/csvDownload the CSV file
Qoery.DatasetsApigetDatasetJobStatusGET /v0/datasets/{job_id}Get job status and progress
Qoery.DatasetsApilistDatasetsOrStartJobGET /v0/datasetsList API endpoints or start a dataset collection job
Qoery.DatasetsApistartDatasetJobPOST /v0/datasetsStart a new dataset collection job
Qoery.HealthApihealthCheckGET /healthHealth Check
Qoery.HealthApirootStatusGET /Root Status
Qoery.PlansApilistPlansGET /v0/plansList subscription plans and endpoint limits
Qoery.UsageApigetUsageStatsGET /v0/usageGet usage statistics

Documentation for Models

Documentation for Authorization

Authentication schemes defined for the API:

ApiKeyAuth

  • Type: API key
  • API key parameter name: api_key
  • Location: URL query string

ApiKeyHeader

  • Type: API key
  • API key parameter name: x-api-key
  • Location: HTTP header

BearerAuth

  • Type: Bearer authentication (API_KEY)

FAQs

Package last updated on 11 Nov 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts