Adding Filters, Creating Auto Mode

To create a specific filter, you need to set filter parameters. These can be found in the API method specification for SearchFilter.addSearchFilter.

For example, let's create a filter named "Guest Post" where the price for posting a Guest Post will be from 30 to 50 USD:


  curl --location https://app.serpzilla.com/rest/SearchFilter' \
  --header 'Content-Type: application/json' \
  --header 'Accept: application/json' \
  --header 'Authorization: Bearer XXXXXXXXXXXX ' \
  --header 'Cookie: AUTH_TICKET= XXXXXXXXXXXX ' \
  --data '{
  	"name": "Article",
  	"priceArticleFrom": 30,
  	"priceArticleTo": 50
  }'

In the response there is the filter ID and the sign that everything was successful, isError.

You will need project IDs, URLs, and filters to create an Auto Mode. You will also be able to set your monthly budget and limits in your settings. These options can be found in the Autobuyer.createAutobuyerRent API:


  curl --location 'https://app.serpzilla.com/rest/Autobuyer/rent/create/projectId/123456' \
  --header 'Content-Type: application/json' \
  --header 'Accept: application/json' \
  --header 'Authorization: Bearer XXXXXXXXXXXX' \
  --header 'Cookie: AUTH_TICKET= XXXXXXXXXXXX' \
  --data '{
  	"autobuyerCommon": {
      	"name": "ArticleAutobuyer",
      	"isAutoApprove": true
  	},
  	"searchFilterId": 33333,
  	"urls": [
      	{
          	"urlId": 412356,
          	"settings": {
              	"monthlyBudget": 10,
              	"totalLinksLimit": 1,
              	"dailyLinksLimit": 0
          	}
      	}
  	]
  }'

In the response, the ID of the car and the sign that everything was successful isError.

To stop the Auto Mode you will need the ID of the Autobuyer.stopAutobuyers and to perform the following:


  curl --location 'https://app.serpzilla.com/rest/Autobuyer/stop' \
  --header 'Content-Type: application/json' \
  --header 'Accept: application/json' \
  --header 'Authorization: Bearer XXXXXXXXXXXX' \
  --header 'Cookie: AUTH_TICKET= XXXXXXXXXXXX'\
  --data '{
  	"autobuyersIds": [
      	123456
  	]
  }'

To start the purchase on the Auto Mode you need the ID of the Auto Mode and to perform the Autobuyer.startAutobuyers:


  curl --location 'https://app.serpzilla.com/rest/Autobuyer/start\
  --header 'Content-Type: application/json' \
  --header 'Accept: application/json' \
  --header 'Authorization: Bearer XXXXXXXXXXXX' \
  --header 'Cookie: AUTH_TICKET= XXXXXXXXXXXX'\
  --data '{
  	"autobuyersIds": [
      	123456
  	]
  }'