• Reporting and Payments
  • Games Integration
  • Onboarding
  • Can I obtain games from the platform through an API?

    You can use the platform API to obtain games information. The first step is to generate an API token. You'll have to add this token each time you request anything from the API. The API token expires after 1 day; you can generate up to tokens a day.

    Base domain: pogame.com

     

    POST /api/v1/token

    Description: generate an API token

    Consumes : application/x-www-form-urlencoded

    Produces: text/plain, application/json

     

    Request 

     

    Parameters

    Type

    Comment

    username

    string

    account username

    password

    string

    account password

     

    Response

    Possible errors: 

    Code

    Reason

    401

    Bad account credentials

    403

    Too many tokens created

    500

    Internal error

     

    Response example:

    eyJhbGciOiJIUzI1NiJ9.eyJ0aW1lc3RhbXAiOjE2NjE2NjI2MzcyMTAsImlkIjoiZTEwNDNiMTYtM2JhNS00MmQ5LTk1NDktYzMwZmNlODdmM2MzIiwiZXhwIjoxNjYxNzQ5MDM3fQ.7IoEf-iy7jucqFh043GWuxwH6KIx43NJC6wzEGtaV9o

     

    GET /api/v1/games

    Description: get all platform games

    Requires authentication: Authorization: Bearer <token>

    Produces: application/json

     

    Request

    Parameters

    Type

    Comment

    adsense_channel_id

    string

    Optional.

    If not set, user’s default adSense channel ID is used

    fullscreen

    boolean

    Optional.

    If not set, user’s default fullscreen configuration is used

     

    Response

    Possible errors: 

    Code

    Reason

    401

    Token not specified, incorrect or expired

    500

    Internal error

     

    Response example:

    [
        {
            "name": "Xmas TetriX",
            "path": "xmas_tetrix",
            "shortDescription": "Brrr... It's cold outside and the weather is frightful! A calm and silent night awaits you in Xmas TetriX.\n\nSpin the blocks around and place them where you want. Challenge a family member to see who can get the higher score.\n\nDo you prefer the classic or a more challenging mode? They're all waiting for you in Xmas TetriX!",
            "assets": {
                "600x600": "https://static.monsteraplay.com/games/xmas_tetrix/600x600.jpeg",
                "600x314": "https://static.monsteraplay.com/games/xmas_tetrix/600x314.jpeg",
                "trailer": "https://static.monsteraplay.com/games/xmas_tetrix/trailer.mp4",
                "150x125": "https://static.monsteraplay.com/games/xmas_tetrix/150x125.jpeg",
                "200x200": "https://static.monsteraplay.com/games/xmas_tetrix/200x200.jpeg",
                "1920x1080-splash": "https://static.monsteraplay.com/games/xmas_tetrix/1920x1080-splash.jpeg",
                "1200x675": "https://static.monsteraplay.com/games/xmas_tetrix/1200x675.jpeg",
                "675x1200": "https://static.monsteraplay.com/games/xmas_tetrix/675x1200.jpeg"
            },
            "activationTime": "2022-08-10T11:39:53.271678664",
            "instructions": "Use the left or right arrow keys to adjust where the blocks should land. The \"up\" arrow key lets you change the block's position depending on the shape. Press \"down\" to speed up the descent of a block. You can score points by filling an entire row with blocks. Score as much as you can before the blocks reach the top.",
            "assetDownloadLink": "https://platform.monsteraplay.com/api/games/xmas_tetrix/assets",
          "genres": [
                "Arcade"
            ],
            "embedCode": "<iframe src=\"https://games.monsteraplay.com/xmas_tetrix/index.html?cid=e1043b16-3ba5-42d9-9549-c30fce87f3c3&c=%7Bc%7D&fullscreen=true\" referrerpolicy=\"origin\" width=\"100%\" height=\"100%\" allow=\"fullscreen\"></iframe>",
            "longDescription": "Brrr... It's cold outside and the weather is frightful! A calm and silent night awaits you in Xmas TetriX.\n\nSpin the blocks around and place them where you want. Challenge a family member to see who can get the higher score.\n\nDo you prefer the classic or a more challenging mode? They're all waiting for you in Xmas TetriX!"
        },
        {
            "name": "My Fantasy Stable",
            "path": "my_fantasy_stable",
            "shortDescription": "Welcome to a fantasy world where all your dreams come true! Here is where you can find the most unique and elegant horses!\n\nKeep an eye on the pictures before they are turned over. Find all the same pictures and discover new and wonderful horses!\n\nHow many turns does it take to clear each level? Come play now and let's find out!",
            "assets": {
                "600x600": "https://static.monsteraplay.com/games/my_fantasy_stable/600x600.jpeg",
                "600x314": "https://static.monsteraplay.com/games/my_fantasy_stable/600x314.jpeg",
                "trailer": "https://static.monsteraplay.com/games/my_fantasy_stable/trailer.mp4",
                "150x125": "https://static.monsteraplay.com/games/my_fantasy_stable/150x125.jpeg",
                "200x200": "https://static.monsteraplay.com/games/my_fantasy_stable/200x200.jpeg",
                "1920x1080-splash": "https://static.monsteraplay.com/games/my_fantasy_stable/1920x1080-splash.jpeg",
                "1200x675": "https://static.monsteraplay.com/games/my_fantasy_stable/1200x675.jpeg",
                "675x1200": "https://static.monsteraplay.com/games/my_fantasy_stable/675x1200.jpeg"
            },
            "activationTime": "2022-07-24T09:34:50.641364956",
            "instructions": "Look closely at the pictures before they are turned over. Flip a picture and find its identical picture to match them. Match all the pictures and remove them all from the playing field. Use as few turns as possible to earn a 3-star rating.",
            "assetDownloadLink": "https://platform.monsteraplay.com/api/games/my_fantasy_stable/assets",
          "genres": [
                "Puzzle",
                "Memory"
            ],
            "embedCode": "<iframe src=\"https://games.monsteraplay.com/my_fantasy_stable/index.html?cid=e1043b16-3ba5-42d9-9549-c30fce87f3c3&c=%7Bc%7D&fullscreen=true\" referrerpolicy=\"origin\" width=\"100%\" height=\"100%\" allow=\"fullscreen\"></iframe>",
            "longDescription": "Welcome to a fantasy world where all your dreams come true! Here is where you can find the most unique and elegant horses!\n\nKeep an eye on the pictures before they are turned over. Find all the same pictures and discover new and wonderful horses!\n\nHow many turns does it take to clear each level? Come play now and let's find out!"
        },
        {
            "name": "Galaxy Shooter",
            "path": "galaxy_shooter",
            "shortDescription": "What's that strange sound? Look up, you're surrounded by flying saucers!\n\nLoad up your powerful rifle and take aim. Blast those sneaky UFOs out of the skies once and for all.\n\nHow many of the alien ships could you take out? Come play now and let's find out!",
            "assets": {
                "600x600": "https://static.monsteraplay.com/games/galaxy_shooter/600x600.jpeg",
                "600x314": "https://static.monsteraplay.com/games/galaxy_shooter/600x314.jpeg",
                "trailer": "https://static.monsteraplay.com/games/galaxy_shooter/trailer.mp4",
                "150x125": "https://static.monsteraplay.com/games/galaxy_shooter/150x125.jpeg",
                "200x200": "https://static.monsteraplay.com/games/galaxy_shooter/200x200.jpeg",
                "1920x1080-splash": "https://static.monsteraplay.com/games/galaxy_shooter/1920x1080-splash.jpeg",
                "1200x675": "https://static.monsteraplay.com/games/galaxy_shooter/1200x675.jpeg",
                "675x1200": "https://static.monsteraplay.com/games/galaxy_shooter/675x1200.jpeg"
            },
            "activationTime": "2022-06-29T07:56:10.710326623",
            "instructions": "Use the mouse to control your aim. Pay attention to the flying saucers and left-click to shoot. Try and hit all the targets for a higher score. ",
            "assetDownloadLink": "https://platform.monsteraplay.com/api/games/galaxy_shooter/assets",
          "genres": [
                "Shooter",
                "Arcade"
            ],
            "embedCode": "<iframe src=\"https://games.monsteraplay.com/galaxy_shooter/index.html?cid=e1043b16-3ba5-42d9-9549-c30fce87f3c3&c=%7Bc%7D&fullscreen=true\" referrerpolicy=\"origin\" width=\"100%\" height=\"100%\" allow=\"fullscreen\"></iframe>",
            "longDescription": "What's that strange sound? Look up, you're surrounded by flying saucers!\n\nLoad up your powerful rifle and take aim. Blast those sneaky UFOs out of the skies once and for all.\n\nHow many of the alien ships could you take out? Come play now and let's find out!"
        }
    ]