Agents

POST /v2/agents

Create a new web scraping agent with CSS selectors. Pass start=1 to run it right away.

Request

  • Base URL
    https://api.agenty.com
  • Auth
    HTTP bearer

Query parameters

startstring

To auto-start the agent after creation

Request body

unknown required

Example request

{
  "name": "Product scraper",
  "type": "scraping",
  "config": {
    "url": "https://example.com",
    "collections": [
      {
        "name": "Products",
        "fields": [
          {
            "name": "title",
            "type": "CSS",
            "selector": "h1",
            "extract": "TEXT"
          },
          {
            "name": "price",
            "type": "CSS",
            "selector": ".price",
            "extract": "TEXT"
          }
        ]
      }
    ]
  }
}

Response

OR
OR
OR
OR

Changes

No recorded changes to this operation across all 1 revision of this API.