Adhub API
  1. Adverts
Adhub API
  • User
    • Get user information
      GET
    • Update user
      PATCH
    • Reset API key
      POST
    • Get user balance
      GET
  • Campaigns
    • List campaigns
      GET
    • Create campaign
      POST
    • Get campaign
      GET
    • Update campaign
      PATCH
    • Delete campaign
      DELETE
    • Toggle campaign status
      POST
  • Adverts
    • List adverts
      GET
    • Create advert
      POST
    • Get advert
      GET
    • Update advert
      PATCH
    • Delete advert
      DELETE
  1. Adverts

List adverts

GET
/adverts
Returns paginated list of user's adverts

Request

Authorization
API Key
Add parameter in header
Authorization
Example:
Authorization: ********************
or
Query Params

Responses

🟢200OK
application/json
List of adverts
Body

🟠401Unauthorized
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET 'adhub.plus/api/v1/adverts?page&per_page' \
--header 'Authorization: <api-key>'
Response Response Example
200 - Example 1
{
    "success": true,
    "data": [
        {
            "id": 1,
            "name": "Sample Advertisement",
            "text": "This is a sample advertisement text",
            "pic_url": "https://example.com/image.jpg",
            "button_caption": "Click Me",
            "button_url": "https://example.com",
            "parse_mode": "HTML",
            "admitted": true,
            "created_at": "2024-01-01T00:00:00Z",
            "updated_at": "2024-01-15T10:30:00Z"
        }
    ],
    "pagination": {
        "current_page": 1,
        "per_page": 25,
        "total_count": 50,
        "total_pages": 2
    }
}
Modified at 2025-11-11 09:40:41
Previous
Toggle campaign status
Next
Create advert
Built with