# Zapier is not loading all tags (only first 30)

**URL:** <https://forum.mautic.org/t/zapier-is-not-loading-all-tags-only-first-30/14765>\
**Category:** Product Support\
**Created:** [June 13, 2020, 7:26am UTC](https://forum.mautic.org/t/zapier-is-not-loading-all-tags-only-first-30/14765 "2020-06-13T07:26:03Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![adiux](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/adiux/32/5793_2.png) [@adiux](https://forum.mautic.org/u/adiux)\
**Post date:** [June 13, 2020, 7:26am UTC](https://forum.mautic.org/t/zapier-is-not-loading-all-tags-only-first-30/14765/1 "2020-06-13T07:26:03Z")

</div>

**Your software**  
Zapier

**Your problem**  
My problem is: When I create a new contact from Zapier, I can not select all of my tags in Mautic to be added to the contact. It appears that only 30 tags are loaded.

 ![image](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/a/a4bb3bfa0cc10ac070810e46dcb980f10938ec29.png)

Steps I have tried to fix the problem:

1. Deleted the Mautic cache (by filesystem and console)  
=\> nothing changed

2. Changed the name of the tag to 0.tagname  
=\> now the tag it is showing up as expected (without clearing the cache)

---

<div class="post-metadata">

**Author:** ![huuich](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/huuich/32/419_2.png) [@huuich](https://forum.mautic.org/u/huuich)\
**Post date:** [June 15, 2020, 12:33am UTC](https://forum.mautic.org/t/zapier-is-not-loading-all-tags-only-first-30/14765/2 "2020-06-15T00:33:03Z")

</div>

I’ve load all tag ok, above 30 tags (Team plan). What zapier plan you are using? Do you contact to zapier?

 ![image](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/a/a5fab6ad661babe19d3a9a0f7e2a07a35a16ea7b.png)

---

<div class="post-metadata">

**Author:** ![adiux](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/adiux/32/5793_2.png) [@adiux](https://forum.mautic.org/u/adiux)\
**Post date:** [June 15, 2020, 7:36am UTC](https://forum.mautic.org/t/zapier-is-not-loading-all-tags-only-first-30/14765/3 "2020-06-15T07:36:25Z")

</div>

Thanks, @huuich. I’m on the free plan.

I did some more digging and my API is also only returning 30 entries. This is expected since it is the default behavior based on the [documentation](https://developer.mautic.org/#list-tags):

```
curl --location --request GET 'https://m.domain.com/api/tags/' \
--header 'Authorization: Basic *********'

```

It says the total is 64. Returned are only the first 30 entries.

Response:

```
{
    "total": 64,
    "tags": {
        "324": {
            "id": 324,
            "tag": "0-gmail-import"
        },
        "7": {
            "id": 7,
            "tag": "ai"
        },
...
        "321": {
            "id": 321,
            "tag": "ai-breakout"
        },

        "28": {
            "id": 28,
            "tag": "education"
        }
    }
}

```

I guess one could change the limit, however it seems that the limit parameter is ignored:

```
curl --location --request GET 'https://m.domain.com/api/tags/?limit=1' \
--header 'Authorization: Basic *********'
```

---

<div class="post-metadata">

**Author:** ![dennisameling](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/dennisameling/32/958_2.png) [@dennisameling](https://forum.mautic.org/u/dennisameling)\
**Post date:** [June 15, 2020, 8:15am UTC](https://forum.mautic.org/t/zapier-is-not-loading-all-tags-only-first-30/14765/4 "2020-06-15T08:15:40Z")

</div>

> [@adiux](#):
>
> `https://m.domain.com/api/tags/?limit=1`

@adiux does it make any difference if you do `https://m.domain.com/api/tags?limit=1` (without the last forward slash) instead of `https://m.domain.com/api/tags/?limit=1` ? Just curious

---

<div class="post-metadata">

**Author:** ![adiux](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/adiux/32/5793_2.png) [@adiux](https://forum.mautic.org/u/adiux)\
**Post date:** [June 15, 2020, 8:34am UTC](https://forum.mautic.org/t/zapier-is-not-loading-all-tags-only-first-30/14765/5 "2020-06-15T08:34:51Z")

</div>

Thank you @dennisameling. Yes that worked! So with this, I’m able to control the number of tags returned from the API. If I set the limit to 1, I get:

```
{
    "total": 64,
    "tags": {
        "324": {
            "id": 324,
            "tag": "0-gmail-import"
        }
    }
}

```

Do I need to change something on my server, or how can I get all tags returned to Zapier?

---

<div class="post-metadata">

**Author:** ![dennisameling](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/dennisameling/32/958_2.png) [@dennisameling](https://forum.mautic.org/u/dennisameling)\
**Post date:** [June 15, 2020, 8:54am UTC](https://forum.mautic.org/t/zapier-is-not-loading-all-tags-only-first-30/14765/6 "2020-06-15T08:54:28Z")

</div>

So in the [docs](https://developer.mautic.org/#list-tags) it says:

> Limit number of entities to return. Defaults to the system configuration for pagination (30).

Based on that I found the following config parameter in `config/local.php`:

```PHP
'default_pagelimit' => 30,

```

if you change that to a higher number (e.g. 100) it should do the trick for you

---

<div class="post-metadata">

**Author:** ![adiux](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/adiux/32/5793_2.png) [@adiux](https://forum.mautic.org/u/adiux)\
**Post date:** [June 15, 2020, 9:31am UTC](https://forum.mautic.org/t/zapier-is-not-loading-all-tags-only-first-30/14765/7 "2020-06-15T09:31:12Z")

</div>

Thank you @dennisameling, I guess this will fix it for now.

But I assume this creates some new performance problems. E.g if a plugin is fetching contacts (who have a lot of data), relies on paging, and does not manually specify the limit.

I guess the safest option would be to use the search functionality from Zapier. Based on the documentation the Mautic API is providing a search parameter. So the call would be something like this (not working for me):

```
curl --location --request GET 'https://m.domain.com/api/tags?search=gmail&limit=30' \
--header 'Authorization: Basic ************'
```

---

<div class="post-metadata">

**Author:** ![dennisameling](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/dennisameling/32/958_2.png) [@dennisameling](https://forum.mautic.org/u/dennisameling)\
**Post date:** [June 15, 2020, 9:53am UTC](https://forum.mautic.org/t/zapier-is-not-loading-all-tags-only-first-30/14765/8 "2020-06-15T09:53:13Z")

</div>

Could be something to look into for the Zapier integration. There are some improvements to the integration in progress already: [https://trello.com/c/XakKsEn1/7-zapier-plugin-update](https://trello.com/c/XakKsEn1/7-zapier-plugin-update)

---

<div class="post-metadata">

**Author:** ![huuich](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/huuich/32/419_2.png) [@huuich](https://forum.mautic.org/u/huuich)\
**Post date:** [June 15, 2020, 4:33pm UTC](https://forum.mautic.org/t/zapier-is-not-loading-all-tags-only-first-30/14765/9 "2020-06-15T16:33:27Z")

</div>

You should try [n8n.io](http://n8n.io) (alternative to zapier)

---

<div class="post-metadata">

**Author:** ![adiux](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/adiux/32/5793_2.png) [@adiux](https://forum.mautic.org/u/adiux)\
**Post date:** [June 17, 2020, 5:07pm UTC](https://forum.mautic.org/t/zapier-is-not-loading-all-tags-only-first-30/14765/10 "2020-06-17T17:07:25Z")

</div>

Thanks @huuich. Looks interesting.
