GET
/
qrcodes
/
count
JavaScript
import Codeqr from '@codeqr/ts';

const client = new Codeqr({
  apiKey: 'My API Key',
});

const response = await client.qrcodes.count();

console.log(response);
123

Authorizations

Authorization
string
header
required

Default authentication mechanism

Query Parameters

projectSlug
string

The slug of the project to which the QR code belongs. For example, for app.codeqr.io/acme, the projectSlug is acme.

domain
string

The domain to filter the QR codes. For example, ac.me. If not provided, all QR codes of the project will be returned.

tagId
string
deprecated

[DEPRECATED (use tagIds instead)]: The unique ID of the tag assigned to the QR code.

tagIds

The IDs of the tags to filter the QR codes.

tagNames

The unique name of the tags assigned to the QR code (case insensitive).

The search term to filter the QR codes. The search term will be matched against the QR code slug and the destination URL.

userId
string

The ID of the user to filter by.

showArchived
boolean
default:false

If should include archived QR codes in the response. The default is false if not provided.

comments
string

The comments to filter by.

password
string

The password to filter by.

expiresAt
string<date-time> | null

The date and time the QR code will expire in ISO-8601 format. Must be in the future.

trackConversion
boolean
default:false

If should include QR codes with conversion tracking enabled. The default is false if not provided.

withTags
boolean
default:false

If should include tags in the response. The default is false if not provided.

format
enum<string>

Filter by QR code format - static or dynamic

Available options:
static,
dynamic
type
enum<string>

Filter by QR code type

Available options:
url,
text,
email,
wifi,
phone,
vcard,
crypto,
sms,
facetime,
latlog,
pix
hasPassword
boolean

Filter QR codes with/without password protection

hasExpiration
boolean

Filter QR codes with/without expiration date

hasUTM
boolean

Filter QR codes with/without UTM parameters

hasCustomSocial
boolean

Filter QR codes with/without custom social media cards

hasGeo
boolean

Filter QR codes with/without geo-targeting

hasDevice
boolean

Filter QR codes with/without device targeting

hasComments
boolean

Filter QR codes with/without comments

hasTags
boolean

Filter QR codes with/without tags

createdAfter
string<date-time>

Filter QR codes created after this date

createdBefore
string<date-time>

Filter QR codes created before this date

expiresAfter
string<date-time>

Filter QR codes expiring after this date

expiresBefore
string<date-time>

Filter QR codes expiring before this date

scansMin
integer

Minimum number of scans

Required range: x >= 0
scansMax
integer

Maximum number of scans

Required range: x >= 0
groupBy

The field to group the QR codes.

Available options:
domain

Response

The count of QR Codes

The number of QR Codes matching the query.