> For the complete documentation index, see [llms.txt](https://portal-integracao.intelbras.com.br/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://portal-integracao.intelbras.com.br/ct-3000-2pb-4pb/configuracao-de-credencial-cartao/obter-numero-de-cartoes-cadastrados.md).

# Obter Número de Cartões Cadastrados

### Obter Número de Cartões Cadastrados

Abaixo segue a documentação para obter número de cartões cadastradas.

#### Requisição - GET

`http://192.168.1.201/cgi-bin/recordFinder.cgi?action=getQuerySize&name=AccessCardInfo`

| param               | type   | description                                      |
| ------------------- | ------ | ------------------------------------------------ |
| `AccessCardInfo` \* | String | Comando para Obter Número de Cartões Cadastrados |

#### Exemplo de Retorno - *text/plain*

```sh
Size=0
count=321
```

#### Exemplos

{% tabs %}
{% tab title="Node" %}

```javascript
import requests
 
device_ip = '10.1.35.144'
username = 'admin'
password = 'acesso1234'
 
url = "http://{}/cgi-bin/recordFinder.cgi?action=getQuerySize&name=AccessCardInfo".format(
                        str(device_ip),
                    )
 
digest_auth = requests.auth.HTTPDigestAuth(username, password)
rval = requests.get(url, auth=digest_auth, stream=True, timeout=20, verify=False)
 
print(rval.text)
```

{% endtab %}
{% endtabs %}

Dispositivos que suportam esta função:

| Dispositivos           | Firmware           |
| ---------------------- | ------------------ |
| SS 3530 MF FACE W      | 210706 ou superior |
| SS 5530 MF FACE        | 210929 ou superior |
| SS 3540 MF FACE EX     | 211109 ou superior |
| SS 5530 LITE           | 230307 ou superior |
| SS 3540 MF FACE BIO EX | 231129 ou superior |
| SS 1530 MF W           | 240201 ou superior |
| SS 1540 MF W           | 240201 ou superior |
| SS 3532 MF W           | 231018 ou superior |
| SS 3542 MF W           | 231018 ou superior |
| SS 5531 MF W           | 231018 ou superior |
| SS 5541 MF W           | 231018 ou superior |
| SS 5532 MF W           | 231018 ou superior |
| SS 5542 MF W           | 231018 ou superior |

![](https://i.imgur.com/EjlHnYT.jpg)

#### Requisição - GET

`http://192.168.1.201/cgi-bin/accessControl.cgi?action=captureCmd&type=1&heartbeat=5&timeout=10`

| param           | type   | description                                                                                            |
| --------------- | ------ | ------------------------------------------------------------------------------------------------------ |
| `captureCmd` \* | String | Comando para Captura Remota de Face                                                                    |
| `type` \*       | String | Tipo de captura, atualmente somente disponivel o tipo `1`                                              |
| `heartbeat` \*  | String | Valor pode ser de 1 a 5. Define o intervalo de envio da menssagem ao cliente com a informação hearbeat |
| `timeout` \*    | String | TimeOut da Chamada em Segundos                                                                         |

#### Exemplo de Retorno - *text/plain*

```sh
OK
```

#### Exemplos

{% tabs %}
{% tab title="Node" %}

```javascript
var request   = require('request');
 
snapManager = function() {
 
   var opts = {
     'url' : 'http://' + this.ip + '/cgi-bin/snapManager.cgi?action=attachFileProc&Flags[0]=Event&Events=[All]',
     'forever' : true,
     'headers': {'Accept':'multipart/x-mixed-replace'}
   };
 
   console.log("Connecting...");
   var client = request(opts).auth(this.username, this.passwd, false);
 
   return client;
};
```

{% endtab %}

{% tab title="Python" %}

```python
import requests
 
device_ip = '10.1.35.144'
username = 'admin'
password = 'acesso1234'
 
url = "http://{}/cgi-bin/accessControl.cgi?action=captureCmd&type=1&heartbeat=5&timeout=10".format(
                          str(device_ip),
                      )
 
digest_auth = requests.auth.HTTPDigestAuth(username, password)
rval = requests.get(url, auth=digest_auth, stream=True, timeout=20, verify=False)
 
print(rval.text)
```

{% endtab %}
{% endtabs %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://portal-integracao.intelbras.com.br/ct-3000-2pb-4pb/configuracao-de-credencial-cartao/obter-numero-de-cartoes-cadastrados.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
