Affectiva Facial Coding API

The Affectiva Facial Coding API — branded internally as "EaaS" (Emotion as a Service) — is the cloud service behind Affectiva's facial-coding products. A consumer uploads video and receives frame-by-frame expression and Action Unit metrics as JSON or CSV. The published contract surface is thirteen Swagger 2.0 documents served from the Swagger UI at index.affectiva.com/swagger covering data collection projects, jobs, entries and their annotations, representations and representation storages, event configs and event instances, frame sampling jobs, video frames, video segments, and the labeling jobs / tasks / annotations trio. The live API answers HTTP Basic with WWW-Authenticate realm "Affectiva Facial Coding API"; all 51 operations require an account and there is no public self-service sign-up.

Operations 5

GET /data_collection_projects Get all existing data collection projects
POST /data_collection_projects Add a new data collection project
GET /data_collection_projects/{id} Find data collection project by ID
PUT /data_collection_projects/{id} Updates a data collection project info
DELETE /data_collection_projects/{id} Delete data collection project by ID

Documentation

Specifications

OpenAPI
https://raw.githubusercontent.com/api-evangelist/affectiva/refs/heads/main/openapi/affectiva-eaas-data_collection_projects.json
OpenAPI
https://raw.githubusercontent.com/api-evangelist/affectiva/refs/heads/main/openapi/affectiva-eaas-jobs.json
OpenAPI
https://raw.githubusercontent.com/api-evangelist/affectiva/refs/heads/main/openapi/affectiva-eaas-entries.json
OpenAPI
https://raw.githubusercontent.com/api-evangelist/affectiva/refs/heads/main/openapi/affectiva-eaas-representations.json
OpenAPI
https://raw.githubusercontent.com/api-evangelist/affectiva/refs/heads/main/openapi/affectiva-eaas-representation_storages.json
OpenAPI
https://raw.githubusercontent.com/api-evangelist/affectiva/refs/heads/main/openapi/affectiva-eaas-event_configs.json
OpenAPI
https://raw.githubusercontent.com/api-evangelist/affectiva/refs/heads/main/openapi/affectiva-eaas-event_instances.json
OpenAPI
https://raw.githubusercontent.com/api-evangelist/affectiva/refs/heads/main/openapi/affectiva-eaas-frame_sampling_jobs.json
OpenAPI
https://raw.githubusercontent.com/api-evangelist/affectiva/refs/heads/main/openapi/affectiva-eaas-video_frames.json
OpenAPI
https://raw.githubusercontent.com/api-evangelist/affectiva/refs/heads/main/openapi/affectiva-eaas-video_segments.json
OpenAPI
https://raw.githubusercontent.com/api-evangelist/affectiva/refs/heads/main/openapi/affectiva-eaas-labeling_jobs.json
OpenAPI
https://raw.githubusercontent.com/api-evangelist/affectiva/refs/heads/main/openapi/affectiva-eaas-labeling_tasks.json
OpenAPI
https://raw.githubusercontent.com/api-evangelist/affectiva/refs/heads/main/openapi/affectiva-eaas-labeling_job_annotations.json

Other Resources

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/affectiva-facial-coding-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

affectiva-eaas-data_collection_projects.json Raw ↑
{
    "swagger": "2.0",
    "info": {
        "description": "This is a documentation for Eaas api-experiments",
        "version": "0.1.0",
        "title": "Eaas Data Collection Projects",
        "license": {
            "name": "Apache 2.0",
            "url": "http://www.apache.org/licenses/LICENSE-2.0.html"
        }
    },
    "basePath": "/",
    "tags": [
        {
            "name": "data collection projects",
            "externalDocs": {
                "description": "Find out more",
                "url": "http://swagger.io"
            }
        }
    ],
    "schemes": [
        "https",
        "http"
    ],
    "paths": {
        "/data_collection_projects": {
            "get": {
                "tags": [
                    "data collection projects"
                ],
                "summary": "Get all existing data collection projects",
                "consumes": [
                    "application/json"
                ],
                "produces": [
                    "application/json"
                ],
                "responses": {
                    "200": {
                        "description": "Success"
                    },
                    "404": {
                        "description": "Not found"
                    },
                    "405": {
                        "description": "Invalid input"
                    }
                },
                "security": [
                    {
                        "basicAuth": []
                    }
                ]
            },
            "post": {
                "tags": [
                    "data collection projects"
                ],
                "summary": "Add a new data collection project",
                "consumes": [
                    "application/json"
                ],
                "produces": [
                    "application/json"
                ],
                "parameters": [
                    {
                        "in": "body",
                        "name": "data_collection_project",
                        "schema": {
                            "type": "object",
                            "required": [
                                "name",
                                "use_case"
                            ],
                            "properties": {
                                "name": {
                                    "type": "string",
                                    "example": "DAC016"
                                },
                                "use_case": {
                                    "type": "string",
                                    "example": "use case"
                                },
                                "json_schema": {
                                    "type": "string"
                                }
                            }
                        }
                    }
                ],
                "responses": {
                    "201": {
                        "description": "Success,created"
                    },
                    "422": {
                        "description": "Unprocessable Entity"
                    }
                },
                "security": [
                    {
                        "basicAuth": []
                    }
                ]
            }
        },
        "/data_collection_projects/{id}": {
            "get": {
                "tags": [
                    "data collection projects"
                ],
                "summary": "Find data collection project by ID",
                "description": "Returns a single project",
                "produces": [
                    "application/json"
                ],
                "parameters": [
                    {
                        "in": "path",
                        "name": "id",
                        "required": true,
                        "type": "integer",
                        "format": "int64"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Success"
                    },
                    "400": {
                        "description": "Bad request"
                    },
                    "404": {
                        "description": "Not found"
                    }
                },
                "security": [
                    {
                        "basicAuth": []
                    }
                ]
            },
            "put": {
                "tags": [
                    "data collection projects"
                ],
                "summary": "Updates a data collection project info",
                "description": "",
                "consumes": [
                    "application/json"
                ],
                "produces": [
                    "application/json"
                ],
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "type": "integer",
                        "format": "int64"
                    },
                    {
                        "in": "body",
                        "name": "data_collection_projects",
                        "schema": {
                            "type": "object",
                            "properties": {
                                "name": {
                                    "type": "string",
                                    "example": "DAC016"
                                },
                                "use_case": {
                                    "type": "string",
                                    "example": "use case"
                                },
                                "json_schema": {
                                    "type": "string"
                                }
                            }
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Updated successfully"
                    },
                    "400": {
                        "description": "Bad request"
                    },
                    "404": {
                        "description": "Not found"
                    },
                    "422": {
                        "description": "Unprocessable Entity"
                    }
                },
                "security": [
                    {
                        "basicAuth": []
                    }
                ]
            },
            "delete": {
                "tags": [
                    "data collection projects"
                ],
                "summary": "Delete data collection project by ID",
                "produces": [
                    "application/json"
                ],
                "parameters": [
                    {
                        "in": "path",
                        "name": "id",
                        "required": true,
                        "type": "integer",
                        "format": "int64"
                    }
                ],
                "responses": {
                    "204": {
                        "description": "Deleted successfully"
                    },
                    "400": {
                        "description": "Bad request"
                    },
                    "404": {
                        "description": "Not found"
                    }
                },
                "security": [
                    {
                        "basicAuth": []
                    }
                ]
            }
        }
    },
    "securityDefinitions": {
        "basicAuth": {
            "type": "basic"
        }
    },
    "externalDocs": {
        "description": "Find out more about Swagger",
        "url": "http://swagger.io"
    }
}