An application programming interface, API, topology hiding method, comprising: receiving (301, 401, 501), by a common API framework core function, CCF, an API publish request from an API publish function, APF, wherein the API publish request comprises information about an API; determining (302, 402, 502), by the CCF, a topology hiding entry point of the API based on the API publish request, storing (403, 503), by the CCF a correspondence between the API and the topology hiding entry point, wherein the method further comprises: sending (405, 505), by the CCF to the topology hiding entry point, an identifier of the API and an identifier of an API exposing function, AEF, that provides the API; receiving (407, 507), by the CCF, an API discovery request from an API invoking entity, the API discovery request carries a discovery condition, and the API discovery request is used to request an API that meets the discovery condition; obtaining (408, 508), by the CCF, based on the API discovery request, the API that meets the discovery condition; obtaining (409, 509), by the CCF, based on a correspondence that is between the API that meets the discovery condition and the topology hiding entry point, a topology hiding entry point corresponding to the API that meets the discovery condition; and sending (410, 510), by the CCF, an API discovery response to the API invoking entity, wherein the API discovery response comprises an identifier of the API that meets the discovery condition and an identifier of the topology hiding entry point corresponding to the API that meets the discovery condition. receiving (301, 401, 501), by a common API framework core function, CCF, an API publish request from an API publish function, APF, wherein the API publish request comprises information about an API; determining (302, 402, 502), by the CCF, a topology hiding entry point of the API based on the API publish request, storing (403, 503), by the CCF a correspondence between the API and the topology hiding entry point, wherein the method further comprises: sending (405, 505), by the CCF to the topology hiding entry point, an identifier of the API and an identifier of an API exposing function, AEF, that provides the API; receiving (407, 507), by the CCF, an API discovery request from an API invoking entity, the API discovery request carries a discovery condition, and the API discovery request is used to request an API that meets the discovery condition; obtaining (408, 508), by the CCF, based on the API discovery request, the API that meets the discovery condition; obtaining (409, 509), by the CCF, based on a correspondence that is between the API that meets the discovery condition and the topology hiding entry point, a topology hiding entry point corresponding to the API that meets the discovery condition; and sending (410, 510), by the CCF, an API discovery response to the API invoking entity, wherein the API discovery response comprises an identifier of the API that meets the discovery condition and an identifier of the topology hiding entry point corresponding to the API that meets the discovery condition. sending (405, 505), by the CCF to the topology hiding entry point, an identifier of the API and an identifier of an API exposing function, AEF, that provides the API; receiving (407, 507), by the CCF, an API discovery request from an API invoking entity, the API discovery request carries a discovery condition, and the API discovery request is used to request an API that meets the discovery condition; obtaining (408, 508), by the CCF, based on the API discovery request, the API that meets the discovery condition; obtaining (409, 509), by the CCF, based on a correspondence that is between the API that meets the discovery condition and the topology hiding entry point, a topology hiding entry point corresponding to the API that meets the discovery condition; and sending (410, 510), by the CCF, an API discovery response to the API invoking entity, wherein the API discovery response comprises an identifier of the API that meets the discovery condition and an identifier of the topology hiding entry point corresponding to the API that meets the discovery condition.