# Address Lookups

Requires `Authorization: Token <your token>` in the header.

## Get all address lookups done by the user

<mark style="color:blue;">`GET`</mark> `https://api.starfall.ai/api/address_lookups/`

Gives a list of all address lookups executed by the current user

{% tabs %}
{% tab title="200: OK " %}

```json
{
  "count": 123,
  "next": "http://api.example.org/accounts/?page=4",
  "previous": "http://api.example.org/accounts/?page=2",
  "results": [
    {
      "id": 0,
      "address": {
        "id": 0,
        "name": "string",
        "hash": "string",
        "is_blacklist": true,
        "blockchain_name": "string",
        "final_predictions": [
          {
            "id": 0,
            "predictions": [
              {
                "id": 0,
                "created": "2023-11-30T11:09:46.167Z",
                "modified": "2023-11-30T11:09:46.167Z",
                "model_version": "string",
                "model_name": "string",
                "fraud_data": {
                  "additionalProp1": "string",
                  "additionalProp2": "string",
                  "additionalProp3": "string"
                },
                "bot_data": {
                  "additionalProp1": "string",
                  "additionalProp2": "string",
                  "additionalProp3": "string"
                },
                "run_number": 2147483647,
                "address": 0
              }
            ],
            "created": "2023-11-30T11:09:46.167Z",
            "modified": "2023-11-30T11:09:46.167Z",
            "model_chosen": "string",
            "run_number": 2147483647,
            "fraud_probability": 0,
            "final_prediction": 2147483647,
            "fraud_message": "string",
            "has_erc20_token_transfers": true,
            "num_erc20_token_transfers": 2147483647,
            "has_transactions": true,
            "num_transactions": 2147483647,
            "is_bot": true,
            "address": 0
          }
        ]
      },
      "created": "2023-11-30T11:09:46.167Z",
      "modified": "2023-11-30T11:09:46.167Z",
      "last_viewed": "2023-11-30T11:09:46.167Z",
      "user": 0
    }
  ]
}
```

{% endtab %}
{% endtabs %}

## Counts all lookups used

<mark style="color:blue;">`GET`</mark> `https://api.starfall.ai/api/address_lookups/used/`

Get a count of all lookups used by current user

{% tabs %}
{% tab title="200: OK " %}

```json
{
    lookups_used: 100
}
```

{% endtab %}
{% endtabs %}
