# How to disable api limits?

**URL:** https://meta.discourse.org/t/how-to-disable-api-limits/260593
**Category:** Migration
**Created:** [April 4, 2023, 9:48pm UTC](https://meta.discourse.org/t/how-to-disable-api-limits/260593 "2023-04-04T21:48:01Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![fischernico](https://avatars.discourse-cdn.com/v4/letter/f/278dde/32.png) [@fischernico](https://meta.discourse.org/u/fischernico)
#### Post date: [April 4, 2023, 9:48pm UTC](https://meta.discourse.org/t/how-to-disable-api-limits/260593/1 "2023-04-04T21:48:02Z")

</div>

Hi, im trying to create a importer.  
its written in php and using the discourse API.

Often it hits some limits or validators (Is this really a sentence? User Topic or Post limits 20 and so on).  
How to disable all these validations and limits for my import?

For these 20 posts per day limits and so on i tried to set them to 0 in the backend, but when i do this, another limit resets it self from 0 to 20 again.

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [April 4, 2023, 10:05pm UTC](https://meta.discourse.org/t/how-to-disable-api-limits/260593/2 "2023-04-04T22:05:21Z")

</div>

> [@fischernico](#):
>
> Hi, im trying to create a importer.  
> its written in php and using the discourse API.

I’d recommend that you instead use one of the [existing import scripts](https://github.com/discourse/discourse/tree/main/script/import_scripts) and modify it for your needs. It will be 10-100 orders of magnitude faster. I wrote several importers before I learned Ruby.

You can find out about rate limits here: [discourse/config/discourse\_defaults.conf at 1f34f653bfb6ccb39a4f4f8085b07e9d94389e6f · discourse/discourse · GitHub](https://github.com/discourse/discourse/blob/1f34f653bfb6ccb39a4f4f8085b07e9d94389e6f/config/discourse_defaults.conf#L200-L216) and here: [Available settings for global rate limits and throttling](https://meta.discourse.org/t/available-settings-for-global-rate-limits-and-throttling/78612)

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [August 24, 2023, 10:20am UTC](https://meta.discourse.org/t/how-to-disable-api-limits/260593/3 "2023-08-24T10:20:54Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
