Skip to main content
POST
/
amqp
AMQP consumer relay (SSE)
curl --request POST \
  --url https://scraping-api.55-tech.com/amqp \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '
{
  "apiKey": "<string>",
  "host": "<string>",
  "port": 5672,
  "virtual_host": "/",
  "username": "",
  "password": "",
  "exchange": "",
  "routing_key": "#",
  "queue_prefix": "scrape",
  "ssl": false,
  "heartbeat": 60,
  "geo": "<string>",
  "agent": "<string>"
}
'
"<string>"

Authorizations

X-API-Key
string
header
required

API key passed in the X-API-Key header.

Body

application/json
apiKey
string
required

API key for authentication.

host
string
required

AMQP broker hostname.

port
integer
default:5672

Broker port. Use 5671 for SSL.

virtual_host
string
default:/

AMQP virtual host.

username
string
default:""

AMQP username.

password
string
default:""

AMQP password.

exchange
string
default:""

Exchange to bind to.

routing_key
string
default:#

Routing key pattern (# = all messages).

queue_prefix
string
default:scrape

Prefix for the auto-delete queue name.

ssl
boolean
default:false

Use AMQPS (TLS) connection.

heartbeat
integer
default:60

AMQP heartbeat interval in seconds.

geo
string

Country filter for agent selection (e.g. DE).

agent
string

Pin to specific agent by slug (e.g. de1).

Response

SSE stream of AMQP messages. Events: connected, message, error.

The response is of type string.