# Find a contract

![](https://2592634121-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FT5HLPrqZhkeNGgJP37dC%2Fuploads%2FbnW7cb8HoBx4EYkssorB%2FScreen%20Shot%202022-07-07%20at%2009.21.52.png?alt=media\&token=0eb6f1ae-e2cc-457e-abca-b4c66d4e1510)

<mark style="color:blue;">`GET`</mark> `https://us-central1-appgregator.cloudfunctions.net/docial/contract/find/`

#### Query Parameters

| Name                                               | Type   | Description                                |
| -------------------------------------------------- | ------ | ------------------------------------------ |
| name<mark style="color:red;">\*</mark>             | String | qantor.co.id                               |
| connection\_name<mark style="color:red;">\*</mark> | String | docial-1                                   |
| query<mark style="color:red;">\*</mark>            | String | 0xefceacebf3eb2e70731e38bfc3ed8d1da76a2301 |

#### Headers

| Name                                        | Type   | Description                      |
| ------------------------------------------- | ------ | -------------------------------- |
| x-api-key<mark style="color:red;">\*</mark> | String | 43c464439b5507293ba7b315c9875907 |

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

```javascript
[
    {
        "id": 158,
        "contractAddress": "0xefceacebf3eb2e70731e38bfc3ed8d1da76a2301",
        "tokenName": "Undefined Ghost",
        "symbol": "UDF GHOST",
        "slug": "undefined-ghost",
        "payout_address": "0x5a5d60516d93d6f7631f3a3acc032cbbc0f94e17",
        "royalty": 666,
        "payout": "0x5a5d60516d93d6f7631f3a3acc032cbbc0f94e17",
        "divisor": "0",
        "tokenType": "ERC721",
        "totalSupply": "0",
        "blueCheckmark": "0",
        "description": " ",
        "website": "http://udfghost.vercel.app",
        "email": "0",
        "blog": null,
        "reddit": " ",
        "slack": " ",
        "facebook": " ",
        "twitter": null,
        "bitcointalk": " ",
        "github": " ",
        "telegram": null,
        "wechat": " ",
        "linkedin": " ",
        "discord": null,
        "whitepaper": " ",
        "tokenPriceUSD": "0",
        "image_url": "https://openseauserdata.com/files/f32bfddd4e9b0759b415d38fc8cfc5db.png",
        "createdDate": "2022-06-10T03:50:03.000Z",
        "createdAt": "2022-06-20T16:19:18.000Z",
        "updatedAt": "2022-06-20T16:19:18.000Z"
    },
    {
        "id": 5748,
        "contractAddress": "0x8e82463af4071deb614a1ea528ce091c4ca920de",
        "tokenName": "UndefinedOnes",
        "symbol": "UO",
        "slug": "undefinedones",
        "payout_address": "0x96c7058dd9e41335428f0138d84a817ba4f633f1",
        "royalty": 500,
        "payout": "0x96c7058dd9e41335428f0138d84a817ba4f633f1",
        "divisor": "0",
        "tokenType": "ERC721",
        "totalSupply": "0",
        "blueCheckmark": "0",
        "description": " ",
        "website": "http://undefinedones.com",
        "email": "0",
        "blog": null,
        "reddit": " ",
        "slack": " ",
        "facebook": " ",
        "twitter": "Undefined_Ones",
        "bitcointalk": " ",
        "github": " ",
        "telegram": null,
        "wechat": " ",
        "linkedin": " ",
        "discord": null,
        "whitepaper": " ",
        "tokenPriceUSD": "0",
        "image_url": "https://openseauserdata.com/files/aa1b812d60136060c440827b0f9b4061.png",
        "createdDate": "2022-06-27T12:57:22.000Z",
        "createdAt": "2022-06-27T16:02:09.000Z",
        "updatedAt": "2022-06-27T16:02:09.000Z"
    }
]
```

{% endtab %}

{% tab title="400: Bad Request Data not found" %}

```javascript
data not found
```

{% endtab %}
{% endtabs %}

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

```shell
curl --location --request GET 'https://us-central1-appgregator.cloudfunctions.net/docial/contract/find?name=qantor.co.id&connection_name=docial-1&address=0xefceacebf3eb2e70731e38bfc3ed8d1da76a2301' \
--header 'x-api-key: 43c464439b5507293ba7b315c9875907'
```

{% endtab %}

{% tab title="NodeJs - Axios" %}

```javascript
var axios = require('axios');

var config = {
  method: 'get',
  url: 'https://us-central1-appgregator.cloudfunctions.net/docial/contract/find?name=qantor.co.id&connection_name=docial-1&address=0xefceacebf3eb2e70731e38bfc3ed8d1da76a2301',
  headers: { 
    'x-api-key': '43c464439b5507293ba7b315c9875907'
  }
};

axios(config)
.then(function (response) {
  console.log(JSON.stringify(response.data));
})
.catch(function (error) {
  console.log(error);
});

```

{% endtab %}

{% tab title="PHP - cURL" %}

```php
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://us-central1-appgregator.cloudfunctions.net/docial/contract/find?name=qantor.co.id&connection_name=docial-1&address=0xefceacebf3eb2e70731e38bfc3ed8d1da76a2301',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'GET',
  CURLOPT_HTTPHEADER => array(
    'x-api-key: 43c464439b5507293ba7b315c9875907'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;

```

{% endtab %}
{% endtabs %}
