# get_channels > Return where a project's traffic comes from: the marketing channels with their shares and the leading social platforms with their shares… Return where a project's traffic comes from: the marketing channels with their shares and the leading social platforms with their shares of the social traffic. Before a reveal only the three leading channels and the three leading social platforms are returned, as bands: a full channel mix is close to a fingerprint and would identify the site without paying for it; after a reveal every channel and platform in the data is returned, and precision: exact returns exact shares instead of bands. Costs the base price plus the channels price for every project whose channels your organization does not already hold, and with precision: exact a surcharge for every revealed project on every call; a project without a channels layer comes back with profile null and is charged neither the part nor the exact surcharge. Ask in bands first, and for exact values only when your user needs exact numbers. ## Request ```text POST https://api.megido.io/v1/tools/get_channels ``` Headers: `Authorization: Bearer `, and with a body `Content-Type: application/json`. `Idempotency-Key` (header, optional): A key of your own for this call, up to 200 characters, such as a UUID, that makes a retry safe: the same key with the same arguments returns the first answer, with meta.replayed: true and without charging again; with other arguments or another tool it is refused. A key is unique within your organization; values that start with task: are reserved. The tool's arguments. Its JSON Schema: ```json { "type": "object", "properties": { "refs": { "description": "Projects to describe; refused above batch.get_channels in capabilities; required unless quote_token is given", "minItems": 1, "type": "array", "items": { "type": "string", "pattern": "^p_[a-z2-7]{16}$", "description": "Opaque project id as returned by this server to your organization" } }, "precision": { "type": "string", "enum": [ "band", "exact" ], "description": "band (default) or exact; exact applies only to revealed projects, adds a surcharge for each of them, and is otherwise ignored with a note" }, "estimate": { "description": "When true, run the query but return only its composition, price and a quote_token instead of data", "type": "boolean" }, "quote_token": { "description": "Execute a previous estimate: pass the quote_token instead of the query parameters", "type": "string", "minLength": 1 } }, "additionalProperties": false, "anyOf": [ { "required": [ "quote_token" ] }, { "required": [ "refs" ] } ], "not": { "properties": { "estimate": { "const": true } }, "required": [ "estimate", "quote_token" ] } } ``` ## Answers | Status | Answer | |---|---| | 200 | The tool's answer, or with estimate: true its estimate, whose data is a Quote holding quote_token: `GetChannelsAnswer` | | 400 | The request cannot be served as sent: `bad_request`, `invalid_params`, `limit_exceeded`, `invalid_quote_token`, `unknown_filter_value` | | 401 | No key, or a key the API does not take: `unauthorised` | | 402 | Not enough credits: `insufficient_balance` | | 403 | Not allowed for your organization or your key: `org_suspended`, `coverage_exceeded` | | 409 | In conflict with the state of a quote, the corpus or a task: `quote_expired`, `quote_spent`, `quote_outdated`, `confirmation_required`, `corpus_updated` | | 413 | The body is larger than the API takes: `bad_request` | | 415 | The body is not sent as application/json: `bad_request` | | 429 | Too many calls: `rate_limited` | | 500 | The call failed on Megido's side: `internal_error` | | 503 | Not available just now: `service_unavailable`, `lock_timeout`, `tool_unavailable` | Every error has the body `{"error": {"code": "…", "message": "…"}}` with the details of its code. The OpenAPI document holds every schema: https://api.megido.io/v1/openapi.json.