{"openapi":"3.1.0","info":{"title":"Sogudo API","version":"1.0.0","description":"Estimated mobile speeds (5G, 4G, 3G) per operator at any point of the countries Sogudo covers. Guides: https://app.sogudo.com/docs"},"externalDocs":{"description":"Sogudo developer docs","url":"https://app.sogudo.com/docs"},"servers":[{"url":"https://app.sogudo.com"}],"tags":[{"name":"Speed API","description":"Mobile coverage and speed tests."},{"name":"Account","description":"Your key and its token balance."}],"paths":{"/api/v1/eligibility/mobile":{"get":{"operationId":"getMobileEligibility","summary":"Mobile speeds at a point","tags":["Speed API"],"description":"Returns the estimated download and upload speeds of every operator of the country, for 5G, 4G and 3G, at a point.\n\nBilling: 1 token per point. The same point, rounded to 0.001° (about 100 m), queried again by your organisation\nwithin 31 days costs nothing: `token_cost` is then 0. Refusals (400, 401, 403) never use a token. With an empty balance every call is\nrefused, even for a point already paid. The balance is renewed every month, on the anniversary date of your plan;\nunused tokens do not carry over.","parameters":[{"name":"lon","in":"query","required":true,"description":"Longitude in decimal degrees (WGS 84), from -180 to 180.","schema":{"type":"number","minimum":-180,"maximum":180},"example":2.3522},{"name":"lat","in":"query","required":true,"description":"Latitude in decimal degrees (WGS 84), from -90 to 90.","schema":{"type":"number","minimum":-90,"maximum":90},"example":48.8566},{"name":"country","in":"query","required":true,"description":"Country the point is in: its ISO 3166-1 alpha-2 code (recommended) or its English name exactly as in the \"API name\" column of https://app.sogudo.com/docs/en/coverage (for example Spain, not España); case and accents are ignored. French overseas territories have their own code, for example GP for Guadeloupe or RE for Réunion. Your key must include this country. A point clearly outside it is refused.","schema":{"type":"string"},"example":"FR"},{"name":"api_key","in":"query","required":true,"description":"Your organisation API key. Call the API from your server only: the key must never reach a browser.","schema":{"type":"string"}}],"responses":{"200":{"description":"Speeds per operator and technology.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EligibilityResponse"},"example":{"token_cost":1,"result":{"orange":{"5g":{"download":284.36,"upload":38.51,"antenna":{"anfr_id":"0751234567","coordinates":[2.3497,48.8579],"distance":236,"frequency":3500}},"4g":{"download":96.42,"upload":21.87,"antenna":{"anfr_id":"0751234567","coordinates":[2.3497,48.8579],"distance":236,"frequency":2600}},"3g":{"download":7,"upload":3.5,"antenna":{"anfr_id":"0751234568","coordinates":[2.3561,48.8541],"distance":402,"frequency":2100}}},"free":{"5g":null,"4g":{"download":61.08,"upload":14.32,"antenna":{"anfr_id":"0751239876","coordinates":[2.3466,48.8602],"distance":531,"frequency":1800}},"3g":{"download":3,"upload":1.5,"antenna":{"anfr_id":"0751239876","coordinates":[2.3466,48.8602],"distance":531,"frequency":900}}},"sfr":{"5g":{"download":193.7,"upload":26.04,"antenna":{"anfr_id":"0751245678","coordinates":[2.3538,48.8551],"distance":214,"frequency":3500}},"4g":{"download":78.95,"upload":18.6,"antenna":{"anfr_id":"0751245678","coordinates":[2.3538,48.8551],"distance":214,"frequency":1800}},"3g":{"download":7,"upload":3.5,"antenna":{"anfr_id":"0751245678","coordinates":[2.3538,48.8551],"distance":214,"frequency":2100}}},"bouygues":{"5g":{"download":147.92,"upload":20.13,"antenna":{"anfr_id":"0751256789","coordinates":[2.3478,48.8549],"distance":377,"frequency":3500}},"4g":{"download":83.4,"upload":19.27,"antenna":{"anfr_id":"0751256789","coordinates":[2.3478,48.8549],"distance":377,"frequency":2600}},"3g":null}}}}}},"400":{"description":"Invalid request. No token is used.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"Bad_coordinates":{"summary":"lon or lat is missing, not a number, or out of range (longitude -180 to 180, latitude -90 to 90).","value":{"error":"Bad coordinates"}},"Missing_required_country":{"summary":"country is missing. Send the country code of the point, for example FR.","value":{"error":"Missing required ?country="}},"Unknown_country_XX":{"summary":"Sogudo does not cover this country, or the code is misspelt (XX stands for the value you sent). See the countries and operators page.","value":{"error":"Unknown country: XX"}},"Point_outside_country":{"summary":"The point is clearly outside the country you sent, for example a point in Guadeloupe sent with FR. Send the code of the country the point is in.","value":{"error":"Point outside country"}}}}}},"401":{"description":"Unknown or revoked API key. No token is used.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"Unknown_API_Key":{"summary":"The key is missing or does not exist. Check that you send the full key in api_key.","value":{"error":"Unknown API Key"}},"Revoked_API_Key":{"summary":"The key was revoked or replaced. Ask Sogudo for your current key.","value":{"error":"Revoked API Key"}}}}}},"403":{"description":"This key cannot make this request. No token is used.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"API_access_not_enabled_for_this_key":{"summary":"Your key is not allowed to use the speed API. Ask Sogudo to enable it.","value":{"error":"API access not enabled for this key"}},"No_more_tokens_on_API_Key":{"summary":"Your token balance is empty. Every call is refused, even for a point already paid, until the monthly renewal of your plan. Ask Sogudo if you need more before then.","value":{"error":"No more tokens on API Key"}},"Country_not_allowed_for_this_API_key_GP":{"summary":"Your key does not include this country (GP stands for its code). Ask Sogudo to add it.","value":{"error":"Country not allowed for this API key: GP"}}}}}},"500":{"description":"Unexpected server error, usually temporary. Retry later; if it persists, contact Sogudo."}}}},"/api/v1/account":{"get":{"operationId":"getAccount","summary":"Token balance","tags":["Account"],"description":"Returns the token balance of your key. This call is free. With an empty balance it answers 403.","parameters":[{"name":"api_key","in":"query","required":true,"description":"Your organisation API key. Call the API from your server only: the key must never reach a browser.","schema":{"type":"string"}}],"responses":{"200":{"description":"Token balance of the key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountResponse"},"example":{"tokens":4820,"usedTokens":180,"lastUsedAt":"2026-11-10T14:32:05.123Z"}}}},"401":{"description":"Unknown or revoked API key. No token is used.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"Unknown_API_Key":{"summary":"The key is missing or does not exist. Check that you send the full key in api_key.","value":{"error":"Unknown API Key"}},"Revoked_API_Key":{"summary":"The key was revoked or replaced. Ask Sogudo for your current key.","value":{"error":"Revoked API Key"}}}}}},"403":{"description":"This key cannot make this request. No token is used.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"API_access_not_enabled_for_this_key":{"summary":"Your key is not allowed to use the speed API. Ask Sogudo to enable it.","value":{"error":"API access not enabled for this key"}},"No_more_tokens_on_API_Key":{"summary":"Your token balance is empty. Every call is refused, even for a point already paid, until the monthly renewal of your plan. Ask Sogudo if you need more before then.","value":{"error":"No more tokens on API Key"}}}}}},"500":{"description":"Unexpected server error, usually temporary. Retry later; if it persists, contact Sogudo."}}}}},"components":{"schemas":{"EligibilityResponse":{"type":"object","required":["token_cost","result"],"properties":{"token_cost":{"type":"integer","enum":[0,1],"description":"1 when this call used a token, 0 when the same point was already paid within 31 days."},"result":{"type":"object","description":"One entry per operator of the country, keyed by the operator name in lower case (see the countries and operators page).","additionalProperties":{"$ref":"#/components/schemas/OperatorResult"}}}},"OperatorResult":{"type":"object","required":["5g","4g","3g"],"properties":{"5g":{"anyOf":[{"$ref":"#/components/schemas/TechnologyResult"},{"type":"null"}]},"4g":{"anyOf":[{"$ref":"#/components/schemas/TechnologyResult"},{"type":"null"}]},"3g":{"anyOf":[{"$ref":"#/components/schemas/TechnologyResult"},{"type":"null"}]}},"description":"Best estimate for each technology, or null when no antenna of this operator covers the point. For an operator without its own 3G network, 3g is estimated from its 4G antennas, as on the maps."},"TechnologyResult":{"type":"object","required":["download","upload","antenna"],"properties":{"download":{"type":"number","description":"Estimated download speed, in Mbit/s (2 decimals)."},"upload":{"type":"number","description":"Estimated upload speed, in Mbit/s (2 decimals)."},"antenna":{"$ref":"#/components/schemas/Antenna"}}},"Antenna":{"type":"object","description":"Antenna that gives this speed.","required":["coordinates","distance","frequency"],"properties":{"anfr_id":{"type":"string","description":"Identifier of the antenna in the official register (ANFR in France). May be absent in some countries."},"coordinates":{"type":"array","items":{"type":"number"},"minItems":2,"maxItems":2,"description":"Antenna position as [longitude, latitude], 4 decimals."},"distance":{"type":"integer","description":"Distance from the point to the antenna, in metres."},"frequency":{"type":"number","description":"Frequency band used for this estimate, in MHz."}}},"AccountResponse":{"type":"object","required":["tokens","usedTokens"],"properties":{"tokens":{"type":"integer","description":"Tokens left."},"usedTokens":{"type":"integer","description":"Tokens used so far."},"lastUsedAt":{"type":["string","null"],"format":"date-time","description":"Date of the last call that used a token. Absent until the first one."}}},"Error":{"type":"object","required":["error"],"properties":{"error":{"type":"string","description":"What went wrong, in English."}}}}}}